Changeset 27692 in vbox for trunk/src/VBox
- Timestamp:
- Mar 25, 2010 10:32:25 AM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r27470 r27692 1083 1083 { 1084 1084 PCFGMNODE pCfgNetBootDevice; 1085 uint8_t u8PciDev; 1086 uint8_t u8PciFn; 1085 1087 uint16_t u16BusDevFn; 1086 1088 char szIndex[] = "?"; … … 1091 1093 szIndex[0] = '0' + i; 1092 1094 pCfgNetBootDevice = CFGMR3GetChild(pCfgNetBoot, szIndex); 1093 rc = CFGMR3QueryU 16(pCfgNetBootDevice, "BusDevFn", &u16BusDevFn);1095 rc = CFGMR3QueryU8(pCfgNetBootDevice, "PCIDeviceNo", &u8PciDev); 1094 1096 if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) 1095 1097 { … … 1100 1102 else if (RT_FAILURE(rc)) 1101 1103 return PDMDEV_SET_ERROR(pDevIns, rc, 1102 N_("Configuration error: Querying \"Netboot/x/BusDevFn\" as integer failed")); 1104 N_("Configuration error: Querying \"Netboot/x/PCIDeviceNo\" as integer failed")); 1105 rc = CFGMR3QueryU8(pCfgNetBootDevice, "PCIFunctionNo", &u8PciFn); 1106 if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) 1107 { 1108 /* Do nothing and stop iterating. */ 1109 rc = VINF_SUCCESS; 1110 break; 1111 } 1112 else if (RT_FAILURE(rc)) 1113 return PDMDEV_SET_ERROR(pDevIns, rc, 1114 N_("Configuration error: Querying \"Netboot/x/PCIFunctionNo\" as integer failed")); 1115 u16BusDevFn = ((u8PciDev & 0x1F) << 3) | (u8PciFn & 0x7); 1103 1116 pThis->au16NetBootDev[i] = u16BusDevFn; 1104 1117 } -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r27537 r27692 1541 1541 PCFGMNODE pNetBtDevCfg; 1542 1542 char achBootIdx[] = "0"; 1543 uint16_t u16BusDevFn;1544 1543 1545 1544 achBootIdx[0] = '0' + uBootIdx; /* Boot device order. */ 1546 1545 rc = CFGMR3InsertNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); RC_CHECK(); 1547 1546 rc = CFGMR3InsertInteger(pNetBtDevCfg, "NIC", ulInstance); RC_CHECK(); 1548 u16BusDevFn = iPciDeviceNo << 3;1549 rc = CFGMR3InsertInteger(pNetBtDevCfg, " BusDevFn", u16BusDevFn);RC_CHECK();1547 rc = CFGMR3InsertInteger(pNetBtDevCfg, "PCIDeviceNo", iPciDeviceNo);RC_CHECK(); 1548 rc = CFGMR3InsertInteger(pNetBtDevCfg, "PCIFunctionNo", 0); RC_CHECK(); 1550 1549 } 1551 1550 }
Note:
See TracChangeset
for help on using the changeset viewer.