2 The header file for TCG SMM driver.
4 Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <IndustryStandard/Acpi.h>
14 #include <IndustryStandard/UefiTcgPlatform.h>
16 #include <Guid/PhysicalPresenceData.h>
17 #include <Guid/MemoryOverwriteControl.h>
18 #include <Guid/TpmInstance.h>
20 #include <Protocol/SmmSwDispatch2.h>
21 #include <Protocol/AcpiTable.h>
22 #include <Protocol/SmmVariable.h>
24 #include <Library/BaseLib.h>
25 #include <Library/BaseMemoryLib.h>
26 #include <Library/DebugLib.h>
27 #include <Library/SmmServicesTableLib.h>
28 #include <Library/UefiDriverEntryPoint.h>
29 #include <Library/UefiBootServicesTableLib.h>
30 #include <Library/DxeServicesLib.h>
31 #include <Library/TpmMeasurementLib.h>
32 #include <Library/PcdLib.h>
33 #include <Library/TcgPpVendorLib.h>
43 } PHYSICAL_PRESENCE_NVS
;
53 PHYSICAL_PRESENCE_NVS PhysicalPresence
;
54 MEMORY_CLEAR_NVS MemoryClear
;
55 UINT32 PPRequestUserConfirm
;
70 // The definition for TCG physical presence ACPI function
72 #define ACPI_FUNCTION_GET_PHYSICAL_PRESENCE_INTERFACE_VERSION 1
73 #define ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS 2
74 #define ACPI_FUNCTION_GET_PENDING_REQUEST_BY_OS 3
75 #define ACPI_FUNCTION_GET_PLATFORM_ACTION_TO_TRANSITION_TO_BIOS 4
76 #define ACPI_FUNCTION_RETURN_REQUEST_RESPONSE_TO_OS 5
77 #define ACPI_FUNCTION_SUBMIT_PREFERRED_USER_LANGUAGE 6
78 #define ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS_2 7
79 #define ACPI_FUNCTION_GET_USER_CONFIRMATION_STATUS_FOR_REQUEST 8
82 // The return code for Return TPM Operation Response to OS Environment
84 #define PP_RETURN_TPM_OPERATION_RESPONSE_SUCCESS 0
85 #define PP_RETURN_TPM_OPERATION_RESPONSE_FAILURE 1
88 // The definition for TCG MOR
90 #define ACPI_FUNCTION_DSM_MEMORY_CLEAR_INTERFACE 1
91 #define ACPI_FUNCTION_PTS_CLEAR_MOR_BIT 2
94 // The return code for Memory Clear Interface Functions
96 #define MOR_REQUEST_SUCCESS 0
97 #define MOR_REQUEST_GENERAL_FAILURE 1
99 #endif // __TCG_SMM_H__