Changeset 33918 in vbox
- Timestamp:
- Nov 9, 2010 5:11:14 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
-
ConsoleImpl2.cpp (modified) (1 diff)
-
include/BusAssignmentManager.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r33910 r33918 1341 1341 InsertConfigInteger(pCfg, "PortCount", cPorts); 1342 1342 1343 /* Needed configuration values for the bios . */1344 if ( pBiosCfg)1343 /* Needed configuration values for the bios, only first controller. */ 1344 if (!BusMgr->hasPciDevice("ahci", 1)) 1345 1345 { 1346 InsertConfigString(pBiosCfg, "SataHardDiskDevice", "ahci"); 1346 if (pBiosCfg) 1347 { 1348 InsertConfigString(pBiosCfg, "SataHardDiskDevice", "ahci"); 1349 } 1350 1351 for (uint32_t j = 0; j < 4; ++j) 1352 { 1353 static const char * const s_apszConfig[4] = 1354 { "PrimaryMaster", "PrimarySlave", "SecondaryMaster", "SecondarySlave" }; 1355 static const char * const s_apszBiosConfig[4] = 1356 { "SataPrimaryMasterLUN", "SataPrimarySlaveLUN", "SataSecondaryMasterLUN", "SataSecondarySlaveLUN" }; 1357 1358 LONG lPortNumber = -1; 1359 hrc = ctrls[i]->GetIDEEmulationPort(j, &lPortNumber); H(); 1360 InsertConfigInteger(pCfg, s_apszConfig[j], lPortNumber); 1361 if (pBiosCfg) 1362 InsertConfigInteger(pBiosCfg, s_apszBiosConfig[j], lPortNumber); 1363 } 1347 1364 } 1348 1349 for (uint32_t j = 0; j < 4; ++j) 1350 { 1351 static const char * const s_apszConfig[4] = 1352 { "PrimaryMaster", "PrimarySlave", "SecondaryMaster", "SecondarySlave" }; 1353 static const char * const s_apszBiosConfig[4] = 1354 { "SataPrimaryMasterLUN", "SataPrimarySlaveLUN", "SataSecondaryMasterLUN", "SataSecondarySlaveLUN" }; 1355 1356 LONG lPortNumber = -1; 1357 hrc = ctrls[i]->GetIDEEmulationPort(j, &lPortNumber); H(); 1358 InsertConfigInteger(pCfg, s_apszConfig[j], lPortNumber); 1359 if (pBiosCfg) 1360 InsertConfigInteger(pBiosCfg, s_apszBiosConfig[j], lPortNumber); 1361 } 1362 1365 1363 1366 /* Attach the status driver */ 1364 1367 InsertConfigNode(pCtlInst, "LUN#999", &pLunL0); -
trunk/src/VBox/Main/include/BusAssignmentManager.h
r33690 r33918 111 111 } 112 112 virtual bool findPciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address); 113 virtual bool hasPciDevice(const char* pszDevName, int iInstance) 114 { 115 PciBusAddress Address; 116 return findPciAddress(pszDevName, iInstance, Address); 117 } 113 118 }; 114 119
Note:
See TracChangeset
for help on using the changeset viewer.

