forked from KolibriOS/kolibrios
MII: only include code when its actually used.
git-svn-id: svn://kolibrios.org@3351 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c101fd199a
commit
83754e005a
@ -136,7 +136,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if defined mdio_read
|
if used mii_link_ok
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
mii_link_ok:
|
mii_link_ok:
|
||||||
@ -151,11 +151,9 @@ mii_link_ok:
|
|||||||
mov ecx, MII_BMSR
|
mov ecx, MII_BMSR
|
||||||
call mdio_read
|
call mdio_read
|
||||||
|
|
||||||
DEBUGF 1, "eax=0x%x\n", eax
|
and ax, BMSR_LSTATUS
|
||||||
|
|
||||||
and eax, BMSR_LSTATUS
|
DEBUGF 1, "link status=0x%x\n", ax
|
||||||
|
|
||||||
DEBUGF 1, "link status=0x%x\n", eax
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -1523,7 +1523,7 @@ check_media:
|
|||||||
call [device.read_bcr]
|
call [device.read_bcr]
|
||||||
cmp eax, 0xc0
|
cmp eax, 0xc0
|
||||||
|
|
||||||
DEBUGF 1, "link status=0x%x\n", eax
|
DEBUGF 1, "link status=0x%x\n", ax
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user