summaryrefslogtreecommitdiff
path: root/ReferenceCode/Haswell/Guid/TxtOneTouch
diff options
context:
space:
mode:
Diffstat (limited to 'ReferenceCode/Haswell/Guid/TxtOneTouch')
-rw-r--r--ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.c33
-rw-r--r--ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.h53
2 files changed, 86 insertions, 0 deletions
diff --git a/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.c b/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.c
new file mode 100644
index 0000000..acdeafc
--- /dev/null
+++ b/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.c
@@ -0,0 +1,33 @@
+/** @file
+ This file contains definitions required for One-Touch function.
+
+@copyright
+ Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved
+ This software and associated documentation (if any) is furnished
+ under a license and may only be used or copied in accordance
+ with the terms of the license. Except as permitted by such
+ license, no part of this software or documentation may be
+ reproduced, stored in a retrieval system, or transmitted in any
+ form or by any means without the express written consent of
+ Intel Corporation.
+
+ This file contains an 'Intel Peripheral Driver' and uniquely
+ identified as "Intel Reference Module" and is
+ licensed for Intel CPUs and chipsets under the terms of your
+ license agreement with Intel or your vendor. This file may
+ be modified by the user, subject to additional terms of the
+ license agreement
+**/
+
+///
+/// External include files do NOT need to be explicitly specified in real EDKII
+/// environment
+///
+#if !defined(EDK_RELEASE_VERSION) || (EDK_RELEASE_VERSION < 0x00020000)
+#include "EdkIIGlueDxe.h"
+#include EFI_GUID_DEFINITION (TxtOneTouch)
+#endif
+
+EFI_GUID gTxtOneTouchGuid = TXT_ONE_TOUCH_GUID;
+
+EFI_GUID_STRING(&gTxtOneTouchGuid, "TXT One_Touch GUID", "TXT One_Touch GUID");
diff --git a/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.h b/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.h
new file mode 100644
index 0000000..a99b42e
--- /dev/null
+++ b/ReferenceCode/Haswell/Guid/TxtOneTouch/TxtOneTouch.h
@@ -0,0 +1,53 @@
+/** @file
+ This file contains definitions required for One-Touch function.
+
+@copyright
+ Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved
+ This software and associated documentation (if any) is furnished
+ under a license and may only be used or copied in accordance
+ with the terms of the license. Except as permitted by such
+ license, no part of this software or documentation may be
+ reproduced, stored in a retrieval system, or transmitted in any
+ form or by any means without the express written consent of
+ Intel Corporation.
+
+ This file contains an 'Intel Peripheral Driver' and uniquely
+ identified as "Intel Reference Module" and is
+ licensed for Intel CPUs and chipsets under the terms of your
+ license agreement with Intel or your vendor. This file may
+ be modified by the user, subject to additional terms of the
+ license agreement
+**/
+#ifndef _TXT_ONE_TOUCH_H_
+#define _TXT_ONE_TOUCH_H_
+
+#define TXT_ONE_TOUCH_GUID \
+ { \
+ 0x3D989471, 0xCFAC, 0x46B7, 0x9B, 0x1C, 0x8, 0x43, 0x1, 0x9, 0x40, 0x2D \
+ }
+
+extern EFI_GUID gTxtOneTouchGuid;
+
+//
+// Operation
+//
+#define ENABLE_VT 128
+#define DISABLE_VT_TXT 129
+#define ENABLE_VTD 130
+#define DISABLE_VTD_TXT 131
+#define ENABLE_ACTTPM_VT_VTD_TXT_DISABLE_STM 132
+#define ENABLE_ACTTPM_VT_VTD_TXT_STM 133
+#define DISABLE_STM 134
+#define DISABLE_TXT_STM 135
+#define DISABLE_SENTER_VMX 136 ///< optional
+#define ENABLE_VMX_SMX_ONLY 137 ///< optional
+#define ENABLE_VMX_OUTSIDE_SMX 138 ///< optional
+#define ENABLE_VMX 139 ///< optional
+#define ENABLE_SENTER_ONLY 140 ///< optional
+#define ENABLE_SENTER_VMX_IN_SMX 141 ///< optional
+#define ENABLE_SENTER_VMX_OUTSIDE_SMX 142 ///< optional
+#define ENABLE_SENTER_VMX 143 ///< optional
+#define SET_NO_TXT_MAINTENANCE_FALSE 159
+#define SET_NO_TXT_MAINTENANCE_TRUE 160
+
+#endif