Subversion Repositories Kolibri OS

Rev

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

Rev 663 Rev 672
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 663 $
8
$Revision: 672 $
9
 
9
 
Line 236... Line 236...
236
           mov ecx, [val]
236
	   mov ecx, [val]
237
           call pci_write_reg
237
	   call pci_write_reg
238
	   ret
238
	   ret
239
endp
239
endp
Line -... Line 240...
-
 
240
 
-
 
241
align 4
-
 
242
proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
-
 
243
	   xor eax, eax
-
 
244
	   xor ebx, ebx
-
 
245
	   mov ah, byte [bus]
-
 
246
	   mov al, 10
-
 
247
	   mov bh, byte [devfn]
-
 
248
	   mov bl, byte [reg]
-
 
249
	   mov ecx, [val]
-
 
250
	   call pci_write_reg
-
 
251
	   ret
-
 
252
endp
240
 
253
 
241
handle     equ  IOCTL.handle
254
handle	   equ	IOCTL.handle
242
io_code    equ  IOCTL.io_code
255
io_code    equ	IOCTL.io_code
243
input      equ  IOCTL.input
256
input	   equ	IOCTL.input
244
inp_size   equ  IOCTL.inp_size
257
inp_size   equ	IOCTL.inp_size