VirtualBox

Changeset 81911 in vbox


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

Location:
trunk
Files:
2 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 */
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r81887 r81911  
    337337    CHECK_MEMBER_ALIGNMENT(BUSLOGIC, CritSectIntr, 8);
    338338#ifdef VBOX_WITH_STATISTICS
    339     CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqGC, 8);
     339    CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqRZ, 8);
    340340#endif
    341341#ifdef VBOX_WITH_E1000
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