Changeset 81525 in vbox for trunk/include
- Timestamp:
- Oct 25, 2019 9:53:00 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r81519 r81525 2276 2276 2277 2277 /** Current PDMDEVHLPR3 version number. */ 2278 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 2 7, 0)2278 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 28, 0) 2279 2279 2280 2280 /** … … 2992 2992 DECLR3CALLBACKMEMBER(int, pfnTimerSave,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PSSMHANDLE pSSM)); 2993 2993 DECLR3CALLBACKMEMBER(int, pfnTimerLoad,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, PSSMHANDLE pSSM)); 2994 DECLR3CALLBACKMEMBER(int, pfnTimerDestroy,(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer)); 2994 2995 /** @} */ 2995 2996 … … 6372 6373 6373 6374 /** 6375 * @copydoc PDMDEVHLPR3::pfnTimerDestroy 6376 */ 6377 DECLINLINE(int) PDMDevHlpTimerDestroy(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer) 6378 { 6379 return pDevIns->pHlpR3->pfnTimerDestroy(pDevIns, hTimer); 6380 } 6381 6382 /** 6374 6383 * @copydoc PDMDEVHLPR3::pfnTMUtcNow 6375 6384 */ … … 6724 6733 6725 6734 /** 6726 * Registers an MMIO portregion for the default PCI device.6735 * Registers an MMIO region for the default PCI device. 6727 6736 * 6728 6737 * @returns VBox status code. … … 6746 6755 } 6747 6756 6757 /** 6758 * Combines PDMDevHlpMmioCreate and PDMDevHlpPCIIORegionRegisterMmio, creating 6759 * and registering an MMIO region for the default PCI device. 6760 * 6761 * @returns VBox status code. 6762 * @param pDevIns The device instance to register the ports with. 6763 * @param cbRegion The size of the region in bytes. 6764 * @param iPciRegion The PCI device region in the high 16-bit word and 6765 * sub-region in the low 16-bit word. UINT32_MAX if NA. 6766 * @param enmType PCI_ADDRESS_SPACE_MEM or 6767 * PCI_ADDRESS_SPACE_MEM_PREFETCH, optionally or-ing in 6768 * PCI_ADDRESS_SPACE_BAR64 or PCI_ADDRESS_SPACE_BAR32. 6769 * @param fFlags Flags, IOMMMIO_FLAGS_XXX. 6770 * @param pfnWrite Pointer to function which is gonna handle Write 6771 * operations. 6772 * @param pfnRead Pointer to function which is gonna handle Read 6773 * operations. 6774 * @param pvUser User argument to pass to the callbacks. 6775 * @param pszDesc Pointer to description string. This must not be freed. 6776 * @param phRegion Where to return the MMIO region handle. 6777 * 6778 */ 6779 DECLINLINE(int) PDMDevHlpPCIIORegionCreateMmio(PPDMDEVINS pDevIns, uint32_t iPciRegion, RTGCPHYS cbRegion, PCIADDRESSSPACE enmType, 6780 PFNIOMMMIONEWWRITE pfnWrite, PFNIOMMMIONEWREAD pfnRead, void *pvUser, 6781 uint32_t fFlags, const char *pszDesc, PIOMMMIOHANDLE phRegion) 6782 6783 { 6784 int rc = pDevIns->pHlpR3->pfnMmioCreateEx(pDevIns, cbRegion, fFlags, pDevIns->apPciDevs[0], iPciRegion, 6785 pfnWrite, pfnRead, NULL /*pfnFill*/, pvUser, pszDesc, phRegion); 6786 if (RT_SUCCESS(rc)) 6787 rc = pDevIns->pHlpR3->pfnPCIIORegionRegister(pDevIns, pDevIns->apPciDevs[0], iPciRegion, cbRegion, enmType, 6788 PDMPCIDEV_IORGN_F_MMIO_HANDLE, *phRegion, NULL /*pfnCallback*/); 6789 return rc; 6790 } 6791 6748 6792 6749 6793 /**
Note:
See TracChangeset
for help on using the changeset viewer.