]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/Virtio.h: Added the macros that define the Device Specific Configuration...
authorOlivier Martin <olivier.martin@arm.com>
Tue, 29 Oct 2013 06:07:35 +0000 (06:07 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Oct 2013 06:07:35 +0000 (06:07 +0000)
The Device Specific Configuration region is located at different locations
for the VirtIo devices over PCI, PCI with MSI-X capability, MMIO.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14807 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/Include/IndustryStandard/Virtio.h

index 622a8deef0c198237d287ccf31e0283dcf6a3b7e..e5abe1bd6e26b000132da62bd7977d9952d41c57 100644 (file)
 #define VIRTIO_SUBSYSTEM_9P_TRANSPORT       9\r
 #define VIRTIO_SUBSYSTEM_MAC80211_WLAN      10\r
 \r
+//\r
+// VirtIo Device Specific Configuration Offsets\r
+//\r
+#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_PCI             20\r
+#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_PCI_WITH_MSI_X  24\r
+#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_MMIO            0x100\r
+\r
 //\r
 // Data in the communication area is defined as packed and accessed as\r
 // volatile.\r