From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWX4T-0008EW-PJ for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWX4R-000178-20 for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWX4Q-00015J-Pd for qemu-devel@nongnu.org; Mon, 21 May 2012 14:11:02 -0400 From: Avi Kivity Date: Mon, 21 May 2012 19:37:30 +0300 Message-Id: <1337618267-16669-3-git-send-email-avi@redhat.com> In-Reply-To: <1337618267-16669-1-git-send-email-avi@redhat.com> References: <1337618267-16669-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 02/19] Introduce MSIMessage structure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, kvm@vger.kernel.org From: Jan Kiszka Will be used for generating and distributing MSI messages, both in emulation mode and under KVM. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- hw/msi.h | 5 +++++ qemu-common.h | 1 + 2 files changed, 6 insertions(+) diff --git a/hw/msi.h b/hw/msi.h index 3040bb0..75747ab 100644 --- a/hw/msi.h +++ b/hw/msi.h @@ -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; -- 1.7.10.1