VirtualBox

Changeset 41409 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
May 22, 2012 6:12:28 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78121
Message:

Network: renamed uLinkUpDelay to cMsLinkUpDelay

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

Legend:

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

    r41407 r41409  
    10471047    bool        Alignment2[3];
    10481048    /** Link up delay (in milliseconds). */
    1049     uint32_t    uLinkUpDelay;
     1049    uint32_t    cMsLinkUpDelay;
    10501050
    10511051    /** All: Device register storage. */
     
    21742174{
    21752175    E1kLog(("%s Will bring up the link in %d seconds...\n",
    2176             INSTANCE(pState), pState->uLinkUpDelay / 1000));
    2177     e1kArmTimer(pState, pState->CTX_SUFF(pLUTimer), pState->uLinkUpDelay * 1000);
     2176            INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
     2177    e1kArmTimer(pState, pState->CTX_SUFF(pLUTimer), pState->cMsLinkUpDelay * 1000);
    21782178}
    21792179
     
    59135913        {
    59145914            E1kLog(("%s Link will be up in approximately %d secs\n",
    5915                     INSTANCE(pState), pState->uLinkUpDelay / 1000));
     5915                    INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
    59165916            pState->fCableConnected = true;
    59175917            STATUS &= ~STATUS_LU;
     
    62216221    if (    (STATUS & STATUS_LU)
    62226222        && !PDMDevHlpVMTeleportedAndNotFullyResumedYet(pDevIns)
    6223         && pState->uLinkUpDelay)
     6223        && pState->cMsLinkUpDelay)
    62246224    {
    62256225        E1kLog(("%s Link is down temporarily\n", INSTANCE(pState)));
     
    67186718        return PDMDEV_SET_ERROR(pDevIns, rc,
    67196719                                N_("Configuration error: Failed to get the value of 'EthernetCRC'"));
    6720     rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pState->uLinkUpDelay, 5000); /* ms */
     6720    rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pState->cMsLinkUpDelay, 5000); /* ms */
    67216721    if (RT_FAILURE(rc))
    67226722        return PDMDEV_SET_ERROR(pDevIns, rc,
    67236723                                N_("Configuration error: Failed to get the value of 'LinkUpDelay'"));
    6724     Assert(pState->uLinkUpDelay <= 300000); /* less than 5 minutes */
    6725     if (pState->uLinkUpDelay > 5000)
     6724    Assert(pState->cMsLinkUpDelay <= 300000); /* less than 5 minutes */
     6725    if (pState->cMsLinkUpDelay > 5000)
    67266726    {
    67276727        LogRel(("%s WARNING! Link up delay is set to %u seconds!\n",
    6728                 INSTANCE(pState), pState->uLinkUpDelay / 1000));
    6729     }
    6730     else if (pState->uLinkUpDelay == 0)
     6728                INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
     6729    }
     6730    else if (pState->cMsLinkUpDelay == 0)
    67316731    {
    67326732        LogRel(("%s WARNING! Link up delay is disabled!\n", INSTANCE(pState)));
     
    67346734
    67356735    E1kLog(("%s Chip=%s LinkUpDelay=%ums\n", INSTANCE(pState),
    6736             g_Chips[pState->eChip].pcszName, pState->uLinkUpDelay));
     6736            g_Chips[pState->eChip].pcszName, pState->cMsLinkUpDelay));
    67376737
    67386738    /* Initialize state structure */
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r41407 r41409  
    272272    bool                                fAm79C973;
    273273    uint32_t                            u32LinkSpeed;
    274     uint32_t                            uLinkUpDelay;
     274    uint32_t                            cMsLinkUpDelay;
    275275    uint32_t                            Alignment6;
    276276
     
    43354335        pThis->aCSR[0] |= RT_BIT(15) | RT_BIT(13); /* ERR | CERR (this is probably wrong) */
    43364336        pThis->Led.Asserted.s.fError = pThis->Led.Actual.s.fError = 1;
    4337         int rc = TMTimerSetMillies(pThis->pTimerRestore, pThis->uLinkUpDelay);
     4337        int rc = TMTimerSetMillies(pThis->pTimerRestore, pThis->cMsLinkUpDelay);
    43384338        AssertRC(rc);
    43394339    }
     
    47784778            pThis->aCSR[0] |= RT_BIT(15) | RT_BIT(13); /* ERR | CERR (this is probably wrong) */
    47794779            pThis->Led.Asserted.s.fError = pThis->Led.Actual.s.fError = 1;
    4780             int rc = TMTimerSetMillies(pThis->pTimerRestore, pThis->uLinkUpDelay);
     4780            int rc = TMTimerSetMillies(pThis->pTimerRestore, pThis->cMsLinkUpDelay);
    47814781            AssertRC(rc);
    47824782        }
     
    50665066#endif /* !PCNET_GC_ENABLED */
    50675067
    5068     rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pThis->uLinkUpDelay, 5000); /* ms */
     5068    rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pThis->cMsLinkUpDelay, 5000); /* ms */
    50695069    if (RT_FAILURE(rc))
    50705070        return PDMDEV_SET_ERROR(pDevIns, rc,
    50715071                                N_("Configuration error: Failed to get the value of 'LinkUpDelay'"));
    5072     Assert(pThis->uLinkUpDelay <= 300000); /* less than 5 minutes */
    5073     if (pThis->uLinkUpDelay > 5000 || pThis->uLinkUpDelay < 100)
     5072    Assert(pThis->cMsLinkUpDelay <= 300000); /* less than 5 minutes */
     5073    if (pThis->cMsLinkUpDelay > 5000 || pThis->cMsLinkUpDelay < 100)
    50745074    {
    50755075        LogRel(("PCNet#%d WARNING! Link up delay is set to %u seconds!\n",
    5076                 iInstance, pThis->uLinkUpDelay / 1000));
     5076                iInstance, pThis->cMsLinkUpDelay / 1000));
    50775077    }
    50785078    Log(("#%d Link up delay is set to %u seconds\n",
    5079          iInstance, pThis->uLinkUpDelay / 1000));
     5079         iInstance, pThis->cMsLinkUpDelay / 1000));
    50805080
    50815081
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r41407 r41409  
    162162    bool                    fCableConnected;
    163163    /** Link up delay (in milliseconds). */
    164     uint32_t                uLinkUpDelay;
     164    uint32_t                cMsLinkUpDelay;
    165165
    166166    uint32_t                alignment;
     
    15961596        vpciRaiseInterrupt(&pState->VPCI, VERR_SEM_BUSY, VPCI_ISR_CONFIG);
    15971597        /* Restore the link back in 5 seconds. */
    1598         int rc = TMTimerSetMillies(pState->pLinkUpTimer, pState->uLinkUpDelay);
     1598        int rc = TMTimerSetMillies(pState->pLinkUpTimer, pState->cMsLinkUpDelay);
    15991599        AssertRC(rc);
    16001600    }
     
    19531953        return PDMDEV_SET_ERROR(pDevIns, rc,
    19541954                                N_("Configuration error: Failed to get the value of 'CableConnected'"));
    1955     rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pState->uLinkUpDelay, 5000); /* ms */
     1955    rc = CFGMR3QueryU32Def(pCfg, "LinkUpDelay", (uint32_t*)&pState->cMsLinkUpDelay, 5000); /* ms */
    19561956    if (RT_FAILURE(rc))
    19571957        return PDMDEV_SET_ERROR(pDevIns, rc,
    19581958                                N_("Configuration error: Failed to get the value of 'LinkUpDelay'"));
    1959     Assert(pState->uLinkUpDelay <= 300000); /* less than 5 minutes */
    1960     if (pState->uLinkUpDelay > 5000 || pState->uLinkUpDelay < 100)
     1959    Assert(pState->cMsLinkUpDelay <= 300000); /* less than 5 minutes */
     1960    if (pState->cMsLinkUpDelay > 5000 || pState->cMsLinkUpDelay < 100)
    19611961    {
    19621962        LogRel(("%s WARNING! Link up delay is set to %u seconds!\n",
    1963                 INSTANCE(pState), pState->uLinkUpDelay / 1000));
     1963                INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
    19641964    }
    19651965    Log(("%s Link up delay is set to %u seconds\n",
    1966          INSTANCE(pState), pState->uLinkUpDelay / 1000));
     1966         INSTANCE(pState), pState->cMsLinkUpDelay / 1000));
    19671967
    19681968    /* Initialize PCI config space */
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