VirtualBox

Changeset 81772 in vbox for trunk/include


Ignore:
Timestamp:
Nov 11, 2019 6:05:04 PM (5 years ago)
Author:
vboxsync
Message:

PDMDevHlp: Adding PDMDevHlpIoPortCreateExAndMap. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r81764 r81772  
    59465946
    59475947/**
     5948 * Combines PDMDevHlpIoPortCreateEx() & PDMDevHlpIoPortMap().
     5949 */
     5950DECLINLINE(int) PDMDevHlpIoPortCreateExAndMap(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts,
     5951                                              PFNIOMIOPORTNEWOUT pfnOut, PFNIOMIOPORTNEWIN pfnIn,
     5952                                              PFNIOMIOPORTNEWOUTSTRING pfnOutStr, PFNIOMIOPORTNEWINSTRING pfnInStr, void *pvUser,
     5953                                              const char *pszDesc, PCIOMIOPORTDESC paExtDescs, PIOMIOPORTHANDLE phIoPorts)
     5954{
     5955    int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, 0, NULL, UINT32_MAX,
     5956                                                pfnOut, pfnIn, pfnOutStr, pfnInStr, pvUser, pszDesc, paExtDescs, phIoPorts);
     5957    if (RT_SUCCESS(rc))
     5958        rc = pDevIns->pHlpR3->pfnIoPortMap(pDevIns, *phIoPorts, Port);
     5959    return rc;
     5960}
     5961
     5962/**
    59485963 * @sa PDMDevHlpIoPortCreateEx
    59495964 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette