VirtualBox

Ignore:
Timestamp:
Aug 31, 2010 9:58:36 AM (14 years ago)
Author:
vboxsync
Message:

Main, devices: support for chipset selection in the public API

File:
1 edited

Legend:

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

    r31818 r32120  
    820820         * PCI buses.
    821821         */
    822         InsertConfigNode(pDevices, "pci", &pDev); /* piix3 */
     822        ChipsetType_T chipsetType;
     823        hrc = pMachine->COMGETTER(ChipsetType)(&chipsetType);                                H();
     824
     825        switch (chipsetType)
     826        {
     827            default:
     828                Assert(false);
     829            case ChipsetType_PIIX3:
     830                InsertConfigNode(pDevices, "piix3pci", &pDev);
     831                break;
     832            case ChipsetType_ICH9:
     833                InsertConfigNode(pDevices, "ich9pci", &pDev);
     834                break;
     835        }
    823836        InsertConfigNode(pDev,     "0", &pInst);
    824837        InsertConfigInteger(pInst, "Trusted",              1); /* boolean */
     
    827840
    828841#if 0 /* enable this to test PCI bridging */
    829         InsertConfigNode(pDevices, "pcibridge", &pDev);
     842        InsertConfigNode(pDevices, "piix3pcibridge", &pDev);
    830843        InsertConfigNode(pDev,     "0", &pInst);
    831844        InsertConfigInteger(pInst, "Trusted",              1); /* boolean */
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