aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/virtio-ring.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-06-25 16:13:51 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-07-01 09:37:29 +0200
commit90ac3d4a33b0a81c663ff2a161a9c2a68d3480b1 (patch)
treeb456d8a07a463bf23594c8bb6bcbb62b24cae6bc /src/hw/virtio-ring.h
parent74d0cdc39aef26aa0dc24530bd0dc45b2336c614 (diff)
downloadseabios-90ac3d4a33b0a81c663ff2a161a9c2a68d3480b1.tar.gz
virtio: add version 1.0 structs and #defines
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/hw/virtio-ring.h')
-rw-r--r--src/hw/virtio-ring.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hw/virtio-ring.h b/src/hw/virtio-ring.h
index fe5133b0..553a5082 100644
--- a/src/hw/virtio-ring.h
+++ b/src/hw/virtio-ring.h
@@ -20,9 +20,14 @@
#define VIRTIO_CONFIG_S_DRIVER 2
/* Driver has used its parts of the config, and is happy */
#define VIRTIO_CONFIG_S_DRIVER_OK 4
+/* Driver has finished configuring features */
+#define VIRTIO_CONFIG_S_FEATURES_OK 8
/* We've given up on this device. */
#define VIRTIO_CONFIG_S_FAILED 0x80
+/* v1.0 compliant. */
+#define VIRTIO_F_VERSION_1 32
+
#define MAX_QUEUE_NUM (128)
#define VRING_DESC_F_NEXT 1