Lines Matching refs:pPciBusReg

2326 static DECLCALLBACK(int) pdmR3DevHlp_PCIBusRegister(PPDMDEVINS pDevIns, PPDMPCIBUSREG pPciBusReg, PCPDMPCIHLPR3 *ppPciHlpR3)
2331 LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: pPciBusReg=%p:{.u32Version=%#x, .pfnRegisterR3=%p, .pfnIORegionRegisterR3=%p, "
2333 pDevIns->pReg->szName, pDevIns->iInstance, pPciBusReg, pPciBusReg->u32Version, pPciBusReg->pfnRegisterR3,
2334 pPciBusReg->pfnIORegionRegisterR3, pPciBusReg->pfnSetIrqR3, pPciBusReg->pfnFakePCIBIOSR3,
2335 pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqR0, pPciBusReg->pszSetIrqR0, ppPciHlpR3));
2340 if (pPciBusReg->u32Version != PDM_PCIBUSREG_VERSION)
2342 AssertMsgFailed(("u32Version=%#x expected %#x\n", pPciBusReg->u32Version, PDM_PCIBUSREG_VERSION));
2346 if ( !pPciBusReg->pfnRegisterR3
2347 || !pPciBusReg->pfnIORegionRegisterR3
2348 || !pPciBusReg->pfnSetIrqR3
2349 || (!pPciBusReg->pfnFakePCIBIOSR3 && !pVM->pdm.s.aPciBuses[0].pDevInsR3)) /* Only the first bus needs to do the BIOS work. */
2351 Assert(pPciBusReg->pfnRegisterR3);
2352 Assert(pPciBusReg->pfnIORegionRegisterR3);
2353 Assert(pPciBusReg->pfnSetIrqR3);
2354 Assert(pPciBusReg->pfnFakePCIBIOSR3);
2358 if ( pPciBusReg->pszSetIrqRC
2359 && !VALID_PTR(pPciBusReg->pszSetIrqRC))
2361 Assert(VALID_PTR(pPciBusReg->pszSetIrqRC));
2365 if ( pPciBusReg->pszSetIrqR0
2366 && !VALID_PTR(pPciBusReg->pszSetIrqR0))
2368 Assert(VALID_PTR(pPciBusReg->pszSetIrqR0));
2397 if (pPciBusReg->pszSetIrqRC)
2399 int rc = pdmR3DevGetSymbolRCLazy(pDevIns, pPciBusReg->pszSetIrqRC, &pPciBus->pfnSetIrqRC);
2400 AssertMsgRC(rc, ("%s::%s rc=%Rrc\n", pDevIns->pReg->szRCMod, pPciBusReg->pszSetIrqRC, rc));
2417 if (pPciBusReg->pszSetIrqR0)
2419 int rc = pdmR3DevGetSymbolR0Lazy(pDevIns, pPciBusReg->pszSetIrqR0, &pPciBus->pfnSetIrqR0);
2420 AssertMsgRC(rc, ("%s::%s rc=%Rrc\n", pDevIns->pReg->szR0Mod, pPciBusReg->pszSetIrqR0, rc));
2439 pPciBus->pfnRegisterR3 = pPciBusReg->pfnRegisterR3;
2440 pPciBus->pfnRegisterMsiR3 = pPciBusReg->pfnRegisterMsiR3;
2441 pPciBus->pfnIORegionRegisterR3 = pPciBusReg->pfnIORegionRegisterR3;
2442 pPciBus->pfnSetConfigCallbacksR3 = pPciBusReg->pfnSetConfigCallbacksR3;
2443 pPciBus->pfnSetIrqR3 = pPciBusReg->pfnSetIrqR3;
2444 pPciBus->pfnFakePCIBIOSR3 = pPciBusReg->pfnFakePCIBIOSR3;