- Timestamp:
- Oct 28, 2016 10:14:32 AM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Bus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r64450 r64451 1511 1511 1512 1512 /** 1513 * @interface_method_impl{PDMPCIBUSREG,pfnSetConfigCallbacksR3}1514 */1515 static DECLCALLBACK(void)1516 pciR3CommonSetConfigCallbacks(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld,1517 PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld)1518 {1519 NOREF(pDevIns);1520 1521 if (ppfnReadOld)1522 *ppfnReadOld = pPciDev->Int.s.pfnConfigRead;1523 pPciDev->Int.s.pfnConfigRead = pfnRead;1524 1525 if (ppfnWriteOld)1526 *ppfnWriteOld = pPciDev->Int.s.pfnConfigWrite;1527 pPciDev->Int.s.pfnConfigWrite = pfnWrite;1528 }1529 1530 1531 /**1532 1513 * @interface_method_impl{PDMPCIBUSREG,pfnFakePCIBIOSR3} 1533 1514 */ … … 1695 1676 PciBusReg.pfnRegisterMsiR3 = NULL; 1696 1677 PciBusReg.pfnIORegionRegisterR3 = devpciR3CommonIORegionRegister; 1697 PciBusReg.pfnSetConfigCallbacksR3 = pciR3CommonSetConfigCallbacks;1678 PciBusReg.pfnSetConfigCallbacksR3 = devpciR3CommonSetConfigCallbacks; 1698 1679 PciBusReg.pfnSetIrqR3 = pciSetIrq; 1699 1680 PciBusReg.pfnFakePCIBIOSR3 = pciR3FakePCIBIOS; … … 2032 2013 PciBusReg.pfnRegisterMsiR3 = NULL; 2033 2014 PciBusReg.pfnIORegionRegisterR3 = devpciR3CommonIORegionRegister; 2034 PciBusReg.pfnSetConfigCallbacksR3 = pciR3CommonSetConfigCallbacks;2015 PciBusReg.pfnSetConfigCallbacksR3 = devpciR3CommonSetConfigCallbacks; 2035 2016 PciBusReg.pfnSetIrqR3 = pcibridgeSetIrq; 2036 2017 PciBusReg.pfnFakePCIBIOSR3 = NULL; /* Only needed for the first bus. */ -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r64450 r64451 946 946 } 947 947 948 static DECLCALLBACK(void) ich9pciSetConfigCallbacks(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld, 948 949 /** 950 * @interface_method_impl{PDMPCIBUSREG,pfnSetConfigCallbacksR3} 951 */ 952 DECLCALLBACK(void) devpciR3CommonSetConfigCallbacks(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, 953 PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld, 949 954 PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld) 950 955 { … … 959 964 pPciDev->Int.s.pfnConfigWrite = pfnWrite; 960 965 } 966 961 967 962 968 static int ich9pciR3CommonSaveExec(PDEVPCIBUS pBus, PSSMHANDLE pSSM) … … 2400 2406 PciBusReg.pfnRegisterMsiR3 = ich9pciRegisterMsi; 2401 2407 PciBusReg.pfnIORegionRegisterR3 = devpciR3CommonIORegionRegister; 2402 PciBusReg.pfnSetConfigCallbacksR3 = ich9pciSetConfigCallbacks;2408 PciBusReg.pfnSetConfigCallbacksR3 = devpciR3CommonSetConfigCallbacks; 2403 2409 PciBusReg.pfnSetIrqR3 = ich9pciSetIrq; 2404 2410 PciBusReg.pfnFakePCIBIOSR3 = ich9pciFakePCIBIOS; … … 2672 2678 PciBusReg.pfnRegisterMsiR3 = ich9pciRegisterMsi; 2673 2679 PciBusReg.pfnIORegionRegisterR3 = devpciR3CommonIORegionRegister; 2674 PciBusReg.pfnSetConfigCallbacksR3 = ich9pciSetConfigCallbacks;2680 PciBusReg.pfnSetConfigCallbacksR3 = devpciR3CommonSetConfigCallbacks; 2675 2681 PciBusReg.pfnSetIrqR3 = ich9pcibridgeSetIrq; 2676 2682 PciBusReg.pfnFakePCIBIOSR3 = NULL; /* Only needed for the first bus. */ -
trunk/src/VBox/Devices/Bus/DevPciInternal.h
r64450 r64451 187 187 DECLCALLBACK(int) devpciR3CommonIORegionRegister(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, int iRegion, RTGCPHYS cbRegion, 188 188 PCIADDRESSSPACE enmType, PFNPCIIOREGIONMAP pfnCallback); 189 DECLCALLBACK(void) devpciR3CommonSetConfigCallbacks(PPDMDEVINS pDevIns, PPDMPCIDEV pPciDev, 190 PFNPCICONFIGREAD pfnRead, PPFNPCICONFIGREAD ppfnReadOld, 191 PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld); 189 192 190 193 #endif
Note:
See TracChangeset
for help on using the changeset viewer.