Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3857 → Rev 3858

/drivers/ethernet/RTL8139.asm
547,7 → 547,11
DEBUGF 2, "Reset timeout!\n"
.reset_completed:
 
; Read MAC address
call read_mac
 
; unlock config and BMCR registers
set_io 0
set_io REG_9346CR
mov al, (1 shl BIT_93C46_EEM1) or (1 shl BIT_93C46_EEM0)
out dx, al
560,7 → 564,6
out dx, eax
 
; enable Rx/Tx
 
mov al, (1 shl BIT_RE) or (1 shl BIT_TE)
set_io REG_COMMAND
out dx, al
567,9 → 570,9
 
; Rxbuffer size, unlimited dma burst, no wrapping, no rx threshold
; accept broadcast packets, accept physical match packets
mov ax, RX_CONFIG
mov eax, RX_CONFIG
set_io REG_RXCONFIG
out dx, ax
out dx, eax
 
; 1024 bytes DMA burst, total retries = 16 + 8 * 16 = 144
mov eax, (TX_MXDMA shl BIT_TX_MXDMA) or (TXRR shl BIT_TXRR) or BIT_IFG1 or BIT_IFG0
617,9 → 620,6
set_io REG_RBSTART
out dx, eax
 
; Read MAC address
call read_mac
 
; enable interrupts
set_io 0
set_io REG_IMR