VirtualBox

Changeset 67680 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 29, 2017 8:32:54 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116499
Message:

DevPciIch9: also print base/sub class on 'info pci'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r67672 r67680  
    27812781}
    27822782
     2783static const char *devpciR3InInfoPciBusClassName(uint8_t iBaseClass)
     2784{
     2785    static const char *s_szBaseClass[] =
     2786    {
     2787        /* 00h */ "unknown",
     2788        /* 01h */ "mass storage controller",
     2789        /* 02h */ "network controller",
     2790        /* 03h */ "display controller",
     2791        /* 04h */ "multimedia controller",
     2792        /* 05h */ "memory controller",
     2793        /* 06h */ "bridge device",
     2794        /* 07h */ "simple communication controllers",
     2795        /* 08h */ "base system peripherals",
     2796        /* 09h */ "input devices",
     2797        /* 0Ah */ "docking stations",
     2798        /* 0Bh */ "processors",
     2799        /* 0Ch */ "serial bus controllers",
     2800        /* 0Dh */ "wireless controller",
     2801        /* 0Eh */ "intelligent I/O controllers",
     2802        /* 0Fh */ "satellite communication controllers",
     2803        /* 10h */ "encryption/decryption controllers",
     2804        /* 11h */ "data acquisition and signal processing controllers"
     2805    };
     2806    if (iBaseClass < RT_ELEMENTS(s_szBaseClass))
     2807        return s_szBaseClass[iBaseClass];
     2808    if (iBaseClass < 0xFF)
     2809        return "reserved";
     2810    return "device does not fit in any defined classes";
     2811}
     2812
    27832813
    27842814/**
     
    28252855            }
    28262856            pHlp->pfnPrintf(pHlp, "\n");
     2857            devpciR3InfoIndent(pHlp, iIndentLvl + 2);
     2858            uint8_t uClassBase = ich9pciGetByte(pPciDev, VBOX_PCI_CLASS_BASE);
     2859            uint8_t uClassSub  = ich9pciGetByte(pPciDev, VBOX_PCI_CLASS_SUB);
     2860            pHlp->pfnPrintf(pHlp, "Class base/sub: %02x%02x (%s)\n",
     2861                            uClassBase, uClassSub, devpciR3InInfoPciBusClassName(uClassBase));
    28272862
    28282863            if (pciDevIsMsiCapable(pPciDev) || pciDevIsMsixCapable(pPciDev))
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