VirtualBox

Changeset 12566 in vbox for trunk/include/VBox/pdmdev.h


Ignore:
Timestamp:
Sep 18, 2008 12:42:54 PM (16 years ago)
Author:
vboxsync
Message:

Backed out 36722, 36764 & 36770; no need for per-cpu mmio registations anymore.

File:
1 edited

Legend:

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

    r12562 r12566  
    17261726     * @param   pDevIns             The device instance to register the MMIO with.
    17271727     * @param   GCPhysStart         First physical address in the range.
    1728      * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
    1729      *                              registration (applies to all CPUs).
    17301728     * @param   cbRange             The size of the range (in bytes).
    17311729     * @param   pvUser              User argument.
     
    17351733     * @param   pszDesc             Pointer to description string. This must not be freed.
    17361734     */
    1737     DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
     1735    DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    17381736                                               PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill,
    17391737                                               const char *pszDesc));
     
    17481746     * @returns VBox status.
    17491747     * @param   pDevIns             The device instance to register the MMIO with.
    1750      * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
    1751      *                              registration (applies to all CPUs).
    17521748     * @param   GCPhysStart         First physical address in the range.
    17531749     * @param   cbRange             The size of the range (in bytes).
     
    17591755     * @todo    Remove pszDesc in the next major revision of PDMDEVHLP.
    17601756     */
    1761     DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,
     1757    DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,
    17621758                                                 const char *pszWrite, const char *pszRead, const char *pszFill,
    17631759                                                 const char *pszDesc));
     
    17711767     * @returns VBox status.
    17721768     * @param   pDevIns             The device instance to register the MMIO with.
    1773      * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
    1774      *                              registration (applies to all CPUs).
    17751769     * @param   GCPhysStart         First physical address in the range.
    17761770     * @param   cbRange             The size of the range (in bytes).
     
    17821776     * @todo    Remove pszDesc in the next major revision of PDMDEVHLP.
    17831777     */
    1784     DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,
     1778    DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,
    17851779                                                 const char *pszWrite, const char *pszRead, const char *pszFill,
    17861780                                                 const char *pszDesc));
     
    17931787     * @returns VBox status.
    17941788     * @param   pDevIns             The device instance owning the MMIO region(s).
    1795      * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global registration (applies to all CPUs)
    17961789     * @param   GCPhysStart         First physical address in the range.
    17971790     * @param   cbRange             The size of the range (in bytes).
    17981791     */
    1799     DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange));
     1792    DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange));
    18001793
    18011794    /**
     
    31173110                                      const char *pszDesc)
    31183111{
    3119     return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
     3112    return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
    31203113}
    31213114
     
    31263119                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31273120{
    3128     return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3121    return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31293122}
    31303123
     
    31353128                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31363129{
    3137     return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    3138 }
    3139 
    3140 /**
    3141  * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPU
    3142  */
    3143 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPU(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    3144                                       PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill,
    3145                                       const char *pszDesc)
    3146 {
    3147     return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
    3148 }
    3149 
    3150 /**
    3151  * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPUGC
    3152  */
    3153 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPUGC(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,
    3154                                         const char *pszWrite, const char *pszRead, const char *pszFill)
    3155 {
    3156     return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    3157 }
    3158 
    3159 /**
    3160  * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPUR0
    3161  */
    3162 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPUR0(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,
    3163                                         const char *pszWrite, const char *pszRead, const char *pszFill)
    3164 {
    3165     return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3130    return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31663131}
    31673132
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