summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Include
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-02-21 14:43:00 +0100
committerLaszlo Ersek <lersek@redhat.com>2017-02-22 03:35:43 +0100
commit21ca2f28e6c5e006820956d7d56150184faeef85 (patch)
tree38e588def3f67e18213728de335eda194743395c /OvmfPkg/Include
parent5583a8a4ffd0dda9e069c9676e7ce69bc9fd5514 (diff)
downloadedk2-21ca2f28e6c5e006820956d7d56150184faeef85.tar.gz
edk2-21ca2f28e6c5e006820956d7d56150184faeef85.tar.bz2
edk2-21ca2f28e6c5e006820956d7d56150184faeef85.zip
OvmfPkg/QemuFwCfg: introduce FW_CFG_IO_SELECTOR, adapt the package
Introduce the FW_CFG_IO_SELECTOR macro for IO Port 0x510 (the Selector Register), and update all references in OvmfPkg. Cc: Jordan Justen <jordan.l.justen@intel.com> Suggested-by: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/Include')
-rw-r--r--OvmfPkg/Include/IndustryStandard/QemuFwCfg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/Include/IndustryStandard/QemuFwCfg.h b/OvmfPkg/Include/IndustryStandard/QemuFwCfg.h
index c7e9b5c382..776bfe88ae 100644
--- a/OvmfPkg/Include/IndustryStandard/QemuFwCfg.h
+++ b/OvmfPkg/Include/IndustryStandard/QemuFwCfg.h
@@ -43,6 +43,12 @@
#define FW_CFG_DMA_CTL_WRITE BIT4
//
+// The fw_cfg registers can be found at these IO Ports, on the IO-mapped
+// platforms (Ia32 and X64).
+//
+#define FW_CFG_IO_SELECTOR 0x510
+
+//
// Numerically defined keys.
//
typedef enum {