forked from KolibriOS/kolibrios
3c59x: enable RX/TX after enabling interrupts, not before.
git-svn-id: svn://kolibrios.org@3349 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2c13dbe1c3
commit
e4513c6c12
@ -739,7 +739,7 @@ reset:
|
||||
in al, dx
|
||||
loop .loop
|
||||
|
||||
; Get rid of stary ints
|
||||
; Get rid of stray ints
|
||||
set_io REG_COMMAND
|
||||
mov ax, AckIntr + 0xff
|
||||
out dx, ax
|
||||
@ -761,24 +761,6 @@ reset:
|
||||
|
||||
;>>>>>>>>>>>>>>>>>>
|
||||
|
||||
set_io 0
|
||||
set_io REG_COMMAND
|
||||
mov ax, RxEnable
|
||||
out dx, ax
|
||||
|
||||
mov ax, TxEnable
|
||||
out dx, ax
|
||||
|
||||
set_io REG_COMMAND
|
||||
mov ax, SetRxThreshold + 208
|
||||
out dx, ax
|
||||
|
||||
mov ax, SetTxThreshold + 60 ;16 ; recommended by the manual :)
|
||||
out dx, ax
|
||||
|
||||
mov ax, SELECT_REGISTER_WINDOW + 1
|
||||
out dx, ax
|
||||
|
||||
xor eax, eax
|
||||
; clear packet/byte counters
|
||||
|
||||
@ -850,6 +832,26 @@ start_device:
|
||||
mov ax, SetIntrEnb + S_5_INTS
|
||||
out dx, ax
|
||||
|
||||
; Start RX/TX
|
||||
|
||||
set_io 0
|
||||
set_io REG_COMMAND
|
||||
mov ax, RxEnable
|
||||
out dx, ax
|
||||
|
||||
mov ax, TxEnable
|
||||
out dx, ax
|
||||
|
||||
set_io REG_COMMAND
|
||||
mov ax, SetRxThreshold + 208
|
||||
out dx, ax
|
||||
|
||||
mov ax, SetTxThreshold + 60 ;16 ; recommended by the manual :)
|
||||
out dx, ax
|
||||
|
||||
mov ax, SELECT_REGISTER_WINDOW + 1
|
||||
out dx, ax
|
||||
|
||||
ret
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user