Subversion Repositories Kolibri OS

Rev

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

Rev 740 Rev 745
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: 740 $
8
$Revision: 745 $
9
 
9
 
Line 245... Line 245...
245
	   ret
245
	   ret
246
endp
246
endp
Line 247... Line 247...
247
 
247
 
248
align 4
248
align 4
-
 
249
proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
249
proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
250
           push ebx
250
	   xor eax, eax
251
	   xor eax, eax
251
	   xor ebx, ebx
252
	   xor ebx, ebx
252
	   mov ah, byte [bus]
253
	   mov ah, byte [bus]
253
	   mov al, 10
254
	   mov al, 10
254
	   mov bh, byte [devfn]
255
	   mov bh, byte [devfn]
255
	   mov bl, byte [reg]
256
	   mov bl, byte [reg]
256
	   mov ecx, [val]
257
	   mov ecx, [val]
-
 
258
	   call pci_write_reg
257
	   call pci_write_reg
259
           pop ebx
258
	   ret
260
	   ret
Line 259... Line 261...
259
endp
261
endp
260
 
262