forked from KolibriOS/kolibrios
sysfn62: again and again...
git-svn-id: svn://kolibrios.org@1614 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
cedc365c6a
commit
5c26de5030
@ -57,23 +57,25 @@ endg
|
|||||||
align 4
|
align 4
|
||||||
|
|
||||||
pci_api:
|
pci_api:
|
||||||
cmp [pci_access_enabled],1
|
|
||||||
jne pci_service_not_supported
|
|
||||||
|
|
||||||
;cross
|
;cross
|
||||||
push eax
|
mov eax,ebx
|
||||||
mov eax,ebx
|
|
||||||
mov ebx,ecx
|
mov ebx,ecx
|
||||||
mov ecx,edx
|
mov ecx,edx
|
||||||
pop edx
|
|
||||||
movzx edx, dl
|
align 4
|
||||||
;;;;;;;;;;;;;;;;;;;
|
pci_api_drv:
|
||||||
|
|
||||||
|
cmp [pci_access_enabled],1
|
||||||
|
jne pci_service_not_supported
|
||||||
|
|
||||||
|
movzx edx, al
|
||||||
|
|
||||||
if defined mmio_pci_addr
|
if defined mmio_pci_addr
|
||||||
cmp dl, 13
|
cmp al, 13
|
||||||
ja pci_service_not_supported
|
ja pci_service_not_supported
|
||||||
else
|
else
|
||||||
cmp dl, 10
|
cmp al, 10
|
||||||
ja pci_service_not_supported
|
ja pci_service_not_supported
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ kernel_export:
|
|||||||
dd szMutexLock , mutex_lock ;gcc fastcall
|
dd szMutexLock , mutex_lock ;gcc fastcall
|
||||||
dd szMutexUnlock , mutex_unlock ;gcc fastcall
|
dd szMutexUnlock , mutex_unlock ;gcc fastcall
|
||||||
|
|
||||||
dd szPciApi , pci_api
|
dd szPciApi , pci_api_drv
|
||||||
dd szPciRead32 , pci_read32
|
dd szPciRead32 , pci_read32
|
||||||
dd szPciRead16 , pci_read16
|
dd szPciRead16 , pci_read16
|
||||||
dd szPciRead8 , pci_read8
|
dd szPciRead8 , pci_read8
|
||||||
|
@ -306,7 +306,7 @@ __exports:
|
|||||||
\
|
\
|
||||||
get_display, 'GetDisplay', \
|
get_display, 'GetDisplay', \
|
||||||
set_screen, 'SetScreen', \
|
set_screen, 'SetScreen', \
|
||||||
pci_api, 'PciApi', \
|
pci_api_drv, 'PciApi', \
|
||||||
pci_read8, 'PciRead8', \ ; stdcall
|
pci_read8, 'PciRead8', \ ; stdcall
|
||||||
pci_read16, 'PciRead16', \ ; stdcall
|
pci_read16, 'PciRead16', \ ; stdcall
|
||||||
pci_read32, 'PciRead32', \ ; stdcall
|
pci_read32, 'PciRead32', \ ; stdcall
|
||||||
|
Loading…
Reference in New Issue
Block a user