VirtualBox

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


Ignore:
Timestamp:
Feb 5, 2013 9:31:10 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83586
Message:

DevE1000.cpp: Don't use the default device critsect.

File:
1 edited

Legend:

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

    r44536 r44537  
    64396439
    64406440/**
    6441  * @callback_method_impl{FNSSMDEVSAVEPREP}
     6441 * @callback_method_impl{FNSSMDEVSAVEPREP,Synchronize.}
    64426442 */
    64436443static DECLCALLBACK(int) e1kSavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
     
    64756475
    64766476/**
    6477  * @callback_method_impl{FNSSMDEVSAVEEXEc}
     6477 * @callback_method_impl{FNSSMDEVSAVEEXEC}
    64786478 */
    64796479static DECLCALLBACK(int) e1kSaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
     
    74067406    pThis->INetworkConfig.pfnSetLinkState   = e1kSetLinkState;
    74077407
    7408 
    74097408    /*
    74107409     * Validate configuration.
     
    74647463    Assert(pThis->cMsLinkUpDelay <= 300000); /* less than 5 minutes */
    74657464    if (pThis->cMsLinkUpDelay > 5000)
    7466     {
    7467         LogRel(("%s WARNING! Link up delay is set to %u seconds!\n",
    7468                 INSTANCE(pThis), pThis->cMsLinkUpDelay / 1000));
    7469     }
     7465        LogRel(("%s WARNING! Link up delay is set to %u seconds!\n", INSTANCE(pThis), pThis->cMsLinkUpDelay / 1000));
    74707466    else if (pThis->cMsLinkUpDelay == 0)
    7471     {
    74727467        LogRel(("%s WARNING! Link up delay is disabled!\n", INSTANCE(pThis)));
    7473     }
    74747468
    74757469    E1kLog(("%s Chip=%s LinkUpDelay=%ums EthernetCRC=%s GSO=%s\n", INSTANCE(pThis),
     
    74857479    Phy::setLinkStatus(&pThis->phy, pThis->fCableConnected);
    74867480
    7487     /* Initialize critical sections. */
     7481    /* Initialize critical sections. We do our own locking. */
     7482    rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns));
     7483    AssertRCReturn(rc, rc);
     7484
    74887485    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->cs, RT_SRC_POS, "%s", pThis->szInstance);
    74897486    if (RT_FAILURE(rc))
     
    75087505    /* Set PCI config registers */
    75097506    e1kConfigurePCI(pThis->pciDevice, pThis->eChip);
     7507
    75107508    /* Register PCI device */
    75117509    rc = PDMDevHlpPCIRegister(pDevIns, &pThis->pciDevice);
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