Changeset 83281 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Mar 13, 2020 1:02:08 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136437
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r83263 r83281 44 44 #include <VBox/vmm/ssm.h> 45 45 #include <VBox/vmm/cfgm.h> 46 #include <VBox/vmm/cpum.h> 46 47 #include <VBox/vmm/dbgf.h> 48 #include <VBox/vmm/pgm.h> /* PGMR3HandlerPhysicalTypeRegister() argument types. */ 47 49 #include <VBox/err.h> /* VINF_EM_DBG_STOP, also 120+ source files expecting this. */ 48 50 #include <iprt/stdarg.h> … … 2086 2088 2087 2089 /** Current PDMDEVHLPR3 version number. */ 2088 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 4 2, 0)2090 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 43, 0) 2089 2091 2090 2092 /** … … 3905 3907 DECLR3CALLBACKMEMBER(void, pfnPhysBulkReleasePageMappingLocks,(PPDMDEVINS pDevIns, uint32_t cPages, PPGMPAGEMAPLOCK paLocks)); 3906 3908 3909 /** 3910 * Returns the micro architecture used for the guest. 3911 * 3912 * @returns CPU micro architecture enum. 3913 * @param pDevIns The device instance. 3914 */ 3915 DECLR3CALLBACKMEMBER(CPUMMICROARCH, pfnCpuGetGuestMicroarch,(PPDMDEVINS pDevIns)); 3916 3907 3917 /** Space reserved for future members. 3908 3918 * @{ */ … … 4115 4125 */ 4116 4126 DECLR3CALLBACKMEMBER(void *, pfnQueryGenericUserObject,(PPDMDEVINS pDevIns, PCRTUUID pUuid)); 4127 4128 /** 4129 * Register a physical page access handler type. 4130 * 4131 * @returns VBox status code. 4132 * @param pDevIns The device instance. 4133 * @param enmKind The kind of access handler. 4134 * @param pfnHandlerR3 Pointer to the ring-3 handler callback. 4135 * @param pszModR0 The name of the ring-0 module, NULL is an alias for 4136 * the main ring-0 module. 4137 * @param pszHandlerR0 The name of the ring-0 handler, NULL if the ring-3 4138 * handler should be called. 4139 * @param pszPfHandlerR0 The name of the ring-0 \#PF handler, NULL if the 4140 * ring-3 handler should be called. 4141 * @param pszModRC The name of the raw-mode context module, NULL is an 4142 * alias for the main RC module. 4143 * @param pszHandlerRC The name of the raw-mode context handler, NULL if 4144 * the ring-3 handler should be called. 4145 * @param pszPfHandlerRC The name of the raw-mode context \#PF handler, NULL 4146 * if the ring-3 handler should be called. 4147 * @param pszDesc The type description. 4148 * @param phType Where to return the type handle (cross context 4149 * safe). 4150 */ 4151 DECLR3CALLBACKMEMBER(int, pfnPGMHandlerPhysicalTypeRegister, (PPDMDEVINS pDevIns, PGMPHYSHANDLERKIND enmKind, 4152 R3PTRTYPE(PFNPGMPHYSHANDLER) pfnHandlerR3, 4153 const char *pszHandlerR0, const char *pszPfHandlerR0, 4154 const char *pszHandlerRC, const char *pszPfHandlerRC, 4155 const char *pszDesc, PPGMPHYSHANDLERTYPE phType)); 4117 4156 4118 4157 /** @} */ … … 6197 6236 { 6198 6237 pDevIns->CTX_SUFF(pHlp)->pfnPhysBulkReleasePageMappingLocks(pDevIns, cPages, paLocks); 6238 } 6239 6240 /** 6241 * @copydoc PDMDEVHLPR3::pfnCpuGetGuestMicroarch 6242 */ 6243 DECLINLINE(CPUMMICROARCH) PDMDevHlpCpuGetGuestMicroarch(PPDMDEVINS pDevIns) 6244 { 6245 return pDevIns->CTX_SUFF(pHlp)->pfnCpuGetGuestMicroarch(pDevIns); 6199 6246 } 6200 6247 … … 7684 7731 } 7685 7732 7733 /** 7734 * @copydoc PDMDEVHLPR3::pfnPGMHandlerPhysicalTypeRegister 7735 */ 7736 DECLINLINE(int) PDMDevHlpPGMHandlerPhysicalTypeRegister(PPDMDEVINS pDevIns, PGMPHYSHANDLERKIND enmKind, 7737 R3PTRTYPE(PFNPGMPHYSHANDLER) pfnHandlerR3, 7738 const char *pszHandlerR0, const char *pszPfHandlerR0, 7739 const char *pszHandlerRC, const char *pszPfHandlerRC, 7740 const char *pszDesc, PPGMPHYSHANDLERTYPE phType) 7741 { 7742 return pDevIns->pHlpR3->pfnPGMHandlerPhysicalTypeRegister(pDevIns, enmKind, pfnHandlerR3, 7743 pszHandlerR0, pszPfHandlerR0, 7744 pszHandlerRC, pszPfHandlerRC, 7745 pszDesc, phType); 7746 } 7747 7686 7748 /** Wrapper around SSMR3GetU32 for simplifying getting enum values saved as uint32_t. */ 7687 7749 # define PDMDEVHLP_SSM_GET_ENUM32_RET(a_pHlp, a_pSSM, a_enmDst, a_EnumType) \
Note:
See TracChangeset
for help on using the changeset viewer.