VirtualBox

Changeset 64860 in vbox for trunk/src/VBox/Devices/Samples


Ignore:
Timestamp:
Dec 13, 2016 8:22:08 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112260
Message:

DevPlayground: mark it as a multi-function device as it uses all of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Samples/DevPlayground.cpp

    r64387 r64860  
    167167        PCIDevSetClassBase(&pFun->PciDev, 0x07);   /* communications device */
    168168        PCIDevSetClassSub( &pFun->PciDev, 0x80);   /* other communications device */
     169        if (iPciFun == 0)       /* only for the primary function */
     170            PCIDevSetHeaderType(&pFun->PciDev, 0x80); /* normal, multifunction device */
     171
    169172        int rc = PDMDevHlpPCIRegisterEx(pDevIns, &pFun->PciDev, iPciFun, 0 /*fFlags*/, iPciDevNo, iPciFun,
    170173                                        pThis->aPciFuns[iPciFun].szName);
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