Rev 889 | Rev 928 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 889 | Rev 890 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 889 $ |
8 | $Revision: 890 $ |
9 | 9 | ||
Line 206... | Line 206... | ||
206 | call change_task |
206 | call change_task |
207 | jmp .wait |
207 | jmp .wait |
208 | endp |
208 | endp |
Line 209... | Line 209... | ||
209 | 209 | ||
- | 210 | align 4 |
|
210 | align 4 |
211 | _PciRead32: |
211 | proc pci_read32 stdcall, bus:dword, devfn:dword, reg:dword |
212 | proc pci_read32 stdcall, bus:dword, devfn:dword, reg:dword |
212 | push ebx |
213 | push ebx |
213 | xor eax, eax |
214 | xor eax, eax |
214 | xor ebx, ebx |
215 | xor ebx, ebx |
Line 220... | Line 221... | ||
220 | pop ebx |
221 | pop ebx |
221 | ret |
222 | ret |
222 | endp |
223 | endp |
Line 223... | Line 224... | ||
223 | 224 | ||
- | 225 | align 4 |
|
224 | align 4 |
226 | _PciRead16: |
225 | proc pci_read16 stdcall, bus:dword, devfn:dword, reg:dword |
227 | proc pci_read16 stdcall, bus:dword, devfn:dword, reg:dword |
226 | push ebx |
228 | push ebx |
227 | xor eax, eax |
229 | xor eax, eax |
228 | xor ebx, ebx |
230 | xor ebx, ebx |
Line 234... | Line 236... | ||
234 | pop ebx |
236 | pop ebx |
235 | ret |
237 | ret |
236 | endp |
238 | endp |
Line 237... | Line 239... | ||
237 | 239 | ||
- | 240 | align 4 |
|
238 | align 4 |
241 | _PciRead8: |
239 | proc pci_read8 stdcall, bus:dword, devfn:dword, reg:dword |
242 | proc pci_read8 stdcall, bus:dword, devfn:dword, reg:dword |
240 | push ebx |
243 | push ebx |
241 | xor eax, eax |
244 | xor eax, eax |
242 | xor ebx, ebx |
245 | xor ebx, ebx |
Line 248... | Line 251... | ||
248 | pop ebx |
251 | pop ebx |
249 | ret |
252 | ret |
250 | endp |
253 | endp |
Line 251... | Line 254... | ||
251 | 254 | ||
- | 255 | align 4 |
|
252 | align 4 |
256 | _PciWrite8: |
253 | proc pci_write8 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
257 | proc pci_write8 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
254 | push ebx |
258 | push ebx |
255 | xor eax, eax |
259 | xor eax, eax |
256 | xor ebx, ebx |
260 | xor ebx, ebx |
Line 263... | Line 267... | ||
263 | pop ebx |
267 | pop ebx |
264 | ret |
268 | ret |
265 | endp |
269 | endp |
Line 266... | Line 270... | ||
266 | 270 | ||
- | 271 | align 4 |
|
267 | align 4 |
272 | _PciWrite16: |
268 | proc pci_write16 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
273 | proc pci_write16 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
269 | push ebx |
274 | push ebx |
270 | xor eax, eax |
275 | xor eax, eax |
271 | xor ebx, ebx |
276 | xor ebx, ebx |
Line 278... | Line 283... | ||
278 | pop ebx |
283 | pop ebx |
279 | ret |
284 | ret |
280 | endp |
285 | endp |
Line 281... | Line 286... | ||
281 | 286 | ||
- | 287 | align 4 |
|
282 | align 4 |
288 | _PciWrite32: |
283 | proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
289 | proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword |
284 | push ebx |
290 | push ebx |
285 | xor eax, eax |
291 | xor eax, eax |
286 | xor ebx, ebx |
292 | xor ebx, ebx |
Line 385... | Line 391... | ||
385 | mov eax, edx |
391 | mov eax, edx |
386 | ret |
392 | ret |
387 | endp |
393 | endp |
Line 388... | Line 394... | ||
388 | 394 | ||
- | 395 | align 4 |
|
389 | align 4 |
396 | _RegService: |
Line 390... | Line 397... | ||
390 | proc reg_service stdcall, name:dword, handler:dword |
397 | proc reg_service stdcall, name:dword, handler:dword |
Line 391... | Line 398... | ||
391 | 398 | ||
Line 560... | Line 567... | ||
560 | ; warging |
567 | ; warging |
561 | ; You mast call mem_free() to delete each file |
568 | ; You mast call mem_free() to delete each file |
562 | ; loaded by the load_file() function |
569 | ; loaded by the load_file() function |
Line 563... | Line 570... | ||
563 | 570 | ||
- | 571 | align 4 |
|
564 | align 4 |
572 | _LoadFile: |
565 | _load_file@4: |
573 | _load_file@4: |
566 | proc load_file stdcall, file_name:dword |
574 | proc load_file stdcall, file_name:dword |
567 | locals |
575 | locals |
568 | attr dd ? |
576 | attr dd ? |
Line 1108... | Line 1116... | ||
1108 | ; param |
1116 | ; param |
1109 | ; eax= size |
1117 | ; eax= size |
1110 | ; ebx= pid |
1118 | ; ebx= pid |
Line 1111... | Line 1119... | ||
1111 | 1119 | ||
- | 1120 | align 4 |
|
1112 | align 4 |
1121 | _CreateObject: |
Line 1113... | Line 1122... | ||
1113 | create_kernel_object: |
1122 | create_kernel_object: |
1114 | 1123 | ||
1115 | push ebx |
1124 | push ebx |
Line 1136... | Line 1145... | ||
1136 | 1145 | ||
1137 | ; param |
1146 | ; param |
Line 1138... | Line 1147... | ||
1138 | ; eax= object |
1147 | ; eax= object |
- | 1148 | ||
1139 | 1149 | align 4 |
|
Line 1140... | Line 1150... | ||
1140 | align 4 |
1150 | _DestroyObject: |
1141 | destroy_kernel_object: |
1151 | destroy_kernel_object: |
1142 | 1152 |