Bugfix for RTL8139 driver. Updated imports.inc

git-svn-id: svn://kolibrios.org@2851 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-07-09 11:18:32 +00:00
parent 23ad5dd136
commit bf6bf90871
2 changed files with 79 additions and 73 deletions

View File

@ -510,7 +510,7 @@ probe:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
reset: reset:
DEBUGF 2,"Resetting rtl8139: " DEBUGF 2,"Resetting rtl8139\n"
; attach int handler ; attach int handler
@ -617,9 +617,9 @@ reset:
mov eax, [device.rx_buffer] mov eax, [device.rx_buffer]
mov dword[eax], 0 mov dword[eax], 0
DEBUGF 2,"RX buffer:%x\n", eax DEBUGF 2,"RX buffer: %x\n", eax
GetRealAddr GetRealAddr
DEBUGF 2,"RX buffer:%X\n", eax DEBUGF 2,"RX buffer: %x\n", eax
set_io REG_RBSTART set_io REG_RBSTART
out dx , eax out dx , eax

View File

@ -1,15 +1,15 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;; ;; ;;
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;; ;; Distributed under terms of the GNU General Public License ;;
;; ;; ;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
macro kernel_export [name]{ macro kernel_export [name]{
forward forward
if used name if used name
if DEBUG if DEBUG
display 'uses: ',`name,#13,#10 display 'uses: ',`name,#13,#10
end if ; end if
extrn name extrn name
end if end if
} }
@ -17,78 +17,84 @@ forward
kernel_export \ kernel_export \
RegService,\ RegService,\
GetService,\ GetService,\
ServiceHandler,\ ServiceHandler,\
AttachIntHandler,\ AttachIntHandler,\
GetIntHandler,\ GetIntHandler,\
FpuSave,\ FpuSave,\
FpuRestore,\ FpuRestore,\
ReservePortArea,\ ReservePortArea,\
Boot_Log,\ Boot_Log,\
\ \
PciApi,\ MutexInit,\
PciRead32,\ MutexLock,\
PciRead16,\ MutexUnlock,\
PciRead8,\
PciWrite8,\
PciWrite16,\
PciWrite32,\
\ \
AllocPage,\ PciApi,\
AllocPages,\ PciRead32,\
FreePage,\ PciRead16,\
MapPage,\ PciRead8,\
MapSpace,\ PciWrite8,\
MapIoMem,\ PciWrite16,\
GetPgAddr,\ PciWrite32,\
CommitPages,\
ReleasePages,\
\ \
AllocKernelSpace,\ AllocPage,\
FreeKernelSpace,\ AllocPages,\
KernelAlloc,\ FreePage,\
KernelFree,\ MapPage,\
UserAlloc,\ MapSpace,\
UserFree,\ MapIoMem,\
Kmalloc,\ GetPgAddr,\
Kfree,\ CommitPages,\
CreateRingBuffer,\ ReleasePages,\
\ \
GetPid,\ AllocKernelSpace,\
CreateObject,\ FreeKernelSpace,\
DestroyObject,\ KernelAlloc,\
CreateEvent,\ KernelFree,\
RaiseEvent,\ UserAlloc,\
WaitEvent,\ UserFree,\
DestroyEvent,\ Kmalloc,\
ClearEvent,\ Kfree,\
CreateRingBuffer,\
\ \
LoadCursor,\ GetPid,\
SelectHwCursor,\ CreateObject,\
SetHwCursor,\ DestroyObject,\
HwCursorRestore,\ CreateEvent,\
HwCursorCreate,\ RaiseEvent,\
WaitEvent,\
DestroyEvent,\
ClearEvent,\
\ \
SysMsgBoardStr,\ LoadCursor,\
SysMsgBoardChar,\ SelectHwCursor,\
GetCurrentTask,\ SetHwCursor,\
LoadFile,\ HwCursorRestore,\
SendEvent,\ HwCursorCreate,\
SetMouseData,\
Sleep,\
GetTimerTicks,\
\ \
strncat,\ SysMsgBoardStr,\
strncpy,\ SysMsgBoardChar,\
strncmp,\ GetCurrentTask,\
strnlen,\ LoadFile,\
strchr,\ SendEvent,\
strrchr,\ SetMouseData,\
Sleep,\
GetTimerTicks,\
\ \
LFBAddress,\ strncat,\
strncpy,\
strncmp,\
strnlen,\
strchr,\
strrchr,\
\ \
NetRegDev,\ LFBAddress,\
NetUnRegDev,\ GetDisplay,\
NetPtrToNum,\ SetScreen,\
EthReceiver \
NetRegDev,\
NetUnRegDev,\
NetPtrToNum,\
EthReceiver