VirtualBox

Changeset 81928 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Nov 18, 2019 12:42:34 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134725
Message:

IPRT: Added 32-bit memchr variant. Prepared 16 and 64 bit ones too. [build fix]

File:
1 edited

Legend:

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

    r81923 r81928  
    58575857
    58585858/**
     5859 * Combines PDMDevHlpIoPortCreate() & PDMDevHlpIoPortMap(), but with flags.
     5860 */
     5861DECLINLINE(int) PDMDevHlpIoPortCreateFlagsAndMap(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, uint32_t fFlags,
     5862                                                 PFNIOMIOPORTNEWOUT pfnOut, PFNIOMIOPORTNEWIN pfnIn,
     5863                                                 const char *pszDesc, PCIOMIOPORTDESC paExtDescs, PIOMIOPORTHANDLE phIoPorts)
     5864{
     5865    int rc = pDevIns->pHlpR3->pfnIoPortCreateEx(pDevIns, cPorts, fFlags, NULL, UINT32_MAX,
     5866                                                pfnOut, pfnIn, NULL, NULL, NULL, pszDesc, paExtDescs, phIoPorts);
     5867    if (RT_SUCCESS(rc))
     5868        rc = pDevIns->pHlpR3->pfnIoPortMap(pDevIns, *phIoPorts, Port);
     5869    return rc;
     5870}
     5871
     5872/**
    58595873 * Combines PDMDevHlpIoPortCreateEx() & PDMDevHlpIoPortMap().
    58605874 */
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