Changeset 12545 in vbox for trunk/include/VBox/pdmdev.h
- Timestamp:
- Sep 17, 2008 3:11:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r12375 r12545 1726 1726 * @param pDevIns The device instance to register the MMIO with. 1727 1727 * @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 1729 * @param cbRange The size of the range (in bytes). 1729 1730 * @param pvUser User argument. … … 1733 1734 * @param pszDesc Pointer to description string. This must not be freed. 1734 1735 */ 1735 DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,1736 DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser, 1736 1737 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 1737 1738 const char *pszDesc)); … … 1746 1747 * @returns VBox status. 1747 1748 * @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) 1748 1750 * @param GCPhysStart First physical address in the range. 1749 1751 * @param cbRange The size of the range (in bytes). … … 1755 1757 * @todo Remove pszDesc in the next major revision of PDMDEVHLP. 1756 1758 */ 1757 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,1759 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterGC,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser, 1758 1760 const char *pszWrite, const char *pszRead, const char *pszFill, 1759 1761 const char *pszDesc)); … … 1767 1769 * @returns VBox status. 1768 1770 * @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) 1769 1772 * @param GCPhysStart First physical address in the range. 1770 1773 * @param cbRange The size of the range (in bytes). … … 1776 1779 * @todo Remove pszDesc in the next major revision of PDMDEVHLP. 1777 1780 */ 1778 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser,1781 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser, 1779 1782 const char *pszWrite, const char *pszRead, const char *pszFill, 1780 1783 const char *pszDesc)); … … 1787 1790 * @returns VBox status. 1788 1791 * @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) 1789 1793 * @param GCPhysStart First physical address in the range. 1790 1794 * @param cbRange The size of the range (in bytes). 1791 1795 */ 1792 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange));1796 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, MMIO_REGISTRATION_CTX enmCtx, RTGCPHYS GCPhysStart, RTUINT cbRange)); 1793 1797 1794 1798 /** … … 3110 3114 const char *pszDesc) 3111 3115 { 3112 return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);3116 return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc); 3113 3117 } 3114 3118 … … 3119 3123 const char *pszWrite, const char *pszRead, const char *pszFill) 3120 3124 { 3121 return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL);3125 return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL); 3122 3126 } 3123 3127 … … 3128 3132 const char *pszWrite, const char *pszRead, const char *pszFill) 3129 3133 { 3130 return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL); 3134 return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, MMIO_REGCTX_GLOBAL, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL); 3135 } 3136 3137 /** 3138 * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPU 3139 */ 3140 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPU(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser, 3141 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 3142 const char *pszDesc) 3143 { 3144 return pDevIns->pDevHlp->pfnMMIORegister(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc); 3145 } 3146 3147 /** 3148 * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPUGC 3149 */ 3150 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPUGC(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser, 3151 const char *pszWrite, const char *pszRead, const char *pszFill) 3152 { 3153 return pDevIns->pDevHlp->pfnMMIORegisterGC(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL); 3154 } 3155 3156 /** 3157 * @copydoc PDMDEVHLP::pfnMMIORegisterPerCPUR0 3158 */ 3159 DECLINLINE(int) PDMDevHlpMMIORegisterPerCPUR0(PPDMDEVINS pDevIns, int idCPU, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser, 3160 const char *pszWrite, const char *pszRead, const char *pszFill) 3161 { 3162 return pDevIns->pDevHlp->pfnMMIORegisterR0(pDevIns, (MMIO_REGISTRATION_CTX)idCPU, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, pszFill, NULL); 3131 3163 } 3132 3164
Note:
See TracChangeset
for help on using the changeset viewer.