/kernel/trunk/bus/pci/pci32.inc |
---|
61,17 → 61,19 |
jne pci_service_not_supported |
;cross |
push eax |
mov eax,ebx |
mov ebx,ecx |
mov ecx,edx |
movzx edx, al |
pop edx |
movzx edx, dl |
;;;;;;;;;;;;;;;;;;; |
if defined mmio_pci_addr |
cmp al, 13 |
cmp dl, 13 |
ja pci_service_not_supported |
else |
cmp al, 10 |
cmp dl, 10 |
ja pci_service_not_supported |
end if |
/kernel/trunk/core/exports.inc |
---|
22,6 → 22,10 |
szReservePortArea db 'ReservePortArea',0 |
szBoot_Log db 'Boot_Log',0 |
szMutexInit db 'MutexInit',0 |
szMutexLock db 'MutexLock',0 |
szMutexUnlock db 'MutexUnlock',0 |
szPciApi db 'PciApi', 0 |
szPciRead32 db 'PciRead32', 0 |
szPciRead16 db 'PciRead16', 0 |
91,6 → 95,10 |
dd szReservePortArea , r_f_port_area |
dd szBoot_Log , boot_log |
dd szMutexInit , mutex_init ;gcc fastcall |
dd szMutexLock , mutex_lock ;gcc fastcall |
dd szMutexUnlock , mutex_unlock ;gcc fastcall |
dd szPciApi , pci_api |
dd szPciRead32 , pci_read32 |
dd szPciRead16 , pci_read16 |
/kernel/trunk/core/peload.inc |
---|
283,6 → 283,12 |
alloc_page, 'AllocPage', \ ; gcc ABI |
alloc_pages, 'AllocPages', \ ; stdcall |
commit_pages, 'CommitPages', \ ; eax, ebx, ecx |
\ |
create_event, 'CreateEvent', \ ; ecx, esi |
raise_event, 'RaiseEvent', \ ; eax, ebx, edx, esi |
wait_event, 'WaitEvent', \ ; eax, ebx |
get_event_ex, 'GetEvent', \ ; edi |
\ |
create_kernel_object, 'CreateObject', \ |
create_ring_buffer, 'CreateRingBuffer', \ ; stdcall |
destroy_kernel_object, 'DestroyObject', \ |
/kernel/trunk/drivers/imports.inc |
---|
27,6 → 27,10 |
ReservePortArea,\ |
Boot_Log,\ |
\ |
MutexInit, |
MutexLock, |
MutexUnlock, |
\ |
PciApi,\ |
PciRead32,\ |
PciRead16,\ |