1,6 → 1,6 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved. ;; |
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;; ;; |
;; Realtek 8139 driver for KolibriOS ;; |
242,7 → 242,7 |
|
.entry: |
|
DEBUGF 1, "Loading driver\n" |
DEBUGF 2, "Loading driver\n" |
stdcall RegService, my_service, service_proc |
ret |
|
957,8 → 957,10 |
test ax, ISR_PUN |
jz @f |
|
DEBUGF 2, "RX:Packet underrun!\n" |
DEBUGF 1, "Packet underrun or link changed!\n" |
|
call cable |
|
;---------------------------------------------------- |
; Receive FIFO overflow ? |
@@: |
966,7 → 968,7 |
jz @f |
|
push ax |
DEBUGF 2, "RX:fifo overflow!\n" |
DEBUGF 2, "RX fifo overflow!\n" |
|
set_io 0 |
set_io REG_ISR |
975,11 → 977,13 |
pop ax |
|
;---------------------------------------------------- |
; Something about Cable changed ? |
; cable length changed ? |
@@: |
test ax, ISR_LENCHG |
jz .fail |
|
DEBUGF 2, "Cable length changed!\n" |
|
call cable |
|
.fail: |
1015,7 → 1019,7 |
.100mbps: |
mov [device.state], ETH_LINK_100M |
call NetLinkChanged |
DEBUGF 1, "100 mbit\n" |
DEBUGF 2, "link changed to 100 mbit\n" |
|
ret |
|
1022,7 → 1026,7 |
.10mbps: |
mov [device.state], ETH_LINK_10M |
call NetLinkChanged |
DEBUGF 1, "10 mbit\n" |
DEBUGF 2, "link changed to 10 mbit\n" |
|
ret |
|
1029,7 → 1033,7 |
.notconnected: |
mov [device.state], ETH_LINK_DOWN |
call NetLinkChanged |
DEBUGF 1, "no link\n" |
DEBUGF 2, "no link\n" |
|
ret |
|