PciWrite32 function was missing
git-svn-id: svn://kolibrios.org@672 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4f0542fd62
commit
e24551e65f
@ -238,6 +238,19 @@ proc pci_write16 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
proc pci_write32 stdcall, bus:dword, devfn:dword, reg:dword, val:dword
|
||||||
|
xor eax, eax
|
||||||
|
xor ebx, ebx
|
||||||
|
mov ah, byte [bus]
|
||||||
|
mov al, 10
|
||||||
|
mov bh, byte [devfn]
|
||||||
|
mov bl, byte [reg]
|
||||||
|
mov ecx, [val]
|
||||||
|
call pci_write_reg
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
handle equ IOCTL.handle
|
handle equ IOCTL.handle
|
||||||
io_code equ IOCTL.io_code
|
io_code equ IOCTL.io_code
|
||||||
input equ IOCTL.input
|
input equ IOCTL.input
|
||||||
|
@ -25,6 +25,7 @@ iglobal
|
|||||||
szPciRead8 db 'PciRead8', 0
|
szPciRead8 db 'PciRead8', 0
|
||||||
szPciWrite8 db 'PciWrite8',0
|
szPciWrite8 db 'PciWrite8',0
|
||||||
szPciWrite16 db 'PciWrite16',0
|
szPciWrite16 db 'PciWrite16',0
|
||||||
|
szPciWrite32 db 'PciWrite32',0
|
||||||
|
|
||||||
szAllocPage db 'AllocPage',0
|
szAllocPage db 'AllocPage',0
|
||||||
szAllocPages db 'AllocPages',0
|
szAllocPages db 'AllocPages',0
|
||||||
@ -92,6 +93,7 @@ kernel_export:
|
|||||||
dd szPciRead8 , pci_read8
|
dd szPciRead8 , pci_read8
|
||||||
dd szPciWrite8 , pci_write8
|
dd szPciWrite8 , pci_write8
|
||||||
dd szPciWrite16 , pci_write16
|
dd szPciWrite16 , pci_write16
|
||||||
|
dd szPciWrite32 , pci_write32
|
||||||
|
|
||||||
dd szAllocPage , alloc_page ;stdcall
|
dd szAllocPage , alloc_page ;stdcall
|
||||||
dd szAllocPages , alloc_pages ;stdcall
|
dd szAllocPages , alloc_pages ;stdcall
|
||||||
|
@ -28,6 +28,7 @@ kernel_export \
|
|||||||
PciRead8,\
|
PciRead8,\
|
||||||
PciWrite8,\
|
PciWrite8,\
|
||||||
PciWrite16,\
|
PciWrite16,\
|
||||||
|
PciWrite32,\
|
||||||
\
|
\
|
||||||
AllocPage,\
|
AllocPage,\
|
||||||
AllocPages,\
|
AllocPages,\
|
||||||
|
Loading…
Reference in New Issue
Block a user