fix RTL8139 under qemu

git-svn-id: svn://kolibrios.org@1644 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2010-10-05 10:36:33 +00:00
parent bab525b2cf
commit baca7793c6

View File

@ -323,14 +323,14 @@ rtl8139_reset:
out dx, al out dx, al
; 32k Rxbuffer, unlimited dma burst, no wrapping, no rx threshold ; 32k Rxbuffer, unlimited dma burst, no wrapping, no rx threshold
; accept broadcast packets, accept physical match packets ; accept broadcast packets, accept physical match packets
mov ax, RTL8139_RX_CONFIG mov eax, RTL8139_RX_CONFIG
add edx, RTL8139_REG_RXCONFIG - RTL8139_REG_COMMAND add edx, RTL8139_REG_RXCONFIG - RTL8139_REG_COMMAND
out dx, ax out dx, eax
; 1024 bytes DMA burst, total retries = 16 + 8 * 16 = 144 ; 1024 bytes DMA burst, total retries = 16 + 8 * 16 = 144
mov ax, (RTL8139_TX_MXDMA shl RTL8139_BIT_TX_MXDMA) \ mov eax, (RTL8139_TX_MXDMA shl RTL8139_BIT_TX_MXDMA) \
or (RTL8139_TXRR shl RTL8139_BIT_TXRR) or (RTL8139_TXRR shl RTL8139_BIT_TXRR)
add edx, RTL8139_REG_TXCONFIG - RTL8139_REG_RXCONFIG add edx, RTL8139_REG_TXCONFIG - RTL8139_REG_RXCONFIG
out dx, ax out dx, eax
; enable auto negotiation ; enable auto negotiation
add edx, RTL8139_REG_BMCR - RTL8139_REG_TXCONFIG add edx, RTL8139_REG_BMCR - RTL8139_REG_TXCONFIG
in ax, dx in ax, dx