Subversion Repositories Kolibri OS

Rev

Rev 3346 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3346 Rev 3349
Line 737... Line 737...
737
        set_io  0x0b
737
        set_io  0x0b
738
  .loop:
738
  .loop:
739
        in      al, dx
739
        in      al, dx
740
        loop    .loop
740
        loop    .loop
Line 741... Line 741...
741
 
741
 
742
; Get rid of stary ints
742
; Get rid of stray ints
743
        set_io  REG_COMMAND
743
        set_io  REG_COMMAND
744
        mov     ax, AckIntr + 0xff
744
        mov     ax, AckIntr + 0xff
Line 745... Line 745...
745
        out     dx, ax
745
        out     dx, ax
Line 759... Line 759...
759
        call    rx_reset
759
        call    rx_reset
760
        call    tx_reset
760
        call    tx_reset
Line 761... Line 761...
761
 
761
 
Line 762... Line -...
762
;>>>>>>>>>>>>>>>>>>
-
 
763
 
-
 
764
        set_io  0
-
 
765
        set_io  REG_COMMAND
-
 
766
        mov     ax, RxEnable
-
 
767
        out     dx, ax
-
 
768
 
-
 
769
        mov     ax, TxEnable
-
 
770
        out     dx, ax
-
 
771
 
-
 
772
        set_io  REG_COMMAND
-
 
773
        mov     ax, SetRxThreshold + 208
-
 
774
        out     dx, ax
-
 
775
 
-
 
776
        mov     ax, SetTxThreshold + 60 ;16 ; recommended by the manual :)
-
 
777
        out     dx, ax
-
 
778
 
-
 
779
        mov     ax, SELECT_REGISTER_WINDOW + 1
-
 
780
        out     dx, ax
762
;>>>>>>>>>>>>>>>>>>
781
 
763
 
Line 782... Line 764...
782
        xor     eax, eax
764
        xor     eax, eax
783
; clear packet/byte counters
765
; clear packet/byte counters
Line 848... Line 830...
848
        out     dx, ax
830
        out     dx, ax
Line 849... Line 831...
849
 
831
 
850
        mov     ax, SetIntrEnb + S_5_INTS
832
        mov     ax, SetIntrEnb + S_5_INTS
Line -... Line 833...
-
 
833
        out     dx, ax
-
 
834
 
-
 
835
; Start RX/TX
-
 
836
 
-
 
837
        set_io  0
-
 
838
        set_io  REG_COMMAND
-
 
839
        mov     ax, RxEnable
-
 
840
        out     dx, ax
-
 
841
 
-
 
842
        mov     ax, TxEnable
-
 
843
        out     dx, ax
-
 
844
 
-
 
845
        set_io  REG_COMMAND
-
 
846
        mov     ax, SetRxThreshold + 208
-
 
847
        out     dx, ax
-
 
848
 
-
 
849
        mov     ax, SetTxThreshold + 60 ;16 ; recommended by the manual :)
-
 
850
        out     dx, ax
-
 
851
 
-
 
852
        mov     ax, SELECT_REGISTER_WINDOW + 1
851
        out     dx, ax
853
        out     dx, ax