VirtualBox

Changeset 81911 in vbox for trunk/include


Ignore:
Timestamp:
Nov 17, 2019 8:00:51 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134708
Message:

DevPIC: Converted I/O ports to new style. Replaced the memset approach to resetting with code clearing individual members. Use default statistics prefix (no release stats). bugref:9218

File:
1 edited

Legend:

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

    r81909 r81911  
    58435843
    58445844/**
     5845 * Combines PDMDevHlpIoPortCreate() & PDMDevHlpIoPortMap(), but with pvUser.
     5846 */
     5847DECLINLINE(int) PDMDevHlpIoPortCreateUAndMap(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, PFNIOMIOPORTNEWOUT pfnOut,
     5848                                             PFNIOMIOPORTNEWIN pfnIn, void *pvUser,
     5849                                             const char *pszDesc, PCIOMIOPORTDESC paExtDescs, PIOMIOPORTHANDLE phIoPorts)
     5850{
     5851    int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, 0, NULL, UINT32_MAX,
     5852                                                pfnOut, pfnIn, NULL, NULL, pvUser, pszDesc, paExtDescs, phIoPorts);
     5853    if (RT_SUCCESS(rc))
     5854        rc = pDevIns->pHlpR3->pfnIoPortMap(pDevIns, *phIoPorts, Port);
     5855    return rc;
     5856}
     5857
     5858/**
    58455859 * Combines PDMDevHlpIoPortCreateEx() & PDMDevHlpIoPortMap().
    58465860 */
Note: See TracChangeset for help on using the changeset viewer.

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