Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1823 → Rev 1822

/kernel/branches/net/drivers/RTL8169.asm
10,7 → 10,6
;; ;;
;; Version 0.1 11 February 2007 ;;
;; Version 0.2 3 August 2010 - port to net branch by hidnplayr ;;
;; Version 0.3 31 Januari 2011 - bugfixes by hidnplayr ;;
;; ;;
;; References: ;;
;; r8169.c - linux driver (etherboot project) ;;
605,7 → 604,6
ret
 
.match:
DEBUGF 1,"init_board: chipset=%u\n", ecx
xor eax,eax
ret
 
1043,8 → 1041,6
mul [tpc.cur_tx]
lea esi, [eax + tx_ring]
 
DEBUGF 1,"Using TX desc: %x\n", esi
 
;---------------------------
; Program the packet pointer
 
1144,11 → 1140,8
jz .no_rx
 
push ax
push ebx
 
.check_more:
pop ebx
DEBUGF 1,"ebx = 0x%x\n", ebx
mov eax, rx_desc.size
mul [tpc.cur_rx]
lea esi, [eax + rx_ring]
1164,7 → 1157,6
test eax, SD_RxRES
jnz .rx_return ;;;;; RX error!
 
push ebx
push .check_more
and eax, 0x00001FFF
add eax, -4 ; we dont need CRC
1228,7 → 1220,6
jnz .maybenext
 
push ecx
DEBUGF 1,"Freeing up TX desc: %x\n", esi
stdcall KernelFree, [esi+tx_desc.buf_soft_addr]
pop ecx
and [esi+tx_desc.buf_soft_addr], 0