VirtualBox

Changeset 78558 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2019 9:05:35 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130611
Message:

PCnet: Default to auto-negotiation on in BCR32, debug dump a bit of MII state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r78478 r78558  
    34033403    *(uint16_t *)&pThis->aPROM[12] = RT_H2LE_U16(checksum);
    34043404
     3405    /* Many of the BCR values would normally be read from the EEPROM. */
    34053406    pThis->aBCR[BCR_MSRDA] = 0x0005;
    34063407    pThis->aBCR[BCR_MSWRA] = 0x0005;
     
    34193420    pThis->iLog2DescSize   = 3;
    34203421    pThis->aBCR[BCR_PLAT ] = 0xff06;
     3422    pThis->aBCR[BCR_MIICAS  ] = 0x20;   /* Auto-negotiation on. */
    34213423    pThis->aBCR[BCR_MIIADDR ] = 0;  /* Internal PHY on Am79C973 would be (0x1e << 5) */
    34223424    pThis->aBCR[BCR_PCIVID] = PCIDevGetVendorId(&pThis->PciDev);
     
    42314233                    pThis->aCSR[122], !!(pThis->aCSR[122] & RT_BIT(3)));
    42324234
     4235    if (pThis->uDevType == DEV_AM79C973)
     4236    {
     4237        /* Print a bit of the MII state. */
     4238        pHlp->pfnPrintf(pHlp,
     4239                        "BCR32=%#06x: MIIILP=%d XPHYSP=%d XPHYFD=%d XPHYANE=%d XPHYRST=%d\n"
     4240                        "              DANAS=%d APDW=%u APEP=%d FMDC=%u MIIPD=%d ANTST=%d\n",
     4241                        pThis->aBCR[32],
     4242                        !!(pThis->aBCR[32] & RT_BIT( 1)), !!(pThis->aBCR[32] & RT_BIT( 3)), !!(pThis->aBCR[32] & RT_BIT( 4)),
     4243                        !!(pThis->aBCR[32] & RT_BIT( 5)), !!(pThis->aBCR[32] & RT_BIT( 6)), !!(pThis->aBCR[32] & RT_BIT( 7)),
     4244                        (pThis->aBCR[32] >> 8) & 0x7,
     4245                        !!(pThis->aBCR[32] & RT_BIT(11)),
     4246                        (pThis->aBCR[32] >> 12) & 0x3,
     4247                        !!(pThis->aBCR[32] & RT_BIT(14)), !!(pThis->aBCR[32] & RT_BIT(15)));
     4248    }
    42334249
    42344250    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette