VirtualBox

Changeset 22369 in vbox


Ignore:
Timestamp:
Aug 20, 2009 12:46:53 PM (15 years ago)
Author:
vboxsync
Message:

PCNet/E1000: change the link UP delay to 5 seconds

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

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

    r22218 r22369  
    43034303        if (fNewUp)
    43044304        {
    4305             E1kLog(("%s Link is up\n", INSTANCE(pState)));
    4306             STATUS |= STATUS_LU;
    4307             Phy::setLinkStatus(&pState->phy, true);
     4305            E1kLog(("%s Link will be up in approximately 5 secs\n", INSTANCE(pState)));
     4306            STATUS &= ~STATUS_LU;
     4307            Phy::setLinkStatus(&pState->phy, false);
     4308            e1kRaiseInterrupt(pState, ICR_LSC);
     4309            /* Restore the link back in 5 second. */
     4310            e1kArmTimer(pState, pState->pLUTimer, 5000000);
    43084311        }
    43094312        else
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r21969 r22369  
    46314631        if (fLinkUp)
    46324632        {
    4633             /* connect */
    4634             pThis->aCSR[0] &= ~(RT_BIT(15) | RT_BIT(13)); /* ERR | CERR - probably not 100% correct either... */
    4635             pThis->Led.Actual.s.fError = 0;
     4633            /* connect  with a delay of 5 seconds */
     4634            pThis->fLinkTempDown = true;
     4635            pThis->cLinkDownReported = 0;
     4636            pThis->aCSR[0] |= RT_BIT(15) | RT_BIT(13); /* ERR | CERR (this is probably wrong) */
     4637            pThis->Led.Asserted.s.fError = pThis->Led.Actual.s.fError = 1;
     4638            int rc = TMTimerSetMillies(pThis->pTimerRestore, 5000);
     4639            AssertRC(rc);
    46364640        }
    46374641        else
Note: See TracChangeset for help on using the changeset viewer.

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