Changeset 12566 in vbox for trunk/include/VBox/pdmdev.h
- Timestamp:
- Sep 18, 2008 12:42:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r12562 r12566 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 IOMMMIOCTX_GLOBAL if it's a global1729 * registration (applies to all CPUs).1730 1728 * @param cbRange The size of the range (in bytes). 1731 1729 * @param pvUser User argument. … … 1735 1733 * @param pszDesc Pointer to description string. This must not be freed. 1736 1734 */ 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, 1738 1736 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 1739 1737 const char *pszDesc)); … … 1748 1746 * @returns VBox status. 1749 1747 * @param pDevIns The device instance to register the MMIO with. 1750 * @param enmCtx CPU id or IOMMMIOCTX_GLOBAL if it's a global1751 * registration (applies to all CPUs).1752 1748 * @param GCPhysStart First physical address in the range. 1753 1749 * @param cbRange The size of the range (in bytes). … … 1759 1755 * @todo Remove pszDesc in the next major revision of PDMDEVHLP. 1760 1756 */ 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, 1762 1758 const char *pszWrite, const char *pszRead, const char *pszFill, 1763 1759 const char *pszDesc)); … … 1771 1767 * @returns VBox status. 1772 1768 * @param pDevIns The device instance to register the MMIO with. 1773 * @param enmCtx CPU id or IOMMMIOCTX_GLOBAL if it's a global1774 * registration (applies to all CPUs).1775 1769 * @param GCPhysStart First physical address in the range. 1776 1770 * @param cbRange The size of the range (in bytes). … … 1782 1776 * @todo Remove pszDesc in the next major revision of PDMDEVHLP. 1783 1777 */ 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, 1785 1779 const char *pszWrite, const char *pszRead, const char *pszFill, 1786 1780 const char *pszDesc)); … … 1793 1787 * @returns VBox status. 1794 1788 * @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)1796 1789 * @param GCPhysStart First physical address in the range. 1797 1790 * @param cbRange The size of the range (in bytes). 1798 1791 */ 1799 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, IOMMMIOCTX enmCtx,RTGCPHYS GCPhysStart, RTUINT cbRange));1792 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange)); 1800 1793 1801 1794 /** … … 3117 3110 const char *pszDesc) 3118 3111 { 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); 3120 3113 } 3121 3114 … … 3126 3119 const char *pszWrite, const char *pszRead, const char *pszFill) 3127 3120 { 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); 3129 3122 } 3130 3123 … … 3135 3128 const char *pszWrite, const char *pszRead, const char *pszFill) 3136 3129 { 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); 3166 3131 } 3167 3132
Note:
See TracChangeset
for help on using the changeset viewer.