Introduce MSIMessage structure
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 16 May 2012 18:41:09 +0000 (15:41 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 16 May 2012 21:04:44 +0000 (18:04 -0300)
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>
hw/msi.h
qemu-common.h

index 3040bb0..75747ab 100644 (file)
--- a/hw/msi.h
+++ b/hw/msi.h
 #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);
index 50f659a..57fe28f 100644 (file)
@@ -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;