Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2912 → Rev 2913

/kernel/branches/net/drivers/sis900.asm
1065,10 → 1065,12
DEBUGF 1,"IRQ! status=%x\n", ax
 
test ax, RxOK
jz .no_rx
jz .no_rx_
 
push ax
 
.rx_loop:
 
;-----------
; Get Status
movzx eax, [device.cur_rx] ; find current descriptor
1078,12 → 1080,10
;-------------------------------------------
; Check RX_Status to see if packet is waiting
test ecx, 0x80000000
jnz .is_packet
ret
jz .no_rx
 
;----------------------------------------------
; There is a packet waiting check it for errors
.is_packet:
test ecx, 0x67C0000 ; see if there are any errors
jnz .error_status
 
1122,9 → 1122,18
inc [device.cur_rx] ; get next descriptor
and [device.cur_rx], NUM_RX_DESC-1 ; only 4 descriptors 0-3
 
jmp .rx_loop
 
.no_rx:
set_io 0
set_io cr
in eax, dx
or eax, RxENA ; Re-Enable the Receive state machine
out dx, eax
 
pop ax
 
.no_rx:
.no_rx_:
test ax, TxOK
jz .no_tx