VirtualBox

Ignore:
Timestamp:
Sep 14, 2010 10:26:07 AM (14 years ago)
Author:
vboxsync
Message:

Devices: refactoring, further PCI work

File:
1 edited

Legend:

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

    r32147 r32471  
    822822        ChipsetType_T chipsetType;
    823823        hrc = pMachine->COMGETTER(ChipsetType)(&chipsetType);                                H();
     824        uint32_t u32IocPciAddress;
    824825
    825826        switch (chipsetType)
     
    829830            case ChipsetType_PIIX3:
    830831                InsertConfigNode(pDevices, "pci", &pDev);
     832                u32IocPciAddress = (0x1 << 16) | 0; // ISA controller
    831833                break;
    832834            case ChipsetType_ICH9:
    833835                InsertConfigNode(pDevices, "ich9pci", &pDev);
     836                u32IocPciAddress = (0x1f << 16) | 0; // LPC controller
    834837                break;
    835838        }
     
    870873         */
    871874        BOOL fHpetEnabled;
    872 #ifdef VBOX_WITH_HPET
    873875        /* Other guests may wish to use HPET too, but MacOS X not functional without it */
    874876        hrc = pMachine->COMGETTER(HpetEnabled)(&fHpetEnabled);                              H();
    875877        /* so always enable HPET in extended profile */
    876878        fHpetEnabled |= fOsXGuest;
    877 #else
    878         fHpetEnabled = false;
    879 #endif
    880879        if (fHpetEnabled)
    881880        {
     
    889888         */
    890889        BOOL fSmcEnabled;
    891 #ifdef VBOX_WITH_SMC
    892890        fSmcEnabled = fOsXGuest;
    893 #else
    894         fSmcEnabled = false;
    895 #endif
    896891        if (fSmcEnabled)
    897892        {
     
    915910        BOOL fLpcEnabled;
    916911        /** @todo: implement appropriate getter */
    917 #ifdef VBOX_WITH_LPC
    918         fLpcEnabled = fOsXGuest;
    919 #else
    920         fLpcEnabled = false;
    921 #endif
     912        fLpcEnabled = fOsXGuest || (chipsetType == ChipsetType_ICH9);
    922913        if (fLpcEnabled)
    923914        {
     
    22872278                InsertConfigInteger(pCfg, "AudioPciAddress",    u32AudioPciAddr);
    22882279            }
     2280            InsertConfigInteger(pCfg,  "IocPciAddress", u32IocPciAddress);
    22892281            InsertConfigInteger(pCfg,  "ShowCpu", fShowCpu);
    22902282            InsertConfigInteger(pCfg,  "CpuHotPlug", fCpuHotPlug);
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