diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-05-13 09:31:53 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2015-05-13 09:31:53 +0000 |
commit | cc5e0aa9caa97d2cf0cac6ed929919f4283b5b98 (patch) | |
tree | d10feaa56e5f955c5ed7c8c0b653f6ad9c0d5171 /OvmfPkg/Include | |
parent | da372167684822ddd0cce01e5282502da28538a4 (diff) | |
download | edk2-cc5e0aa9caa97d2cf0cac6ed929919f4283b5b98.tar.gz edk2-cc5e0aa9caa97d2cf0cac6ed929919f4283b5b98.tar.bz2 edk2-cc5e0aa9caa97d2cf0cac6ed929919f4283b5b98.zip |
OvmfPkg: extract some bits and port offsets common to Q35 and I440FX
The PMBA_RTE and ACPI_TIMER_OFFSET macros apply equally to both boards,
plus they are triplicated between the various AcpiTimerLib instances.
Define them centrally in "OvmfPlatforms.h".
Cc: Gabriel Somlo <somlo@cmu.edu>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Gabriel Somlo <somlo@cmu.edu>
Tested-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17436 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/Include')
-rw-r--r-- | OvmfPkg/Include/OvmfPlatforms.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OvmfPkg/Include/OvmfPlatforms.h b/OvmfPkg/Include/OvmfPlatforms.h index 19f0adb897..43ab01d57c 100644 --- a/OvmfPkg/Include/OvmfPlatforms.h +++ b/OvmfPkg/Include/OvmfPlatforms.h @@ -27,4 +27,14 @@ #define OVMF_HOSTBRIDGE_DID \
PCI_LIB_ADDRESS (0, 0, 0, PCI_DEVICE_ID_OFFSET)
+//
+// Common bits in same-purpose registers
+//
+#define PMBA_RTE BIT0
+
+//
+// Common IO ports relative to the Power Management Base Address
+//
+#define ACPI_TIMER_OFFSET 0x8
+
#endif
|