Changeset 13367 in vbox for trunk/include
- Timestamp:
- Oct 17, 2008 11:19:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r13074 r13367 2767 2767 DECLR3CALLBACKMEMBER(int, pfnUnregisterVMMDevHeap,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys)); 2768 2768 2769 /** 2770 * Register a Memory Mapped I/O (MMIO) region with backing memory. 2771 * 2772 * These callbacks are of course for the host context (HC). 2773 * Register HC handlers before guest context (GC) handlers! There must be a 2774 * HC handler for every GC handler! 2775 * 2776 * @returns VBox status. 2777 * @param pDevIns The device instance to register the MMIO with. 2778 * @param GCPhysStart First physical address in the range. 2779 * @param cbRange The size of the range (in bytes). 2780 * @param pvUser User argument. 2781 * @param pfnWrite Pointer to function which is gonna handle Write operations. 2782 * @param pfnRead Pointer to function which is gonna handle Read operations. 2783 * @param pfnFill Pointer to function which is gonna handle Fill/memset operations. (optional) 2784 * @param pszDesc Pointer to description string. This must not be freed. 2785 */ 2786 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterEx,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser, 2787 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 2788 const char *pszDesc)); 2789 2769 2790 /** @} */ 2770 2791 … … 2898 2919 DECLRCCALLBACKMEMBER(int, pfnPATMSetMMIOPatchInfo,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPTR pCachedData)); 2899 2920 2921 /** 2922 * Gets the VM handle. Restricted API. 2923 * 2924 * @returns VM Handle. 2925 * @param pDevIns Device instance. 2926 */ 2927 DECLRCCALLBACKMEMBER(PVM, pfnGetVM,(PPDMDEVINS pDevIns)); 2928 2900 2929 /** Just a safety precaution. */ 2901 2930 uint32_t u32TheEnd; … … 3025 3054 */ 3026 3055 DECLR0CALLBACKMEMBER(int, pfnPATMSetMMIOPatchInfo,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPTR pCachedData)); 3056 3057 /** 3058 * Gets the VM handle. Restricted API. 3059 * 3060 * @returns VM Handle. 3061 * @param pDevIns Device instance. 3062 */ 3063 DECLR0CALLBACKMEMBER(PVM, pfnGetVM,(PPDMDEVINS pDevIns)); 3027 3064 3028 3065 /** Just a safety precaution. */ … … 3228 3265 3229 3266 /** 3267 * @copydoc PDMDEVHLPR3::pfnMMIORegisterEx 3268 */ 3269 DECLINLINE(int) PDMDevHlpMMIORegisterEx(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser, 3270 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 3271 const char *pszDesc) 3272 { 3273 return pDevIns->pDevHlpR3->pfnMMIORegisterEx(pDevIns, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc); 3274 } 3275 3276 /** 3230 3277 * @copydoc PDMDEVHLPR3::pfnMMIORegisterGC 3231 3278 */ … … 3448 3495 3449 3496 /** 3450 * @copydoc PDMDEVHLPR3::pfnGetVM3451 */3452 DECLINLINE(PVM) PDMDevHlpGetVM(PPDMDEVINS pDevIns)3453 {3454 return pDevIns->pDevHlpR3->pfnGetVM(pDevIns);3455 }3456 3457 /**3458 3497 * @copydoc PDMDEVHLPR3::pfnPhysReadGCVirt 3459 3498 */ … … 3609 3648 #endif /* IN_RING3 */ 3610 3649 3650 3651 /** 3652 * @copydoc PDMDEVHLPR3::pfnGetVM 3653 */ 3654 DECLINLINE(PVM) PDMDevHlpGetVM(PPDMDEVINS pDevIns) 3655 { 3656 return pDevIns->CTX_SUFF(pDevHlp)->pfnGetVM(pDevIns); 3657 } 3611 3658 3612 3659 /**
Note:
See TracChangeset
for help on using the changeset viewer.