VirtualBox

Ignore:
Timestamp:
Feb 24, 2009 3:13:31 PM (16 years ago)
Author:
vboxsync
Message:

ICH6 controller in UI and configs (don't think amount of work required to add
just new IDE controller type is adequate)

File:
1 edited

Legend:

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

    r16967 r17075  
    276276     */
    277277    IDEControllerType_T controllerType;
    278     BOOL fPIIX4, fICH6;
    279278    hrc = biosSettings->COMGETTER(IDEControllerType)(&controllerType);               H();
    280     switch (controllerType)
    281     {
    282         case IDEControllerType_PIIX3:
    283             fPIIX4 = FALSE;
    284             break;
    285         case IDEControllerType_PIIX4:
    286             fPIIX4 = TRUE;
    287             break;
    288         default:
    289             AssertMsgFailed(("Invalid IDE controller type '%d'", controllerType));
    290             return VMSetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,
    291                               N_("Invalid IDE controller type '%d'"), controllerType);
    292     }
    293 #ifdef VBOX_WITH_SMC
    294     /** @todo: gross hack, rewrite appropriately */
    295     fPIIX4 = FALSE;
    296     fICH6 = TRUE;
    297 #else
    298     fICH6 = FALSE;
    299 #endif
    300279
    301280    /*
     
    801780    rc = CFGMR3InsertInteger(pIdeInst, "PCIFunctionNo",        1);                  RC_CHECK();
    802781    rc = CFGMR3InsertNode(pIdeInst,    "Config", &pCfg);                            RC_CHECK();
    803     rc = CFGMR3InsertInteger(pCfg,  "PIIX4", fPIIX4);               /* boolean */   RC_CHECK();
    804     rc = CFGMR3InsertInteger(pCfg,  "ICH6",  fICH6);                /* boolean */   RC_CHECK();
     782    rc = CFGMR3InsertInteger(pCfg,  "Type", (uint32_t)controllerType);              RC_CHECK();
    805783
    806784    /* Attach the status driver */
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