Changeset 81853 in vbox for trunk/include
- Timestamp:
- Nov 14, 2019 10:57:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r81850 r81853 5950 5950 * Combines PDMDevHlpIoPortCreateEx() & PDMDevHlpIoPortMap(). 5951 5951 */ 5952 DECLINLINE(int) PDMDevHlpIoPortCreateExAndMap(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, 5952 DECLINLINE(int) PDMDevHlpIoPortCreateExAndMap(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, uint32_t fFlags, 5953 5953 PFNIOMIOPORTNEWOUT pfnOut, PFNIOMIOPORTNEWIN pfnIn, 5954 5954 PFNIOMIOPORTNEWOUTSTRING pfnOutStr, PFNIOMIOPORTNEWINSTRING pfnInStr, void *pvUser, 5955 5955 const char *pszDesc, PCIOMIOPORTDESC paExtDescs, PIOMIOPORTHANDLE phIoPorts) 5956 5956 { 5957 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, 0, NULL, UINT32_MAX,5957 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, fFlags, NULL, UINT32_MAX, 5958 5958 pfnOut, pfnIn, pfnOutStr, pfnInStr, pvUser, pszDesc, paExtDescs, phIoPorts); 5959 5959 if (RT_SUCCESS(rc)) … … 7032 7032 * @returns VBox status code. 7033 7033 * @param pDevIns The device instance to register the ports with. 7034 * @param c bPorts The size of the region in I/O ports.7034 * @param cPorts The count of I/O ports in the region (the size). 7035 7035 * @param iPciRegion The PCI device region. 7036 7036 * @param pfnOut Pointer to function which is gonna handle OUT … … 7045 7045 * 7046 7046 */ 7047 DECLINLINE(int) PDMDevHlpPCIIORegionCreateIo(PPDMDEVINS pDevIns, uint32_t iPciRegion, RTIOPORT c bPorts,7047 DECLINLINE(int) PDMDevHlpPCIIORegionCreateIo(PPDMDEVINS pDevIns, uint32_t iPciRegion, RTIOPORT cPorts, 7048 7048 PFNIOMIOPORTNEWOUT pfnOut, PFNIOMIOPORTNEWIN pfnIn, void *pvUser, 7049 7049 const char *pszDesc, PCIOMIOPORTDESC paExtDescs, PIOMIOPORTHANDLE phIoPorts) 7050 7050 7051 7051 { 7052 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, c bPorts, 0 /*fFlags*/, pDevIns->apPciDevs[0], iPciRegion << 16,7052 int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, 0 /*fFlags*/, pDevIns->apPciDevs[0], iPciRegion << 16, 7053 7053 pfnOut, pfnIn, NULL, NULL, pvUser, pszDesc, paExtDescs, phIoPorts); 7054 7054 if (RT_SUCCESS(rc)) 7055 rc = pDevIns->pHlpR3->pfnPCIIORegionRegister(pDevIns, pDevIns->apPciDevs[0], iPciRegion, c bPorts, PCI_ADDRESS_SPACE_IO,7055 rc = pDevIns->pHlpR3->pfnPCIIORegionRegister(pDevIns, pDevIns->apPciDevs[0], iPciRegion, cPorts, PCI_ADDRESS_SPACE_IO, 7056 7056 PDMPCIDEV_IORGN_F_IOPORT_HANDLE | PDMPCIDEV_IORGN_F_NEW_STYLE, 7057 7057 *phIoPorts, NULL /*pfnMapUnmap*/);
Note:
See TracChangeset
for help on using the changeset viewer.