From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAJCT-0007Tb-Lh for qemu-devel@nongnu.org; Wed, 01 Jul 2015 10:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAJCQ-0003eN-1I for qemu-devel@nongnu.org; Wed, 01 Jul 2015 10:41:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAJCP-0003dv-SD for qemu-devel@nongnu.org; Wed, 01 Jul 2015 10:41:17 -0400 From: Gerd Hoffmann Date: Wed, 1 Jul 2015 16:40:51 +0200 Message-Id: <1435761670-19520-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1435761670-19520-1-git-send-email-kraxel@redhat.com> References: <1435761670-19520-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v3 06/25] virtio: add version 0.9.5 struct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: seabios@seabios.org Cc: Gerd Hoffmann , qemu-devel@nongnu.org, "Michael S. Tsirkin" Signed-off-by: Gerd Hoffmann --- src/hw/virtio-pci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 83ebcda..42e2b7f 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -40,6 +40,20 @@ /* Virtio ABI version, this must match exactly */ #define VIRTIO_PCI_ABI_VERSION 0 +/* --- virtio 0.9.5 (legacy) struct --------------------------------- */ + +typedef struct virtio_pci_legacy { + u32 host_features; + u32 guest_features; + u32 queue_pfn; + u16 queue_num; + u16 queue_sel; + u16 queue_notify; + u8 status; + u8 isr; + u8 device[]; +} virtio_pci_legacy; + /* --- virtio 1.0 (modern) structs ---------------------------------- */ /* Common configuration */ -- 1.8.3.1