VirtualBox

Changeset 33910 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Nov 9, 2010 3:45:44 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67566
Message:

Main, PXE: pass bus number too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r32720 r33910  
    10991099    {
    11001100        PCFGMNODE   pCfgNetBootDevice;
     1101        uint8_t     u8PciBus;
    11011102        uint8_t     u8PciDev;
    11021103        uint8_t     u8PciFn;
     
    11091110            szIndex[0] = '0' + i;
    11101111            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"));
    11111123            rc = CFGMR3QueryU8(pCfgNetBootDevice, "PCIDeviceNo", &u8PciDev);
    11121124            if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT)
     
    11291141                return PDMDEV_SET_ERROR(pDevIns, rc,
    11301142                                        N_("Configuration error: Querying \"Netboot/x/PCIFunctionNo\" as integer failed"));
     1143            /** @todo: encode bus number too */
    11311144            u16BusDevFn = ((u8PciDev & 0x1F) << 3) | (u8PciFn & 0x7);
    11321145            pThis->au16NetBootDev[i] = u16BusDevFn;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette