VirtualBox

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


Ignore:
Timestamp:
Dec 6, 2010 1:57:56 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68554
Message:

PCI: correct reset handlers

File:
1 edited

Legend:

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

    r34746 r34748  
    178178static void ich9pciSetIrqInternal(PPCIGLOBALS pGlobals, uint8_t uDevFn, PPCIDEVICE pPciDev, int iIrq, int iLevel);
    179179#ifdef IN_RING3
     180static void ich9pcibridgeReset(PPDMDEVINS pDevIns);
    180181static int ich9pciRegisterInternal(PPCIBUS pBus, int iDev, PPCIDEVICE pPciDev, const char *pszName);
    181182static void ich9pciUpdateMappings(PCIDevice *pDev);
     
    24582459                       VBOX_PCI_COMMAND_MASTER));
    24592460
    2460     /* Bridge device has its own reset handler clearing PCI registers */
     2461    /* Bridge device reset handlers processed later */
    24612462    if (!PCIIsPci2PciBridge(pDev))
    24622463    {
    24632464        PCIDevSetByte(pDev, VBOX_PCI_CACHE_LINE_SIZE, 0x0);
    24642465        PCIDevSetInterruptLine(pDev, 0x0);
    2465     }
     2466    }   
    24662467    /* Clear regions too ? */
    24672468}
     
    24812482        if (pBus->apDevices[i])
    24822483            ich9pciResetDevice(pBus->apDevices[i]);
     2484    }
     2485
     2486    for (uint32_t iBridge = 0; iBridge < pBus->cBridges; iBridge++)
     2487    {
     2488        if (pBus->papBridgesR3[iBridge])
     2489            ich9pcibridgeReset(pBus->papBridgesR3[iBridge]->pDevIns);
    24832490    }
    24842491
     
    26412648 * @copydoc FNPDMDEVRESET
    26422649 */
    2643 static DECLCALLBACK(void) ich9pcibridgeReset(PPDMDEVINS pDevIns)
     2650static void ich9pcibridgeReset(PPDMDEVINS pDevIns)
    26442651{
    26452652    PPCIBUS pBus = PDMINS_2_DATA(pDevIns, PPCIBUS);
     
    27622769    NULL,
    27632770    /* pfnReset */
    2764     ich9pcibridgeReset,
     2771    NULL, /* Must be NULL, to make sure only bus driver handles reset */
    27652772    /* pfnSuspend */
    27662773    NULL,
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