VirtualBox

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


Ignore:
Timestamp:
Sep 18, 2008 11:54:34 AM (16 years ago)
Author:
vboxsync
Message:

IOM: Made some minor adjustments to the MMIO CPU registration context stuff and added some TODOs for what needs to be done.

File:
1 edited

Legend:

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

    r12545 r12561  
    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 MMIO_REGCTX_GLOBAL if it's a global registration (applies to all CPUs)
     1728     * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
     1729     *                              registration (applies to all CPUs).
    17291730     * @param   cbRange             The size of the range (in bytes).
    17301731     * @param   pvUser              User argument.
     
    17341735     * @param   pszDesc             Pointer to description string. This must not be freed.
    17351736     */
    1736     DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
     1737    DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    17371738                                               PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill,
    17381739                                               const char *pszDesc));
     
    17471748     * @returns VBox status.
    17481749     * @param   pDevIns             The device instance to register the MMIO with.
    1749      * @param   enmCtx              CPU id or MMIO_REGCTX_GLOBAL if it's a global registration (applies to all CPUs)
     1750     * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
     1751     *                              registration (applies to all CPUs).
    17501752     * @param   GCPhysStart         First physical address in the range.
    17511753     * @param   cbRange             The size of the range (in bytes).
     
    17571759     * @todo    Remove pszDesc in the next major revision of PDMDEVHLP.
    17581760     */
    1759     DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,
     1761    DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,
    17601762                                                 const char *pszWrite, const char *pszRead, const char *pszFill,
    17611763                                                 const char *pszDesc));
     
    17691771     * @returns VBox status.
    17701772     * @param   pDevIns             The device instance to register the MMIO with.
    1771      * @param   enmCtx              CPU id or MMIO_REGCTX_GLOBAL if it's a global registration (applies to all CPUs)
     1773     * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global
     1774     *                              registration (applies to all CPUs).
    17721775     * @param   GCPhysStart         First physical address in the range.
    17731776     * @param   cbRange             The size of the range (in bytes).
     
    17791782     * @todo    Remove pszDesc in the next major revision of PDMDEVHLP.
    17801783     */
    1781     DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,
     1784    DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,
    17821785                                                 const char *pszWrite, const char *pszRead, const char *pszFill,
    17831786                                                 const char *pszDesc));
     
    17901793     * @returns VBox status.
    17911794     * @param   pDevIns             The device instance owning the MMIO region(s).
    1792      * @param   enmCtx              CPU id or MMIO_REGCTX_GLOBAL if it's a global registration (applies to all CPUs)
     1795     * @param   enmCtx              CPU id or IOMMMIOCTX_GLOBAL if it's a global registration (applies to all CPUs)
    17931796     * @param   GCPhysStart         First physical address in the range.
    17941797     * @param   cbRange             The size of the range (in bytes).
    17951798     */
    1796     DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange));
     1799    DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange));
    17971800
    17981801    /**
     
    31143117                                      const char *pszDesc)
    31153118{
    3116     return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
     3119    return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
    31173120}
    31183121
     
    31233126                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31243127{
    3125     return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3128    return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31263129}
    31273130
     
    31323135                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31333136{
    3134     return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3137    return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, IOMMMIOCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31353138}
    31363139
     
    31423145                                      const char *pszDesc)
    31433146{
    3144     return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
     3147    return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
    31453148}
    31463149
     
    31513154                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31523155{
    3153     return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3156    return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31543157}
    31553158
     
    31603163                                        const char *pszWrite, const char *pszRead, const char *pszFill)
    31613164{
    3162     return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
     3165    return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, (IOMMMIOCTX)(IOMMMIOCTX_CPU_BASE + idCPU), GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);
    31633166}
    31643167
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