Bladeren bron

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 6 jaren geleden
bovenliggende
commit
285e3e5287
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4
    4
      src/drivers/net/velocity.c

+ 4
- 4
src/drivers/net/velocity.c Bestand weergeven

@@ -194,14 +194,14 @@ static void velocity_set_link ( struct velocity_nic *vlc ) {
194 194
 	int tmp;
195 195
 
196 196
 	/* Advertise 1000MBit */
197
-	tmp = velocity_mii_read ( &vlc->mii, MII_CTRL1000 );
197
+	tmp = mii_read ( &vlc->mii, MII_CTRL1000 );
198 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 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 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
 /******************************************************************************

Laden…
Annuleren
Opslaan