Changeset 17075 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Feb 24, 2009 3:13:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r16967 r17075 276 276 */ 277 277 IDEControllerType_T controllerType; 278 BOOL fPIIX4, fICH6;279 278 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_SMC294 /** @todo: gross hack, rewrite appropriately */295 fPIIX4 = FALSE;296 fICH6 = TRUE;297 #else298 fICH6 = FALSE;299 #endif300 279 301 280 /* … … 801 780 rc = CFGMR3InsertInteger(pIdeInst, "PCIFunctionNo", 1); RC_CHECK(); 802 781 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(); 805 783 806 784 /* Attach the status driver */
Note:
See TracChangeset
for help on using the changeset viewer.