Changeset 33910 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 9, 2010 3:45:44 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67566
- File:
-
- 1 edited
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;
Note:
See TracChangeset
for help on using the changeset viewer.