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:
hidnplayr 2013-03-07 11:07:36 +00:00
parent 2c13dbe1c3
commit e4513c6c12

View File

@ -739,7 +739,7 @@ reset:
in al, dx in al, dx
loop .loop loop .loop
; Get rid of stary ints ; Get rid of stray ints
set_io REG_COMMAND set_io REG_COMMAND
mov ax, AckIntr + 0xff mov ax, AckIntr + 0xff
out dx, ax 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 xor eax, eax
; clear packet/byte counters ; clear packet/byte counters
@ -850,6 +832,26 @@ start_device:
mov ax, SetIntrEnb + S_5_INTS mov ax, SetIntrEnb + S_5_INTS
out dx, ax 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 ret