mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/pci-host/designware: Expose MSI IRQ
Fixes INTD and MSI interrupts poking the same IRQ line without keeping track of each other's IRQ level. Furthermore, SoCs such as the i.MX 8M Plus don't share the MSI IRQ with the INTx lines, so expose it as a dedicated pin. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
a451cc11c4
commit
1b326f278d
7 changed files with 36 additions and 8 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "hw/usb/chipidea.h"
|
||||
#include "hw/usb/imx-usb-phy.h"
|
||||
#include "hw/pci-host/designware.h"
|
||||
#include "hw/or-irq.h"
|
||||
#include "exec/memory.h"
|
||||
#include "cpu.h"
|
||||
#include "qom/object.h"
|
||||
|
@ -73,6 +74,7 @@ struct FslIMX6State {
|
|||
ChipideaState usb[FSL_IMX6_NUM_USBS];
|
||||
IMXFECState eth;
|
||||
DesignwarePCIEHost pcie;
|
||||
OrIRQState pcie4_msi_irq;
|
||||
MemoryRegion rom;
|
||||
MemoryRegion caam;
|
||||
MemoryRegion ocram;
|
||||
|
@ -457,7 +459,7 @@ struct FslIMX6State {
|
|||
#define FSL_IMX6_PCIE1_IRQ 120
|
||||
#define FSL_IMX6_PCIE2_IRQ 121
|
||||
#define FSL_IMX6_PCIE3_IRQ 122
|
||||
#define FSL_IMX6_PCIE4_IRQ 123
|
||||
#define FSL_IMX6_PCIE4_MSI_IRQ 123
|
||||
#define FSL_IMX6_DCIC1_IRQ 124
|
||||
#define FSL_IMX6_DCIC2_IRQ 125
|
||||
#define FSL_IMX6_MLB150_HIGH_IRQ 126
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "hw/net/imx_fec.h"
|
||||
#include "hw/pci-host/designware.h"
|
||||
#include "hw/usb/chipidea.h"
|
||||
#include "hw/or-irq.h"
|
||||
#include "cpu.h"
|
||||
#include "qom/object.h"
|
||||
#include "qemu/units.h"
|
||||
|
@ -85,6 +86,7 @@ struct FslIMX7State {
|
|||
IMX7GPRState gpr;
|
||||
ChipideaState usb[FSL_IMX7_NUM_USBS];
|
||||
DesignwarePCIEHost pcie;
|
||||
OrIRQState pcie4_msi_irq;
|
||||
MemoryRegion rom;
|
||||
MemoryRegion caam;
|
||||
MemoryRegion ocram;
|
||||
|
@ -428,7 +430,7 @@ enum FslIMX7IRQs {
|
|||
FSL_IMX7_PCI_INTA_IRQ = 125,
|
||||
FSL_IMX7_PCI_INTB_IRQ = 124,
|
||||
FSL_IMX7_PCI_INTC_IRQ = 123,
|
||||
FSL_IMX7_PCI_INTD_IRQ = 122,
|
||||
FSL_IMX7_PCI_INTD_MSI_IRQ = 122,
|
||||
|
||||
FSL_IMX7_UART7_IRQ = 126,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue