- Timestamp:
- Apr 3, 2009 6:38:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r18701 r18710 1244 1244 if (iPciDeviceNo == 3 && adapterType == NetworkAdapterType_I82545EM) 1245 1245 { 1246 iPciDeviceNo = 11;1246 iPciDeviceNo = 0x11; 1247 1247 fSwapSlots3and11 = true; 1248 1248 } 1249 else if (iPciDeviceNo == 0x11 && fSwapSlots3and11) 1250 iPciDeviceNo = 3; 1249 1251 #endif 1250 1252 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", iPciDeviceNo); RC_CHECK(); … … 2321 2323 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 2322 2324 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* bool */ RC_CHECK(); 2323 #ifdef VMWARE_NET_IN_SLOT_112324 /*2325 * Dirty hack for PCI slot compatibility with VMWare,2326 * it assigns slot 11 to the first network controller.2327 */2328 unsigned iPciDeviceNo = 11;2329 if (fSwapSlots3and11)2330 iPciDeviceNo = 3;2331 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", iPciDeviceNo); RC_CHECK();2332 Assert(!afPciDeviceNo[iPciDeviceNo]);2333 afPciDeviceNo[iPciDeviceNo] = true;2334 #else2335 2325 rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", 11); RC_CHECK(); 2336 2326 Assert(!afPciDeviceNo[11]); 2337 2327 afPciDeviceNo[11] = true; 2338 #endif2339 2328 rc = CFGMR3InsertInteger(pInst, "PCIFunctionNo", 0); RC_CHECK(); 2340 2329
Note:
See TracChangeset
for help on using the changeset viewer.