VirtualBox

Changeset 80679 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Sep 9, 2019 6:26:59 PM (5 years ago)
Author:
vboxsync
Message:

IOM,PDM,RTC: Add port sub-descriptions for a range. Fixed bug in statistics collection causing all access to be attributed to the first port in the range. Rearranged the stats for new I/O ports. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r80672 r80679  
    12041204     * Register I/O ports.
    12051205     */
     1206    static const IOMIOPORTDESC g_aIoPortDescs[] =
     1207    {
     1208        { NULL, "ADDR - CMOS Bank #1", NULL, NULL },
     1209        { "DATA - CMOS Bank #1", "DATA - CMOS Bank #1", NULL, NULL },
     1210        { NULL, "ADDR - CMOS Bank #2", NULL, NULL },
     1211        { "DATA - CMOS Bank #2", "DATA - CMOS Bank #2", NULL, NULL },
     1212        { NULL, NULL, NULL, NULL }
     1213    };
    12061214    rc = PDMDevHlpIoPortCreateAndMap(pDevIns, pThis->IOPortBase, 4, rtcIOPortWrite, rtcIOPortRead,
    1207                                      "MC146818 RTC/CMOS", &pThis->hIoPorts);
     1215                                     "MC146818 RTC/CMOS", g_aIoPortDescs, &pThis->hIoPorts);
    12081216    AssertRCReturn(rc, rc);
    12091217
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