VirtualBox

Ignore:
Timestamp:
Aug 2, 2012 4:44:39 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79727
Message:

Main: big API naming cleanup, use all caps acronyms everywhere, including SDK docs
Frontends/VBoxManage: implement guestcontrol execute for new API, disabled by default

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp

    r42497 r42551  
    55
    66/*
    7  * Copyright (C) 2010-2011 Oracle Corporation
     7 * Copyright (C) 2010-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1616 */
    1717#include "Logging.h"
    18 #include "PciRawDevImpl.h"
    19 #include "PciDeviceAttachmentImpl.h"
     18#include "PCIRawDevImpl.h"
     19#include "PCIDeviceAttachmentImpl.h"
    2020#include "ConsoleImpl.h"
    2121#include "MachineImpl.h"
     
    3030{
    3131    /** Pointer to the real PCI raw object. */
    32     PciRawDev                   *pPciRawDev;
     32    PCIRawDev                   *pPCIRawDev;
    3333    /** Pointer to the driver instance structure. */
    3434    PPDMDRVINS                  pDrvIns;
     
    4141// constructor / destructor
    4242//
    43 PciRawDev::PciRawDev(Console *console)
     43PCIRawDev::PCIRawDev(Console *console)
    4444  : mpDrv(NULL),
    4545    mParent(console)
     
    4747}
    4848
    49 PciRawDev::~PciRawDev()
     49PCIRawDev::~PCIRawDev()
    5050{
    5151}
     
    5454 * @interface_method_impl{PDMIBASE,pfnQueryInterface}
    5555 */
    56 DECLCALLBACK(void *) PciRawDev::drvQueryInterface(PPDMIBASE pInterface, const char *pszIID)
     56DECLCALLBACK(void *) PCIRawDev::drvQueryInterface(PPDMIBASE pInterface, const char *pszIID)
    5757{
    5858    PPDMDRVINS         pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
     
    6969 * @interface_method_impl{PDMIPCIRAWUP,pfnPciDeviceConstructComplete}
    7070 */
    71 DECLCALLBACK(int) PciRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,
    72                                                         uint32_t uHostPciAddress, uint32_t uGuestPciAddress,
     71DECLCALLBACK(int) PCIRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,
     72                                                        uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress,
    7373                                                        int rc)
    7474{
    7575    PDRVMAINPCIRAWDEV pThis = RT_FROM_CPP_MEMBER(pInterface, DRVMAINPCIRAWDEV, IConnector);
    76     Console *pConsole = pThis->pPciRawDev->getParent();
     76    Console *pConsole = pThis->pPCIRawDev->getParent();
    7777    const ComPtr<IMachine>& machine = pConsole->machine();
    7878    ComPtr<IVirtualBox> vbox;
     
    8989    Assert(SUCCEEDED(hrc));
    9090
    91     ComObjPtr<PciDeviceAttachment> pda;
     91    ComObjPtr<PCIDeviceAttachment> pda;
    9292    BstrFmt bstrName(pcszName);
    9393    pda.createObject();
    94     pda->init(machine, bstrName, uHostPciAddress, uGuestPciAddress, TRUE);
     94    pda->init(machine, bstrName, uHostPCIAddress, uGuestPCIAddress, TRUE);
    9595
    9696    Bstr msg("");
     
    9898        msg = BstrFmt("runtime error %Rrc", rc);
    9999
    100     fireHostPciDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS(rc) /* success */, pda, msg.raw());
     100    fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS(rc) /* success */, pda, msg.raw());
    101101
    102102    return VINF_SUCCESS;
     
    110110 * @param   pDrvIns     The driver instance data.
    111111 */
    112 DECLCALLBACK(void) PciRawDev::drvDestruct(PPDMDRVINS pDrvIns)
     112DECLCALLBACK(void) PCIRawDev::drvDestruct(PPDMDRVINS pDrvIns)
    113113{
    114114    PDRVMAINPCIRAWDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINPCIRAWDEV);
    115115    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    116116
    117     if (pData->pPciRawDev)
    118         pData->pPciRawDev->mpDrv = NULL;
     117    if (pData->pPCIRawDev)
     118        pData->pPCIRawDev->mpDrv = NULL;
    119119}
    120120
     
    126126 * @param   pDrvIns     The driver instance data.
    127127 */
    128 DECLCALLBACK(void) PciRawDev::drvReset(PPDMDRVINS pDrvIns)
     128DECLCALLBACK(void) PCIRawDev::drvReset(PPDMDRVINS pDrvIns)
    129129{
    130130}
     
    136136 * @copydoc FNPDMDRVCONSTRUCT
    137137 */
    138 DECLCALLBACK(int) PciRawDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
     138DECLCALLBACK(int) PCIRawDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
    139139{
    140140    PDRVMAINPCIRAWDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINPCIRAWDEV);
     
    154154     * IBase.
    155155     */
    156     pDrvIns->IBase.pfnQueryInterface = PciRawDev::drvQueryInterface;
     156    pDrvIns->IBase.pfnQueryInterface = PCIRawDev::drvQueryInterface;
    157157
    158158    /*
    159159     * IConnector.
    160160     */
    161     pData->IConnector.pfnDeviceConstructComplete = PciRawDev::drvDeviceConstructComplete;
     161    pData->IConnector.pfnDeviceConstructComplete = PCIRawDev::drvDeviceConstructComplete;
    162162
    163163    /*
     
    172172    }
    173173
    174     pData->pPciRawDev = (PciRawDev*)pv;
    175     pData->pPciRawDev->mpDrv = pData;
     174    pData->pPCIRawDev = (PCIRawDev *)pv;
     175    pData->pPCIRawDev->mpDrv = pData;
    176176
    177177    return VINF_SUCCESS;
     
    181181 * Main raw PCI driver registration record.
    182182 */
    183 const PDMDRVREG PciRawDev::DrvReg =
     183const PDMDRVREG PCIRawDev::DrvReg =
    184184{
    185185    /* u32Version */
     
    202202    sizeof(DRVMAINPCIRAWDEV),
    203203    /* pfnConstruct */
    204     PciRawDev::drvConstruct,
     204    PCIRawDev::drvConstruct,
    205205    /* pfnDestruct */
    206     PciRawDev::drvDestruct,
     206    PCIRawDev::drvDestruct,
    207207    /* pfnRelocate */
    208208    NULL,
     
    212212    NULL,
    213213    /* pfnReset */
    214     PciRawDev::drvReset,
     214    PCIRawDev::drvReset,
    215215    /* pfnSuspend */
    216216    NULL,
Note: See TracChangeset for help on using the changeset viewer.

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