From b342c97dfc49f47accb243124fba208f63d3ce57 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Tue, 29 Oct 2013 06:07:35 +0000 Subject: OvmfPkg/Virtio.h: Added the macros that define the Device Specific Configuration Offset 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 Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14807 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Include/IndustryStandard/Virtio.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OvmfPkg') diff --git a/OvmfPkg/Include/IndustryStandard/Virtio.h b/OvmfPkg/Include/IndustryStandard/Virtio.h index 622a8deef0..e5abe1bd6e 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio.h @@ -34,6 +34,13 @@ #define VIRTIO_SUBSYSTEM_9P_TRANSPORT 9 #define VIRTIO_SUBSYSTEM_MAC80211_WLAN 10 +// +// VirtIo Device Specific Configuration Offsets +// +#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_PCI 20 +#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_PCI_WITH_MSI_X 24 +#define VIRTIO_DEVICE_SPECIFIC_CONFIGURATION_OFFSET_MMIO 0x100 + // // Data in the communication area is defined as packed and accessed as // volatile. -- cgit v1.2.3