diff options
author | Michael Brown | 2018-04-19 13:36:16 +0200 |
---|---|---|
committer | Michael Brown | 2018-04-19 13:36:16 +0200 |
commit | 285e3e5287358c2f904ad74fabac9fefcdb46150 (patch) | |
tree | cd12896b388abeaa7f9bb027e13e2214cdb64704 | |
parent | [rhine] Fix usage of mii_read() (diff) | |
download | ipxe-285e3e5287358c2f904ad74fabac9fefcdb46150.tar.gz ipxe-285e3e5287358c2f904ad74fabac9fefcdb46150.tar.xz ipxe-285e3e5287358c2f904ad74fabac9fefcdb46150.zip |
[velocity] Fix usage of mii_read() and mii_write()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/drivers/net/velocity.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/net/velocity.c b/src/drivers/net/velocity.c index 6d518520..129fc136 100644 --- a/src/drivers/net/velocity.c +++ b/src/drivers/net/velocity.c @@ -194,14 +194,14 @@ static void velocity_set_link ( struct velocity_nic *vlc ) { int tmp; /* Advertise 1000MBit */ - tmp = velocity_mii_read ( &vlc->mii, MII_CTRL1000 ); + tmp = mii_read ( &vlc->mii, MII_CTRL1000 ); 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 */ - tmp = velocity_mii_read ( &vlc->mii, MII_BMCR ); + tmp = mii_read ( &vlc->mii, MII_BMCR ); tmp |= BMCR_SPEED1000; - velocity_mii_write ( &vlc->mii, MII_BMCR, tmp ); + mii_write ( &vlc->mii, MII_BMCR, tmp ); } /****************************************************************************** |