Subversion Repositories Kolibri OS

Rev

Rev 541 | Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 541 Rev 557
Line 1... Line 1...
1
$Revision: 541 $
1
$Revision: 557 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
Line 185... Line 185...
185
	   call pci_read_reg
185
	   call pci_read_reg
186
	   ret
186
	   ret
187
endp
187
endp
Line 188... Line 188...
188
 
188
 
-
 
189
align 4
-
 
190
proc pci_read16 stdcall, bus:dword, devfn:dword, reg:dword
-
 
191
	   xor eax, eax
-
 
192
	   xor ebx, ebx
-
 
193
	   mov ah, byte [bus]
-
 
194
           mov al, 5
-
 
195
	   mov bh, byte [devfn]
-
 
196
	   mov bl, byte [reg]
-
 
197
	   call pci_read_reg
-
 
198
	   ret
-
 
199
endp
-
 
200
 
189
align 4
201
align 4
190
proc pci_read8 stdcall, bus:dword, devfn:dword, reg:dword
202
proc pci_read8 stdcall, bus:dword, devfn:dword, reg:dword
191
	   xor eax, eax
203
	   xor eax, eax
192
	   xor ebx, ebx
204
	   xor ebx, ebx
193
	   mov ah, byte [bus]
205
	   mov ah, byte [bus]
Line 207... Line 219...
207
	   mov bh, byte [devfn]
219
	   mov bh, byte [devfn]
208
	   mov bl, byte [reg]
220
	   mov bl, byte [reg]
209
           mov ecx, [val]
221
           mov ecx, [val]
210
           call pci_write_reg
222
           call pci_write_reg
211
	   ret
223
	   ret
-
 
224
endp
-
 
225
 
-
 
226
align 4
-
 
227
proc pci_write16 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
-
 
228
	   xor eax, eax
-
 
229
	   xor ebx, ebx
-
 
230
	   mov ah, byte [bus]
-
 
231
           mov al, 9
-
 
232
	   mov bh, byte [devfn]
-
 
233
	   mov bl, byte [reg]
-
 
234
           mov ecx, [val]
-
 
235
           call pci_write_reg
-
 
236
	   ret
212
endp
237
endp
Line 213... Line 238...
213
 
238
 
214
handle     equ  IOCTL.handle
239
handle     equ  IOCTL.handle
215
io_code    equ  IOCTL.io_code
240
io_code    equ  IOCTL.io_code