VirtualBox

Changeset 36116 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Mar 1, 2011 12:30:42 PM (14 years ago)
Author:
vboxsync
Message:

ICH9/PciBridge: Use the secondary bus number during device init and fix sub class code for the PCI2Host bridge

File:
1 edited

Legend:

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

    r36092 r36116  
    15311531static void ich9pciBiosInitBridge(PPCIGLOBALS pGlobals, uint8_t uBus, uint8_t uDevFn)
    15321532{
    1533     Log(("BIOS init device: %0x2::%02x.%d\n", uBus, uDevFn >> 3, uDevFn & 7));
     1533    Log(("BIOS init bridge: %02x::%02x.%d\n", uBus, uDevFn >> 3, uDevFn & 7));
    15341534
    15351535    /*
     
    15561556    uint32_t u32IoAddressBase = pGlobals->uPciBiosIo;
    15571557    uint32_t u32MMIOAddressBase = pGlobals->uPciBiosMmio;
     1558    uint8_t uBridgeBus = ich9pciConfigRead(pGlobals, uBus, uDevFn, VBOX_PCI_SECONDARY_BUS, 1);
    15581559
    15591560    /* Init devices behind the bridge and possibly other bridges as well. */
    15601561    for (int iDev = 0; iDev <= 255; iDev++)
    1561         ich9pciBiosInitDevice(pGlobals, uBus + 1, iDev);
     1562        ich9pciBiosInitDevice(pGlobals, uBridgeBus, iDev);
    15621563
    15631564    /*
     
    16071608    if (uVendor == 0xffff)
    16081609        return;
     1610
     1611    Log(("BIOS init device: %02x::%02x.%d\n", uBus, uDevFn >> 3, uDevFn & 7));
    16091612
    16101613    switch (uDevClass)
     
    24412444    PCIDevSetRevisionId(&pBus->aPciDev,   0x92); /* rev. A2 */
    24422445    PCIDevSetClassBase( &pBus->aPciDev,   0x06); /* bridge */
    2443     PCIDevSetClassSub(  &pBus->aPciDev,   0x04); /* Host/PCI bridge */
     2446    PCIDevSetClassSub(  &pBus->aPciDev,   0x00); /* Host/PCI bridge */
    24442447    PCIDevSetClassProg( &pBus->aPciDev,   0x01); /* Supports subtractive decoding. */
    24452448    PCIDevSetHeaderType(&pBus->aPciDev,   0x01); /* bridge */
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