VirtualBox

Changeset 19007 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 18, 2009 8:07:59 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46106
Message:

Main: centralized control for extended device profiles, ACPI cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r19002 r19007  
    480480    rc = CFGMR3InsertInteger(pInst, "PCIBusNo",             1);/* ->pcibridge[0] */ RC_CHECK();
    481481#endif
     482   
     483   
     484    Bstr tmpStr;
     485    rc = pMachine->GetExtraData(Bstr("VBoxInternal/Devices/SupportExtHwProfile"), tmpStr.asOutParam());
     486
     487    BOOL fExtProfile;
     488
     489    if (SUCCEEDED(rc))
     490        fExtProfile = (tmpStr == Bstr("on"));
     491    else
     492        fExtProfile = false;
    482493
    483494    /*
     
    485496     */
    486497    BOOL fHpetEnabled;
    487     /** @todo: implement appropriate getter */
    488498#ifdef VBOX_WITH_HPET
    489     fHpetEnabled = true;
     499    fHpetEnabled = fExtProfile;
    490500#else
    491501    fHpetEnabled = false;
     
    503513     */
    504514    BOOL fSmcEnabled;
    505     /** @todo: implement appropriate getter */
    506515#ifdef VBOX_WITH_SMC
    507     fSmcEnabled = true;
     516    fSmcEnabled = fExtProfile;
    508517#else
    509518    fSmcEnabled = false;
     
    522531    /** @todo: implement appropriate getter */
    523532#ifdef VBOX_WITH_LPC
    524     fLpcEnabled = true;
     533    fLpcEnabled = fExtProfile;
    525534#else
    526535    fLpcEnabled = false;
     
    658667        rc = CFGMR3InsertInteger(pCfg,  "SmcEnabled", fSmcEnabled);                 RC_CHECK();
    659668#endif
     669        rc = CFGMR3InsertInteger(pCfg,  "ShowRtc", fExtProfile);                    RC_CHECK();     
     670        rc = CFGMR3InsertInteger(pCfg,  "ShowCpu", fExtProfile);                    RC_CHECK();
    660671        rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo",          7);                 RC_CHECK();
    661672        Assert(!afPciDeviceNo[7]);
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