diff mbox

[edk2,v2,3/4] OvmfPkg/IndustryStandard: add macros for QEMU's SMI feature control bits

Message ID 20161118135249.26018-4-lersek@redhat.com
State New
Headers show

Commit Message

Laszlo Ersek Nov. 18, 2016, 1:52 p.m. UTC
The bits are specified in "docs/specs/q35-apm-sts.txt" in the QEMU tree.

Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=230
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---

Notes:
    v2:
    - new in v2

 OvmfPkg/Include/IndustryStandard/Q35MchIch9.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
2.9.2


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h b/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h
index 4dc2c39901c1..5848c5202912 100644
--- a/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h
+++ b/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h
@@ -91,8 +91,13 @@ 
 //
 // IO ports
 //
-#define ICH9_APM_CNT 0xB2
-#define ICH9_APM_STS 0xB3
+#define ICH9_APM_CNT                   0xB2
+#define ICH9_APM_STS                   0xB3
+//
+// The following bits are QEMU extensions.
+//
+#define QEMU_ICH9_APM_STS_GET_SET_FEAT   BIT1
+#define QEMU_ICH9_APM_STS_F_BCAST_SMI    BIT2
 
 //
 // IO ports relative to PMBASE