Changeset 5572 in vbox
- Timestamp:
- Oct 31, 2007 9:33:52 AM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Builtins.cpp
r5380 r5572 103 103 return rc; 104 104 #endif 105 #ifdef VBOX_WITH_EHCI 106 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceEHCI); 107 if (VBOX_FAILURE(rc)) 108 return rc; 109 #endif 105 110 #ifdef VBOX_ACPI 106 111 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceACPI); -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r5361 r5572 67 67 { 68 68 LogFlowFuncEnter(); 69 /** Note: hardcoded assumption about number of slots; see rom bios */ 70 bool faPciDeviceNo[15] = {false}; 69 71 70 72 #if defined(RT_OS_WINDOWS) … … 345 347 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK(); 346 348 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 7); RC_CHECK(); 349 Assert(!faPciDeviceNo[7]); 350 faPciDeviceNo[7] = true; 347 351 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 348 352 … … 521 525 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 522 526 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 2); RC_CHECK(); 527 Assert(!faPciDeviceNo[2]); 528 faPciDeviceNo[2] = true; 523 529 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 524 530 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); … … 570 576 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 571 577 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 1); RC_CHECK(); 578 Assert(!faPciDeviceNo[1]); 579 faPciDeviceNo[1] = true; 572 580 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 1); RC_CHECK(); 573 581 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); … … 840 848 /* the first network card gets the PCI ID 3, the followings starting from 8 */ 841 849 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", !ulInstance ? 3 : ulInstance - 1 + 8); RC_CHECK(); 850 Assert(!faPciDeviceNo[!ulInstance ? 3 : ulInstance - 1 + 8]); 851 faPciDeviceNo[!ulInstance ? 3 : ulInstance - 1 + 8] = true; 842 852 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 843 853 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); … … 1198 1208 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 1199 1209 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 4); RC_CHECK(); 1210 Assert(!faPciDeviceNo[4]); 1211 faPciDeviceNo[4] = true; 1200 1212 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 1201 1213 … … 1247 1259 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 1248 1260 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 5); RC_CHECK(); 1261 Assert(!faPciDeviceNo[5]); 1262 faPciDeviceNo[5] = true; 1249 1263 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 1250 1264 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); … … 1317 1331 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 1318 1332 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 6); RC_CHECK(); 1333 Assert(!faPciDeviceNo[6]); 1334 faPciDeviceNo[6] = true; 1319 1335 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 1320 1336 … … 1332 1348 rc = CFGMR3InsertInteger(pCfg, "First", 0); RC_CHECK(); 1333 1349 rc = CFGMR3InsertInteger(pCfg, "Last", 0); RC_CHECK(); 1350 1351 #ifdef VBOX_WITH_EHCI 1352 rc = CFGMR3InsertNode(pDevices, "usb-ehci", &pDev); RC_CHECK(); 1353 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); 1354 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 1355 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 1356 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 11); RC_CHECK(); 1357 Assert(!faPciDeviceNo[11]); 1358 faPciDeviceNo[11] = true; 1359 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 1360 1361 rc = CFGMR3InsertNode(pInst, "LUN#0", &pLunL0); RC_CHECK(); 1362 rc = CFGMR3InsertString(pLunL0, "Driver", "VUSBRootHub"); RC_CHECK(); 1363 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 1364 1365 /* 1366 * Attach the status driver. 1367 */ 1368 rc = CFGMR3InsertNode(pInst, "LUN#999", &pLunL0); RC_CHECK(); 1369 rc = CFGMR3InsertString(pLunL0, "Driver", "MainStatus"); RC_CHECK(); 1370 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 1371 rc = CFGMR3InsertInteger(pCfg, "papLeds", (uintptr_t)&pConsole->mapUSBLed);RC_CHECK(); 1372 rc = CFGMR3InsertInteger(pCfg, "First", 0); RC_CHECK(); 1373 rc = CFGMR3InsertInteger(pCfg, "Last", 0); RC_CHECK(); 1374 #endif 1334 1375 } 1335 1376 }
Note:
See TracChangeset
for help on using the changeset viewer.