VirtualBox

Changeset 2597 in vbox for trunk/include


Ignore:
Timestamp:
May 11, 2007 6:19:23 PM (18 years ago)
Author:
vboxsync
Message:

New device helper PCISetConfigCallbacks. (patch from R. Zeljko)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdm.h

    r2576 r2597  
    32803280
    32813281    /**
     3282     * Register PCI configuration space read/write callbacks.
     3283     *
     3284     * @param   pDevIns         Device instance of the PCI Bus.
     3285     * @param   pPciDev         The PCI device structure.
     3286     * @param   pfnRead         Pointer to the user defined PCI config read function.
     3287     * @param   ppfnReadOld     Pointer to function pointer which will receive the old (default)
     3288     *                          PCI config read function. This way, user can decide when (and if)
     3289     *                          to call default PCI config read function. Can be NULL.
     3290     * @param   pfnWrite        Pointer to the user defined PCI config write function.
     3291     * @param   pfnWriteOld     Pointer to function pointer which will receive the old (default)
     3292     *                          PCI config write function. This way, user can decide when (and if)
     3293     *                          to call default PCI config write function. Can be NULL.
     3294     * @thread  EMT
     3295     */
     3296    DECLR3CALLBACKMEMBER(void, pfnSetConfigCallbacksHC,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld,
     3297                                                        PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld));
     3298
     3299    /**
    32823300     * Set the IRQ for a PCI device.
    32833301     *
     
    33303348
    33313349/** Current PDMPCIBUSREG version number. */
    3332 #define PDM_PCIBUSREG_VERSION   0xd0010000
     3350#define PDM_PCIBUSREG_VERSION   0xd0020000
    33333351
    33343352/**
     
    47134731
    47144732    /**
     4733     * Register PCI configuration space read/write callbacks.
     4734     *
     4735     * @param   pDevIns         Device instance.
     4736     * @param   pPciDev         The PCI device structure.
     4737     *                          If NULL the default PCI device for this device instance is used.
     4738     * @param   pfnRead         Pointer to the user defined PCI config read function.
     4739     * @param   ppfnReadOld     Pointer to function pointer which will receive the old (default)
     4740     *                          PCI config read function. This way, user can decide when (and if)
     4741     *                          to call default PCI config read function. Can be NULL.
     4742     * @param   pfnWrite        Pointer to the user defined PCI config write function.
     4743     * @param   pfnWriteOld     Pointer to function pointer which will receive the old (default)
     4744     *                          PCI config write function. This way, user can decide when (and if)
     4745     *                          to call default PCI config write function. Can be NULL.
     4746     * @thread  EMT
     4747     */
     4748    DECLR3CALLBACKMEMBER(void, pfnPCISetConfigCallbacks,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld,
     4749                                                         PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld));
     4750
     4751    /**
    47154752     * Set the IRQ for a PCI device.
    47164753     *
     
    53105347
    53115348/** Current PDMDEVHLP version number. */
    5312 #define PDM_DEVHLP_VERSION  0xf2020000
     5349#define PDM_DEVHLP_VERSION  0xf2030000
    53135350
    53145351
     
    57785815
    57795816/**
     5817 * @copydoc PDMDEVHLP::pfnPCISetConfigCallbacks
     5818 */
     5819DECLINLINE(void) PDMDevHlpPCISetConfigCallbacks(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld,
     5820                                                PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld)
     5821{
     5822    pDevIns->pDevHlp->pfnPCISetConfigCallbacks(pDevIns, pPciDev, pfnRead, ppfnReadOld, pfnWrite, ppfnWriteOld);
     5823}
     5824
     5825/**
    57805826 * @copydoc PDMDEVHLP::pfnDriverAttach
    57815827 */
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