Changeset 84826 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jun 15, 2020 8:20:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAll.cpp
r82968 r84826 156 156 u8Irq = 2; 157 157 158 pVM->pdm.s.IoApic.CTX_SUFF(pfnSetIrq)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), u8Irq, u8Level, uTagSrc);158 pVM->pdm.s.IoApic.CTX_SUFF(pfnSetIrq)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), NIL_PCIBDF, u8Irq, u8Level, uTagSrc); 159 159 rc = VINF_SUCCESS; 160 160 } … … 173 173 * @param pVM The cross context VM structure. 174 174 * @param u8Irq The IRQ line. 175 * @param uBusDevFn The bus:device:function of the device initiating the IRQ. 176 * Pass NIL_PCIBDF when it's not a PCI device or interrupt. 175 177 * @param u8Level The new level. 176 178 * @param uTagSrc The IRQ tag and source tracer ID. 177 179 */ 178 VMM_INT_DECL(int) PDMIoApicSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc)180 VMM_INT_DECL(int) PDMIoApicSetIrq(PVM pVM, PCIBDF uBusDevFn, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc) 179 181 { 180 182 if (pVM->pdm.s.IoApic.CTX_SUFF(pDevIns)) 181 183 { 182 184 Assert(pVM->pdm.s.IoApic.CTX_SUFF(pfnSetIrq)); 183 pVM->pdm.s.IoApic.CTX_SUFF(pfnSetIrq)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), u 8Irq, u8Level, uTagSrc);185 pVM->pdm.s.IoApic.CTX_SUFF(pfnSetIrq)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), uBusDevFn, u8Irq, u8Level, uTagSrc); 184 186 return VINF_SUCCESS; 185 187 } … … 218 220 * @returns VBox status code. 219 221 * @param pVM The cross context VM structure. 220 * @param GCAddr Request address. 221 * @param uValue Request value. 222 * @param uBusDevFn The bus:device:function of the device initiating the MSI. 223 * Cannot be NIL_PCIBDF. 224 * @param pMsi The MSI to send. 222 225 * @param uTagSrc The IRQ tag and source tracer ID. 223 226 */ 224 VMM_INT_DECL(int) PDMIoApicSendMsi(PVM pVM, RTGCPHYS GCAddr, uint32_t uValue, uint32_t uTagSrc) 225 { 227 VMM_INT_DECL(int) PDMIoApicSendMsi(PVM pVM, PCIBDF uBusDevFn, PCMSIMSG pMsi, uint32_t uTagSrc) 228 { 229 Assert(PCIBDF_IS_VALID(uBusDevFn)); 226 230 if (pVM->pdm.s.IoApic.CTX_SUFF(pDevIns)) 227 231 { 228 232 Assert(pVM->pdm.s.IoApic.CTX_SUFF(pfnSendMsi)); 229 pVM->pdm.s.IoApic.CTX_SUFF(pfnSendMsi)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), GCAddr, uValue, uTagSrc);233 pVM->pdm.s.IoApic.CTX_SUFF(pfnSendMsi)(pVM->pdm.s.IoApic.CTX_SUFF(pDevIns), uBusDevFn, pMsi, uTagSrc); 230 234 return VINF_SUCCESS; 231 235 }
Note:
See TracChangeset
for help on using the changeset viewer.