Changeset 33910 in vbox
- Timestamp:
- Nov 9, 2010 3:45:44 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
-
Devices/PC/DevPcBios.cpp (modified) (3 diffs)
-
Main/ConsoleImpl2.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r32720 r33910 1099 1099 { 1100 1100 PCFGMNODE pCfgNetBootDevice; 1101 uint8_t u8PciBus; 1101 1102 uint8_t u8PciDev; 1102 1103 uint8_t u8PciFn; … … 1109 1110 szIndex[0] = '0' + i; 1110 1111 pCfgNetBootDevice = CFGMR3GetChild(pCfgNetBoot, szIndex); 1112 1113 rc = CFGMR3QueryU8(pCfgNetBootDevice, "PCIBusNo", &u8PciBus); 1114 if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) 1115 { 1116 /* Do nothing and stop iterating. */ 1117 rc = VINF_SUCCESS; 1118 break; 1119 } 1120 else if (RT_FAILURE(rc)) 1121 return PDMDEV_SET_ERROR(pDevIns, rc, 1122 N_("Configuration error: Querying \"Netboot/x/PCIBusNo\" as integer failed")); 1111 1123 rc = CFGMR3QueryU8(pCfgNetBootDevice, "PCIDeviceNo", &u8PciDev); 1112 1124 if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) … … 1129 1141 return PDMDEV_SET_ERROR(pDevIns, rc, 1130 1142 N_("Configuration error: Querying \"Netboot/x/PCIFunctionNo\" as integer failed")); 1143 /** @todo: encode bus number too */ 1131 1144 u16BusDevFn = ((u8PciDev & 0x1F) << 3) | (u8PciFn & 0x7); 1132 1145 pThis->au16NetBootDev[i] = u16BusDevFn; -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r33907 r33910 209 209 struct BootNic 210 210 { 211 ULONG mInstance;212 unsigned mPciDev;213 unsigned mPciFn; 214 ULONG mBootPrio;211 ULONG mInstance; 212 PciBusAddress mPciAddress; 213 214 ULONG mBootPrio; 215 215 bool operator < (const BootNic &rhs) const 216 216 { … … 1583 1583 BootNic nic; 1584 1584 1585 nic.mInstance = ulInstance;1586 nic.mPciDev = iPciDeviceNo;1587 nic.mPci Fn = 0;1585 nic.mInstance = ulInstance; 1586 /* Could be updated by reference, if auto assigned */ 1587 nic.mPciAddress = PciAddr; 1588 1588 1589 1589 hrc = networkAdapter->COMGETTER(BootPriority)(&nic.mBootPrio); H(); … … 1694 1694 InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); 1695 1695 InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance); 1696 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mPciDev); 1697 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciFn); 1696 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo", it->mPciAddress.iBus); 1697 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mPciAddress.iDevice); 1698 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPciAddress.iFn); 1698 1699 } 1699 1700 } … … 2277 2278 { 2278 2279 BootNic aNic = llBootNics.front(); 2279 uint32_t u32NicPciAddr = (aNic.mPci Dev << 16) | aNic.mPciFn;2280 uint32_t u32NicPciAddr = (aNic.mPciAddress.iDevice << 16) | aNic.mPciAddress.iFn; 2280 2281 InsertConfigInteger(pCfg, "NicPciAddress", u32NicPciAddr); 2281 2282 }
Note:
See TracChangeset
for help on using the changeset viewer.

