Fix the reported PHY of PCnet-FAST III (#1047)
This commit is contained in:
@@ -2223,7 +2223,7 @@ pcnet_bcr_readw(nic_t *dev, uint16_t rap)
|
|||||||
val |= (val & 0x017f & dev->u32Lnkst) ? 0x8000 : 0;
|
val |= (val & 0x017f & dev->u32Lnkst) ? 0x8000 : 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BCR_MIIADDR:
|
case BCR_MIIMDR:
|
||||||
if ((dev->board == DEV_AM79C973) && (((dev->aBCR[BCR_MIIADDR] >> 5) & 0x1f) == 0)) {
|
if ((dev->board == DEV_AM79C973) && (((dev->aBCR[BCR_MIIADDR] >> 5) & 0x1f) == 0)) {
|
||||||
uint16_t miiaddr = dev->aBCR[BCR_MIIADDR] & 0x1f;
|
uint16_t miiaddr = dev->aBCR[BCR_MIIADDR] & 0x1f;
|
||||||
val = pcnet_mii_readw(dev, miiaddr);
|
val = pcnet_mii_readw(dev, miiaddr);
|
||||||
|
Reference in New Issue
Block a user