diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-08-27 21:44:53 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-08-30 01:05:49 +0000 |
commit | 94e465e5cbb65c47d9e98f5c4c61f3a5e008ee5d (patch) | |
tree | a270f1179335cb135f508570ff0e44741f31b0a2 /OvmfPkg/Include/IndustryStandard | |
parent | a82bad9730178a1e3a67c9bfc83412b87a8ad734 (diff) | |
download | edk2-94e465e5cbb65c47d9e98f5c4c61f3a5e008ee5d.tar.gz edk2-94e465e5cbb65c47d9e98f5c4c61f3a5e008ee5d.tar.bz2 edk2-94e465e5cbb65c47d9e98f5c4c61f3a5e008ee5d.zip |
OvmfPkg/Virtio10: Add virtio-mmio 1.0 defines
Add defines for the config space offsets for virtio 1.0 mmio transport.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'OvmfPkg/Include/IndustryStandard')
-rw-r--r-- | OvmfPkg/Include/IndustryStandard/Virtio10.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/Virtio10.h b/OvmfPkg/Include/IndustryStandard/Virtio10.h index 2c60be2b7c..a1712247e0 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio10.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio10.h @@ -81,4 +81,16 @@ typedef struct { #define VIRTIO_F_VERSION_1 BIT32
#define VIRTIO_F_IOMMU_PLATFORM BIT33
+//
+// MMIO VirtIo Header Offsets
+//
+#define VIRTIO_MMIO_OFFSET_QUEUE_READY 0x44
+#define VIRTIO_MMIO_OFFSET_QUEUE_DESC_LO 0x80
+#define VIRTIO_MMIO_OFFSET_QUEUE_DESC_HI 0x84
+#define VIRTIO_MMIO_OFFSET_QUEUE_AVAIL_LO 0x90
+#define VIRTIO_MMIO_OFFSET_QUEUE_AVAIL_HI 0x94
+#define VIRTIO_MMIO_OFFSET_QUEUE_USED_LO 0xa0
+#define VIRTIO_MMIO_OFFSET_QUEUE_USED_HI 0xa4
+#define VIRTIO_MMIO_OFFSET_CONFIG_GENERATION 0xfc
+
#endif // _VIRTIO_1_0_H_
|