Browse Source

[velocity] Fix usage of mii_read() and mii_write()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 6 years ago
parent
commit
285e3e5287
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/drivers/net/velocity.c

+ 4
- 4
src/drivers/net/velocity.c View File

194
 	int tmp;
194
 	int tmp;
195
 
195
 
196
 	/* Advertise 1000MBit */
196
 	/* Advertise 1000MBit */
197
-	tmp = velocity_mii_read ( &vlc->mii, MII_CTRL1000 );
197
+	tmp = mii_read ( &vlc->mii, MII_CTRL1000 );
198
 	tmp |= ADVERTISE_1000FULL | ADVERTISE_1000HALF;
198
 	tmp |= ADVERTISE_1000FULL | ADVERTISE_1000HALF;
199
-	velocity_mii_write ( &vlc->mii, MII_CTRL1000, tmp );
199
+	mii_write ( &vlc->mii, MII_CTRL1000, tmp );
200
 
200
 
201
 	/* Enable GBit operation in MII Control Register */
201
 	/* Enable GBit operation in MII Control Register */
202
-	tmp = velocity_mii_read ( &vlc->mii, MII_BMCR );
202
+	tmp = mii_read ( &vlc->mii, MII_BMCR );
203
 	tmp |= BMCR_SPEED1000;
203
 	tmp |= BMCR_SPEED1000;
204
-	velocity_mii_write ( &vlc->mii, MII_BMCR, tmp );
204
+	mii_write ( &vlc->mii, MII_BMCR, tmp );
205
 }
205
 }
206
 
206
 
207
 /******************************************************************************
207
 /******************************************************************************

Loading…
Cancel
Save