forked from KolibriOS/kolibrios
Fixed RTL8139 driver broken in #3346
git-svn-id: svn://kolibrios.org@3385 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
33f74c34fd
commit
0d13375a81
@ -543,6 +543,12 @@ reset:
|
|||||||
set_io REG_MAR4
|
set_io REG_MAR4
|
||||||
out dx, eax
|
out dx, eax
|
||||||
|
|
||||||
|
; enable Rx/Tx
|
||||||
|
|
||||||
|
mov al, (1 shl BIT_RE) or (1 shl BIT_TE)
|
||||||
|
set_io REG_COMMAND
|
||||||
|
out dx, al
|
||||||
|
|
||||||
; Rxbuffer size, unlimited dma burst, no wrapping, no rx threshold
|
; Rxbuffer size, unlimited dma burst, no wrapping, no rx threshold
|
||||||
; accept broadcast packets, accept physical match packets
|
; accept broadcast packets, accept physical match packets
|
||||||
mov ax, RX_CONFIG
|
mov ax, RX_CONFIG
|
||||||
@ -598,13 +604,8 @@ reset:
|
|||||||
; Read MAC address
|
; Read MAC address
|
||||||
call read_mac
|
call read_mac
|
||||||
|
|
||||||
; enable Rx/Tx
|
|
||||||
set_io 0
|
|
||||||
mov al, (1 shl BIT_RE) or (1 shl BIT_TE)
|
|
||||||
set_io REG_COMMAND
|
|
||||||
out dx, al
|
|
||||||
|
|
||||||
; enable interrupts
|
; enable interrupts
|
||||||
|
set_io 0
|
||||||
set_io REG_IMR
|
set_io REG_IMR
|
||||||
mov ax, INTERRUPT_MASK
|
mov ax, INTERRUPT_MASK
|
||||||
out dx, ax
|
out dx, ax
|
||||||
|
Loading…
Reference in New Issue
Block a user