VirtualBox

Ignore:
Timestamp:
Feb 2, 2010 9:11:09 PM (15 years ago)
Author:
vboxsync
Message:

PDM: s/pCfgHandle/pCfg/g - part 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r26172 r26173  
    710710 * @returns VBox status.
    711711 * @param   pThis       The device instance data.
    712  * @param   pCfgHandle  Configuration node handle for the device.
    713  */
    714 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfgHandle)
     712 * @param   pCfg        Configuration node handle for the device.
     713 */
     714static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg)
    715715{
    716716    /*
     
    791791 * @returns VBox status code.
    792792 * @param   pThis       The device instance data.
    793  * @param   pCfgHandle  Configuration node handle for the device.
    794  */
    795 static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfgHandle)
     793 * @param   pCfg        Configuration node handle for the device.
     794 */
     795static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfg)
    796796{
    797797    uint8_t f64BitEntry = 0;
    798798    int rc;
    799799
    800     rc = CFGMR3QueryU8Def(pCfgHandle, "64BitEntry", &f64BitEntry, 0);
     800    rc = CFGMR3QueryU8Def(pCfg, "64BitEntry", &f64BitEntry, 0);
    801801    if (RT_FAILURE (rc))
    802802        return PDMDEV_SET_ERROR(pThis->pDevIns, rc,
     
    864864 * @interface_method_impl{PDMDEVREG,pfnConstruct}
    865865 */
    866 static DECLCALLBACK(int)  efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
     866static DECLCALLBACK(int)  efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    867867{
    868868    PDEVEFI     pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
     
    876876     * Validate and read the configuration.
    877877     */
    878     if (!CFGMR3AreValuesValid(pCfgHandle,
     878    if (!CFGMR3AreValuesValid(pCfg,
    879879                              "EfiRom\0"
    880880                              "RamSize\0"
     
    911911
    912912    /* CPU count (optional). */
    913     rc = CFGMR3QueryU32Def(pCfgHandle, "NumCPUs", &pThis->cCpus, 1);
     913    rc = CFGMR3QueryU32Def(pCfg, "NumCPUs", &pThis->cCpus, 1);
    914914    AssertLogRelRCReturn(rc, rc);
    915915
    916     rc = CFGMR3QueryU8Def(pCfgHandle, "IOAPIC", &pThis->u8IOAPIC, 1);
     916    rc = CFGMR3QueryU8Def(pCfg, "IOAPIC", &pThis->u8IOAPIC, 1);
    917917    if (RT_FAILURE (rc))
    918918        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    923923     */
    924924    RTUUID  uuid;
    925     rc = CFGMR3QueryBytes(pCfgHandle, "UUID", &uuid, sizeof(uuid));
     925    rc = CFGMR3QueryBytes(pCfg, "UUID", &uuid, sizeof(uuid));
    926926    if (RT_FAILURE(rc))
    927927        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    936936
    937937    /* RAM sizes */
    938     rc = CFGMR3QueryU64(pCfgHandle, "RamSize", &pThis->cbRam);
     938    rc = CFGMR3QueryU64(pCfg, "RamSize", &pThis->cbRam);
    939939    AssertLogRelRCReturn(rc, rc);
    940     rc = CFGMR3QueryU64(pCfgHandle, "RamHoleSize", &pThis->cbRamHole);
     940    rc = CFGMR3QueryU64(pCfg, "RamHoleSize", &pThis->cbRamHole);
    941941    AssertLogRelRCReturn(rc, rc);
    942942    pThis->cbBelow4GB = RT_MIN(pThis->cbRam, _4G - pThis->cbRamHole);
     
    947947     * Get the system EFI ROM file name.
    948948     */
    949     rc = CFGMR3QueryStringAlloc(pCfgHandle, "EfiRom", &pThis->pszEfiRomFile);
     949    rc = CFGMR3QueryStringAlloc(pCfg, "EfiRom", &pThis->pszEfiRomFile);
    950950    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    951951    {
     
    973973     * Get boot args.
    974974     */
    975     rc = CFGMR3QueryString(pCfgHandle, "BootArgs",
     975    rc = CFGMR3QueryString(pCfg, "BootArgs",
    976976                           pThis->pszBootArgs, sizeof pThis->pszBootArgs);
    977977    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     
    996996     * Load firmware volume and thunk ROM.
    997997     */
    998     rc = efiLoadRom(pThis, pCfgHandle);
     998    rc = efiLoadRom(pThis, pCfg);
    999999    if (RT_FAILURE(rc))
    10001000        return rc;
    10011001
    1002     rc = efiLoadThunk(pThis, pCfgHandle);
     1002    rc = efiLoadThunk(pThis, pCfg);
    10031003    if (RT_FAILURE(rc))
    10041004        return rc;
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