mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 01:42:37 +03:00
[velocity] Fix usage of mii_read() and mii_write()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -194,14 +194,14 @@ static void velocity_set_link ( struct velocity_nic *vlc ) {
|
|||||||
int tmp;
|
int tmp;
|
||||||
|
|
||||||
/* Advertise 1000MBit */
|
/* Advertise 1000MBit */
|
||||||
tmp = velocity_mii_read ( &vlc->mii, MII_CTRL1000 );
|
tmp = mii_read ( &vlc->mii, MII_CTRL1000 );
|
||||||
tmp |= ADVERTISE_1000FULL | ADVERTISE_1000HALF;
|
tmp |= ADVERTISE_1000FULL | ADVERTISE_1000HALF;
|
||||||
velocity_mii_write ( &vlc->mii, MII_CTRL1000, tmp );
|
mii_write ( &vlc->mii, MII_CTRL1000, tmp );
|
||||||
|
|
||||||
/* Enable GBit operation in MII Control Register */
|
/* Enable GBit operation in MII Control Register */
|
||||||
tmp = velocity_mii_read ( &vlc->mii, MII_BMCR );
|
tmp = mii_read ( &vlc->mii, MII_BMCR );
|
||||||
tmp |= BMCR_SPEED1000;
|
tmp |= BMCR_SPEED1000;
|
||||||
velocity_mii_write ( &vlc->mii, MII_BMCR, tmp );
|
mii_write ( &vlc->mii, MII_BMCR, tmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user