2 The header file for TCG SMM driver.
4 Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #include <IndustryStandard/Acpi.h>
20 #include <Guid/PhysicalPresenceData.h>
21 #include <Guid/MemoryOverwriteControl.h>
22 #include <Protocol/SmmSwDispatch2.h>
23 #include <Protocol/AcpiTable.h>
24 #include <Protocol/SmmVariable.h>
26 #include <Library/BaseLib.h>
27 #include <Library/BaseMemoryLib.h>
28 #include <Library/DebugLib.h>
29 #include <Library/SmmServicesTableLib.h>
30 #include <Library/UefiDriverEntryPoint.h>
31 #include <Library/UefiBootServicesTableLib.h>
32 #include <Library/DxeServicesLib.h>
42 } PHYSICAL_PRESENCE_NVS
;
52 PHYSICAL_PRESENCE_NVS PhysicalPresence
;
53 MEMORY_CLEAR_NVS MemoryClear
;
68 // The definition for TCG physical presence ACPI function
70 #define ACPI_FUNCTION_GET_PHYSICAL_PRESENCE_INTERFACE_VERSION 1
71 #define ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS 2
72 #define ACPI_FUNCTION_GET_PENDING_REQUEST_BY_OS 3
73 #define ACPI_FUNCTION_GET_PLATFORM_ACTION_TO_TRANSITION_TO_BIOS 4
74 #define ACPI_FUNCTION_RETURN_REQUEST_RESPONSE_TO_OS 5
75 #define ACPI_FUNCTION_SUBMIT_PREFERRED_USER_LANGUAGE 6
76 #define ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS_2 7
77 #define ACPI_FUNCTION_GET_USER_CONFIRMATION_STATUS_FOR_REQUEST 8
80 // The return code for Get User Confirmation Status for Operation
82 #define PP_REQUEST_NOT_IMPLEMENTED 0
83 #define PP_REQUEST_BIOS_ONLY 1
84 #define PP_REQUEST_BLOCKED 2
85 #define PP_REQUEST_ALLOWED_AND_PPUSER_REQUIRED 3
86 #define PP_REQUEST_ALLOWED_AND_PPUSER_NOT_REQUIRED 4
89 // The return code for Sumbit TPM Request to Pre-OS Environment
90 // and Sumbit TPM Request to Pre-OS Environment 2
92 #define PP_SUBMIT_REQUEST_SUCCESS 0
93 #define PP_SUBMIT_REQUEST_NOT_IMPLEMENTED 1
94 #define PP_SUBMIT_REQUEST_GENERAL_FAILURE 2
95 #define PP_SUBMIT_REQUEST_BLOCKED_BY_BIOS_SETTINGS 3
99 // The definition for TCG MOR
101 #define ACPI_FUNCTION_DSM_MEMORY_CLEAR_INTERFACE 1
102 #define ACPI_FUNCTION_PTS_CLEAR_MOR_BIT 2
105 // The return code for Memory Clear Interface Functions
107 #define MOR_REQUEST_SUCCESS 0
108 #define MOR_REQUEST_GENERAL_FAILURE 1
110 #endif // __TCG_SMM_H__