Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4449 → Rev 4448

/drivers/ethernet/RTL8139.asm
1,6 → 1,6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; Realtek 8139 driver for KolibriOS ;;
242,7 → 242,7
 
.entry:
 
DEBUGF 2, "Loading driver\n"
DEBUGF 1, "Loading driver\n"
stdcall RegService, my_service, service_proc
ret
 
957,10 → 957,8
test ax, ISR_PUN
jz @f
 
DEBUGF 1, "Packet underrun or link changed!\n"
DEBUGF 2, "RX:Packet underrun!\n"
 
call cable
 
;----------------------------------------------------
; Receive FIFO overflow ?
@@:
968,7 → 966,7
jz @f
 
push ax
DEBUGF 2, "RX fifo overflow!\n"
DEBUGF 2, "RX:fifo overflow!\n"
 
set_io 0
set_io REG_ISR
977,13 → 975,11
pop ax
 
;----------------------------------------------------
; cable length changed ?
; Something about Cable changed ?
@@:
test ax, ISR_LENCHG
jz .fail
 
DEBUGF 2, "Cable length changed!\n"
 
call cable
 
.fail:
1019,7 → 1015,7
.100mbps:
mov [device.state], ETH_LINK_100M
call NetLinkChanged
DEBUGF 2, "link changed to 100 mbit\n"
DEBUGF 1, "100 mbit\n"
 
ret
 
1026,7 → 1022,7
.10mbps:
mov [device.state], ETH_LINK_10M
call NetLinkChanged
DEBUGF 2, "link changed to 10 mbit\n"
DEBUGF 1, "10 mbit\n"
 
ret
 
1033,7 → 1029,7
.notconnected:
mov [device.state], ETH_LINK_DOWN
call NetLinkChanged
DEBUGF 2, "no link\n"
DEBUGF 1, "no link\n"
 
ret
 
/drivers/netdrv.inc
1,6 → 1,6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; GNU GENERAL PUBLIC LICENSE ;;
8,6 → 8,9
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
include 'pci.inc'
include 'mii.inc'
 
; This macro will prepend driver name to all debug output through DEBUGF macro
; The driver name is taken from my_service label
 
19,9 → 22,6
 
end if
 
include 'pci.inc'
include 'mii.inc'
 
; Kernel variables
 
PAGESIZE = 4096