VirtualBox

Ignore:
Timestamp:
Nov 2, 2010 2:02:19 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67316
Message:

PCI: more slot management bits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r33687 r33690  
    966966            InsertConfigNode(pDevices, "lpc", &pDev);
    967967            InsertConfigNode(pDev,     "0", &pInst);
     968#if 0
     969            PciAddr = PciBusAddress(0, 31, 0);
     970            hrc = BusMgr->assignPciDevice("lpc", pInst);                               H();
     971#endif
    968972            InsertConfigInteger(pInst, "Trusted",   1); /* boolean */
    969973        }
     
    23072311            if (fOsXGuest && fAudioEnabled)
    23082312            {
    2309                 /** @todo: don't hardcode */
    2310                 uint32_t u32AudioPciAddr = (5 << 16) | 0;
    2311                 InsertConfigInteger(pCfg, "AudioPciAddress",    u32AudioPciAddr);
     2313                PciBusAddress Address;
     2314                if (BusMgr->findPciAddress("hda", 0, Address))
     2315                {
     2316                    uint32_t u32AudioPciAddr = (Address.iDevice << 16) | Address.iFn;
     2317                    InsertConfigInteger(pCfg, "AudioPciAddress",    u32AudioPciAddr);
     2318                }
    23122319            }
    23132320            InsertConfigInteger(pCfg,  "IocPciAddress", u32IocPciAddress);
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