diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-16 15:41:09 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-05-16 18:04:44 -0300 |
commit | 14de9bab9e4aa47215c26d87de7385afbcb37afa (patch) | |
tree | 326b2655bb6effba364e30359e1d5e3757d23776 | |
parent | 4e2e4e6355959a1af011167b0db5ac7ffd3adf94 (diff) | |
download | qemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.zip qemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.tar.gz qemu-14de9bab9e4aa47215c26d87de7385afbcb37afa.tar.bz2 |
Introduce MSIMessage structure
Will be used for generating and distributing MSI messages, both in
emulation mode and under KVM.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | hw/msi.h | 5 | ||||
-rw-r--r-- | qemu-common.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -24,6 +24,11 @@ #include "qemu-common.h" #include "pci.h" +struct MSIMessage { + uint64_t address; + uint32_t data; +}; + extern bool msi_supported; bool msi_enabled(const PCIDevice *dev); diff --git a/qemu-common.h b/qemu-common.h index 50f659a..57fe28f 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -248,6 +248,7 @@ typedef struct PCIEAERLog PCIEAERLog; typedef struct PCIEAERErr PCIEAERErr; typedef struct PCIEPort PCIEPort; typedef struct PCIESlot PCIESlot; +typedef struct MSIMessage MSIMessage; typedef struct SerialState SerialState; typedef struct IRQState *qemu_irq; typedef struct PCMCIACardState PCMCIACardState; |