2009-09-17 13:55:38 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
2012-04-02 17:18:46 +02:00
|
|
|
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
|
2009-09-17 13:55:38 +02:00
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2012-04-02 17:18:46 +02:00
|
|
|
$Revision $
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
iglobal
|
2012-02-22 17:06:05 +01:00
|
|
|
szKernel db 'KERNEL', 0
|
|
|
|
szVersion db 'version',0
|
2009-09-17 13:55:38 +02:00
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
szRegService db 'RegService',0
|
|
|
|
szGetService db 'GetService',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szServiceHandler db 'ServiceHandler',0
|
|
|
|
szAttachIntHandler db 'AttachIntHandler',0
|
2012-02-22 17:06:05 +01:00
|
|
|
; szGetIntHandler db 'GetIntHandler', 0
|
|
|
|
szFpuSave db 'FpuSave',0
|
|
|
|
szFpuRestore db 'FpuRestore',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szReservePortArea db 'ReservePortArea',0
|
2012-02-22 17:06:05 +01:00
|
|
|
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
|
|
|
|
szPciRead8 db 'PciRead8', 0
|
|
|
|
szPciWrite8 db 'PciWrite8',0
|
|
|
|
szPciWrite16 db 'PciWrite16',0
|
|
|
|
szPciWrite32 db 'PciWrite32',0
|
|
|
|
|
|
|
|
szAllocPage db 'AllocPage',0
|
|
|
|
szAllocPages db 'AllocPages',0
|
|
|
|
szFreePage db 'FreePage',0
|
|
|
|
szGetPgAddr db 'GetPgAddr',0
|
|
|
|
szMapPage db 'MapPage',0
|
|
|
|
szMapSpace db 'MapSpace',0
|
|
|
|
szMapIoMem db 'MapIoMem',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szCommitPages db 'CommitPages',0
|
|
|
|
szReleasePages db 'ReleasePages',0
|
|
|
|
|
|
|
|
szAllocKernelSpace db 'AllocKernelSpace',0
|
|
|
|
szFreeKernelSpace db 'FreeKernelSpace',0
|
|
|
|
szKernelAlloc db 'KernelAlloc',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szKernelFree db 'KernelFree',0
|
|
|
|
szUserAlloc db 'UserAlloc',0
|
|
|
|
szUserFree db 'UserFree',0
|
|
|
|
szKmalloc db 'Kmalloc',0
|
|
|
|
szKfree db 'Kfree',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szCreateRingBuffer db 'CreateRingBuffer',0
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
szGetPid db 'GetPid',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szCreateObject db 'CreateObject',0
|
|
|
|
szDestroyObject db 'DestroyObject',0
|
|
|
|
szCreateEvent db 'CreateEvent',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szRaiseEvent db 'RaiseEvent',0
|
|
|
|
szWaitEvent db 'WaitEvent',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szDestroyEvent db 'DestroyEvent',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szClearEvent db 'ClearEvent',0
|
2009-09-17 13:55:38 +02:00
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
szLoadCursor db 'LoadCursor',0
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
szSysMsgBoardStr db 'SysMsgBoardStr', 0
|
|
|
|
szSysMsgBoardChar db 'SysMsgBoardChar', 0
|
|
|
|
szGetCurrentTask db 'GetCurrentTask',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szLFBAddress db 'LFBAddress',0
|
|
|
|
szLoadFile db 'LoadFile',0
|
|
|
|
szSendEvent db 'SendEvent',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szSetMouseData db 'SetMouseData',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szSleep db 'Sleep',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szGetTimerTicks db 'GetTimerTicks',0
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
szGetDisplay db 'GetDisplay',0
|
|
|
|
szSetScreen db 'SetScreen',0
|
2009-09-17 13:55:38 +02:00
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
szStrncat db 'strncat',0
|
|
|
|
szStrncpy db 'strncpy',0
|
|
|
|
szstrncmp db 'strncmp',0
|
|
|
|
szStrnlen db 'strnlen',0
|
|
|
|
szStrchr db 'strchr',0
|
|
|
|
szStrrchr db 'strrchr',0
|
|
|
|
|
|
|
|
szDiskAdd db 'DiskAdd',0
|
|
|
|
szDiskDel db 'DiskDel',0
|
|
|
|
szDiskMediaChanged db 'DiskMediaChanged',0
|
|
|
|
|
|
|
|
szTimerHS db 'TimerHS',0
|
|
|
|
szCancelTimerHS db 'CancelTimerHS',0
|
|
|
|
|
|
|
|
szNetRegDev db 'NetRegDev',0
|
2010-07-12 01:13:12 +02:00
|
|
|
szNetUnRegDev db 'NetUnRegDev',0
|
|
|
|
szNetPtrToNum db 'NetPtrToNum',0
|
2009-09-17 13:55:38 +02:00
|
|
|
szEthReceiver db 'EthReceiver',0
|
2012-02-22 17:06:05 +01:00
|
|
|
szIPv4_input db 'IPv4_input',0
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
align 16
|
|
|
|
kernel_export:
|
|
|
|
dd szRegService , reg_service
|
|
|
|
dd szGetService , get_service
|
|
|
|
dd szServiceHandler , srv_handler
|
|
|
|
dd szAttachIntHandler, attach_int_handler
|
2012-02-22 17:06:05 +01:00
|
|
|
; dd szGetIntHandler , get_int_handler
|
|
|
|
dd szFpuSave , fpu_save
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szFpuRestore , fpu_restore
|
|
|
|
dd szReservePortArea , r_f_port_area
|
|
|
|
dd szBoot_Log , boot_log
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szMutexInit , mutex_init ;gcc fastcall
|
|
|
|
dd szMutexLock , mutex_lock ;gcc fastcall
|
|
|
|
dd szMutexUnlock , mutex_unlock ;gcc fastcall
|
|
|
|
|
|
|
|
dd szPciApi , pci_api_drv
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szPciRead32 , pci_read32
|
|
|
|
dd szPciRead16 , pci_read16
|
|
|
|
dd szPciRead8 , pci_read8
|
|
|
|
dd szPciWrite8 , pci_write8
|
|
|
|
dd szPciWrite16 , pci_write16
|
|
|
|
dd szPciWrite32 , pci_write32
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szAllocPage , alloc_page ;stdcall
|
|
|
|
dd szAllocPages , alloc_pages ;stdcall
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szFreePage , free_page
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szMapPage , map_page ;stdcall
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szMapSpace , map_space
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szMapIoMem , map_io_mem ;stdcall
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szGetPgAddr , get_pg_addr
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szCommitPages , commit_pages ;not implemented
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szReleasePages , release_pages
|
|
|
|
|
|
|
|
dd szAllocKernelSpace, alloc_kernel_space ;stdcall
|
|
|
|
dd szFreeKernelSpace , free_kernel_space ;stdcall
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szKernelAlloc , kernel_alloc ;stdcall
|
|
|
|
dd szKernelFree , kernel_free ;stdcall
|
|
|
|
dd szUserAlloc , user_alloc ;stdcall
|
|
|
|
dd szUserFree , user_free ;stdcall
|
|
|
|
dd szKmalloc , malloc
|
|
|
|
dd szKfree , free
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szCreateRingBuffer, create_ring_buffer ;stdcall
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szGetPid , get_pid
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szCreateObject , create_kernel_object
|
|
|
|
dd szDestroyObject , destroy_kernel_object
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szCreateEvent , create_event ;see EVENT.inc for specification
|
|
|
|
dd szRaiseEvent , raise_event ;see EVENT.inc for specification
|
|
|
|
dd szWaitEvent , wait_event ;see EVENT.inc for specification
|
|
|
|
dd szDestroyEvent , destroy_event ;see EVENT.inc for specification
|
|
|
|
dd szClearEvent , clear_event ;see EVENT.inc for specification
|
2009-09-17 13:55:38 +02:00
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szLoadCursor , load_cursor ;stdcall
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
dd szSysMsgBoardStr , sys_msg_board_str
|
|
|
|
dd szSysMsgBoardChar , sys_msg_board
|
|
|
|
dd szGetCurrentTask , get_curr_task
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szLoadFile , load_file ;retval eax, ebx
|
|
|
|
dd szSendEvent , send_event ;see EVENT.inc for specification
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szSetMouseData , set_mouse_data ;stdcall
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szSleep , delay_ms
|
2009-09-17 13:55:38 +02:00
|
|
|
dd szGetTimerTicks , get_timer_ticks
|
|
|
|
|
2012-02-22 17:06:05 +01:00
|
|
|
dd szGetDisplay , get_display
|
|
|
|
dd szSetScreen , set_screen
|
|
|
|
|
|
|
|
dd szStrncat , strncat
|
|
|
|
dd szStrncpy , strncpy
|
|
|
|
dd szstrncmp , strncmp
|
|
|
|
dd szStrnlen , strnlen
|
|
|
|
dd szStrchr , strchr
|
|
|
|
dd szStrrchr , strrchr
|
|
|
|
|
|
|
|
dd szDiskAdd , disk_add
|
|
|
|
dd szDiskDel , disk_del
|
|
|
|
dd szDiskMediaChanged, disk_media_changed
|
|
|
|
|
|
|
|
dd szTimerHS , timer_hs
|
|
|
|
dd szCancelTimerHS , cancel_timer_hs
|
2009-09-17 13:55:38 +02:00
|
|
|
|
2010-07-12 01:13:12 +02:00
|
|
|
dd szNetRegDev , NET_add_device
|
|
|
|
dd szNetUnRegDev , NET_remove_device
|
|
|
|
dd szNetPtrToNum , NET_ptr_to_num
|
2010-07-27 20:53:38 +02:00
|
|
|
dd szEthReceiver , ETH_input
|
|
|
|
dd szIPv4_input , IPv4_input
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
exp_lfb:
|
|
|
|
dd szLFBAddress , 0
|
2012-02-22 17:06:05 +01:00
|
|
|
dd 0 ;terminator, must be zero
|
2009-09-17 13:55:38 +02:00
|
|
|
|
|
|
|
endg
|