Changeset 81616 in vbox for trunk/include/VBox
- Timestamp:
- Oct 31, 2019 7:43:07 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134373
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r81590 r81616 5897 5897 DECLINLINE(int) PDMDevHlpMmioCreate(PPDMDEVINS pDevIns, RTGCPHYS cbRegion, PPDMPCIDEV pPciDev, uint32_t iPciRegion, 5898 5898 PFNIOMMMIONEWWRITE pfnWrite, PFNIOMMMIONEWREAD pfnRead, void *pvUser, 5899 const char *pszDesc, PIOMMMIOHANDLE phRegion)5900 { 5901 return pDevIns->pHlpR3->pfnMmioCreateEx(pDevIns, cbRegion, 0, pPciDev, iPciRegion,5899 uint32_t fFlags, const char *pszDesc, PIOMMMIOHANDLE phRegion) 5900 { 5901 return pDevIns->pHlpR3->pfnMmioCreateEx(pDevIns, cbRegion, fFlags, pPciDev, iPciRegion, 5902 5902 pfnWrite, pfnRead, NULL, pvUser, pszDesc, phRegion); 5903 5903 } … … 6817 6817 * @param pDevIns The device instance to register the ports with. 6818 6818 * @param cbPorts The size of the region in I/O ports. 6819 * @param iPciRegion The PCI device region in the high 16-bit word and 6820 * sub-region in the low 16-bit word. UINT32_MAX if NA. 6819 * @param iPciRegion The PCI device region. 6821 6820 * @param pfnOut Pointer to function which is gonna handle OUT 6822 6821 * operations. Optional. … … 6835 6834 6836 6835 { 6837 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cbPorts, 0 /*fFlags*/, pDevIns->apPciDevs[0], iPciRegion ,6836 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cbPorts, 0 /*fFlags*/, pDevIns->apPciDevs[0], iPciRegion << 16, 6838 6837 pfnOut, pfnIn, NULL, NULL, pvUser, pszDesc, paExtDescs, phIoPorts); 6839 6838 if (RT_SUCCESS(rc)) … … 6868 6867 6869 6868 /** 6869 * Registers an MMIO region for the default PCI device, extended version. 6870 * 6871 * @returns VBox status code. 6872 * @param pDevIns The device instance. 6873 * @param pPciDev The PCI device structure. 6874 * @param iRegion The region number. 6875 * @param cbRegion Size of the region. 6876 * @param enmType PCI_ADDRESS_SPACE_MEM or 6877 * PCI_ADDRESS_SPACE_MEM_PREFETCH, optionally or-ing in 6878 * PCI_ADDRESS_SPACE_BAR64 or PCI_ADDRESS_SPACE_BAR32. 6879 * @param hMmioRegion Handle to the MMIO region. 6880 * @param pfnCallback Callback for doing the mapping, optional. The 6881 * callback will be invoked holding only the PDM lock. 6882 * The device lock will _not_ be taken (due to lock 6883 * order). 6884 */ 6885 DECLINLINE(int) PDMDevHlpPCIIORegionRegisterMmioEx(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, uint32_t iRegion, 6886 RTGCPHYS cbRegion, PCIADDRESSSPACE enmType, IOMMMIOHANDLE hMmioRegion, 6887 PFNPCIIOREGIONMAP pfnCallback) 6888 { 6889 return pDevIns->pHlpR3->pfnPCIIORegionRegister(pDevIns, pPciDev, iRegion, cbRegion, enmType, 6890 PDMPCIDEV_IORGN_F_MMIO_HANDLE, hMmioRegion, pfnCallback); 6891 } 6892 6893 /** 6870 6894 * Combines PDMDevHlpMmioCreate and PDMDevHlpPCIIORegionRegisterMmio, creating 6871 6895 * and registering an MMIO region for the default PCI device. … … 6874 6898 * @param pDevIns The device instance to register the ports with. 6875 6899 * @param cbRegion The size of the region in bytes. 6876 * @param iPciRegion The PCI device region in the high 16-bit word and 6877 * sub-region in the low 16-bit word. UINT32_MAX if NA. 6900 * @param iPciRegion The PCI device region. 6878 6901 * @param enmType PCI_ADDRESS_SPACE_MEM or 6879 6902 * PCI_ADDRESS_SPACE_MEM_PREFETCH, optionally or-ing in … … 6894 6917 6895 6918 { 6896 int rc = pDevIns->pHlpR3->pfnMmioCreateEx(pDevIns, cbRegion, fFlags, pDevIns->apPciDevs[0], iPciRegion ,6919 int rc = pDevIns->pHlpR3->pfnMmioCreateEx(pDevIns, cbRegion, fFlags, pDevIns->apPciDevs[0], iPciRegion << 16, 6897 6920 pfnWrite, pfnRead, NULL /*pfnFill*/, pvUser, pszDesc, phRegion); 6898 6921 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.