/** @file\r
TCG Physical Presence definition.\r
\r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
//\r
// TCG PP definition for physical presence ACPI function\r
//\r
-#define TCG_ACPI_FUNCTION_GET_PHYSICAL_PRESENCE_INTERFACE_VERSION 1\r
-#define TCG_ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS 2\r
-#define TCG_ACPI_FUNCTION_GET_PENDING_REQUEST_BY_OS 3\r
-#define TCG_ACPI_FUNCTION_GET_PLATFORM_ACTION_TO_TRANSITION_TO_BIOS 4\r
-#define TCG_ACPI_FUNCTION_RETURN_REQUEST_RESPONSE_TO_OS 5\r
-#define TCG_ACPI_FUNCTION_SUBMIT_PREFERRED_USER_LANGUAGE 6\r
-#define TCG_ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS_2 7\r
-#define TCG_ACPI_FUNCTION_GET_USER_CONFIRMATION_STATUS_FOR_REQUEST 8\r
+#define TCG_ACPI_FUNCTION_GET_PHYSICAL_PRESENCE_INTERFACE_VERSION 1\r
+#define TCG_ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS 2\r
+#define TCG_ACPI_FUNCTION_GET_PENDING_REQUEST_BY_OS 3\r
+#define TCG_ACPI_FUNCTION_GET_PLATFORM_ACTION_TO_TRANSITION_TO_BIOS 4\r
+#define TCG_ACPI_FUNCTION_RETURN_REQUEST_RESPONSE_TO_OS 5\r
+#define TCG_ACPI_FUNCTION_SUBMIT_PREFERRED_USER_LANGUAGE 6\r
+#define TCG_ACPI_FUNCTION_SUBMIT_REQUEST_TO_BIOS_2 7\r
+#define TCG_ACPI_FUNCTION_GET_USER_CONFIRMATION_STATUS_FOR_REQUEST 8\r
\r
//\r
// TCG PP definition for TPM Operation Response to OS Environment\r
//\r
-#define TCG_PP_OPERATION_RESPONSE_SUCCESS 0x0\r
-#define TCG_PP_OPERATION_RESPONSE_USER_ABORT 0xFFFFFFF0\r
-#define TCG_PP_OPERATION_RESPONSE_BIOS_FAILURE 0xFFFFFFF1\r
+#define TCG_PP_OPERATION_RESPONSE_SUCCESS 0x0\r
+#define TCG_PP_OPERATION_RESPONSE_USER_ABORT 0xFFFFFFF0\r
+#define TCG_PP_OPERATION_RESPONSE_BIOS_FAILURE 0xFFFFFFF1\r
\r
//\r
// TCG PP definition of return code for Return TPM Operation Response to OS Environment\r
//\r
-#define TCG_PP_RETURN_TPM_OPERATION_RESPONSE_SUCCESS 0\r
-#define TCG_PP_RETURN_TPM_OPERATION_RESPONSE_FAILURE 1\r
+#define TCG_PP_RETURN_TPM_OPERATION_RESPONSE_SUCCESS 0\r
+#define TCG_PP_RETURN_TPM_OPERATION_RESPONSE_FAILURE 1\r
\r
//\r
// TCG PP definition of return code for Submit TPM Request to Pre-OS Environment\r
// and Submit TPM Request to Pre-OS Environment 2\r
//\r
-#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS 0\r
-#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED 1\r
-#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_GENERAL_FAILURE 2\r
-#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_BLOCKED_BY_BIOS_SETTINGS 3\r
+#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_SUCCESS 0\r
+#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED 1\r
+#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_GENERAL_FAILURE 2\r
+#define TCG_PP_SUBMIT_REQUEST_TO_PREOS_BLOCKED_BY_BIOS_SETTINGS 3\r
\r
//\r
// TCG PP definition of return code for Get User Confirmation Status for Operation\r
//\r
-#define TCG_PP_GET_USER_CONFIRMATION_NOT_IMPLEMENTED 0\r
-#define TCG_PP_GET_USER_CONFIRMATION_BIOS_ONLY 1\r
-#define TCG_PP_GET_USER_CONFIRMATION_BLOCKED_BY_BIOS_CONFIGURATION 2\r
-#define TCG_PP_GET_USER_CONFIRMATION_ALLOWED_AND_PPUSER_REQUIRED 3\r
-#define TCG_PP_GET_USER_CONFIRMATION_ALLOWED_AND_PPUSER_NOT_REQUIRED 4\r
+#define TCG_PP_GET_USER_CONFIRMATION_NOT_IMPLEMENTED 0\r
+#define TCG_PP_GET_USER_CONFIRMATION_BIOS_ONLY 1\r
+#define TCG_PP_GET_USER_CONFIRMATION_BLOCKED_BY_BIOS_CONFIGURATION 2\r
+#define TCG_PP_GET_USER_CONFIRMATION_ALLOWED_AND_PPUSER_REQUIRED 3\r
+#define TCG_PP_GET_USER_CONFIRMATION_ALLOWED_AND_PPUSER_NOT_REQUIRED 4\r
\r
//\r
// TCG PP definition of physical presence operation actions for TPM12\r
//\r
-#define TCG_PHYSICAL_PRESENCE_NO_ACTION 0\r
-#define TCG_PHYSICAL_PRESENCE_ENABLE 1\r
-#define TCG_PHYSICAL_PRESENCE_DISABLE 2\r
-#define TCG_PHYSICAL_PRESENCE_ACTIVATE 3\r
-#define TCG_PHYSICAL_PRESENCE_DEACTIVATE 4 \r
-#define TCG_PHYSICAL_PRESENCE_CLEAR 5\r
-#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE 6\r
-#define TCG_PHYSICAL_PRESENCE_DEACTIVATE_DISABLE 7\r
-#define TCG_PHYSICAL_PRESENCE_SET_OWNER_INSTALL_TRUE 8\r
-#define TCG_PHYSICAL_PRESENCE_SET_OWNER_INSTALL_FALSE 9\r
-#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_OWNER_TRUE 10\r
-#define TCG_PHYSICAL_PRESENCE_DEACTIVATE_DISABLE_OWNER_FALSE 11\r
-#define TCG_PHYSICAL_PRESENCE_DEFERRED_PP_UNOWNERED_FIELD_UPGRADE 12\r
-#define TCG_PHYSICAL_PRESENCE_SET_OPERATOR_AUTH 13\r
-#define TCG_PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE 14\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_FALSE 15\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE 16\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_FALSE 19\r
-#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_TRUE 20\r
-#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR 21\r
-#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE 22\r
+#define TCG_PHYSICAL_PRESENCE_NO_ACTION 0\r
+#define TCG_PHYSICAL_PRESENCE_ENABLE 1\r
+#define TCG_PHYSICAL_PRESENCE_DISABLE 2\r
+#define TCG_PHYSICAL_PRESENCE_ACTIVATE 3\r
+#define TCG_PHYSICAL_PRESENCE_DEACTIVATE 4\r
+#define TCG_PHYSICAL_PRESENCE_CLEAR 5\r
+#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE 6\r
+#define TCG_PHYSICAL_PRESENCE_DEACTIVATE_DISABLE 7\r
+#define TCG_PHYSICAL_PRESENCE_SET_OWNER_INSTALL_TRUE 8\r
+#define TCG_PHYSICAL_PRESENCE_SET_OWNER_INSTALL_FALSE 9\r
+#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_OWNER_TRUE 10\r
+#define TCG_PHYSICAL_PRESENCE_DEACTIVATE_DISABLE_OWNER_FALSE 11\r
+#define TCG_PHYSICAL_PRESENCE_DEFERRED_PP_UNOWNERED_FIELD_UPGRADE 12\r
+#define TCG_PHYSICAL_PRESENCE_SET_OPERATOR_AUTH 13\r
+#define TCG_PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE 14\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_FALSE 15\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE 16\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_FALSE 19\r
+#define TCG_PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_TRUE 20\r
+#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR 21\r
+#define TCG_PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE 22\r
\r
-#define TCG_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPERATION 128\r
+#define TCG_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPERATION 128\r
\r
//\r
// TCG PP definition of physical presence operation actions for TPM2\r
//\r
-#define TCG2_PHYSICAL_PRESENCE_NO_ACTION 0\r
-#define TCG2_PHYSICAL_PRESENCE_ENABLE 1\r
-#define TCG2_PHYSICAL_PRESENCE_DISABLE 2\r
-#define TCG2_PHYSICAL_PRESENCE_CLEAR 5\r
-#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR 14\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CLEAR_TRUE 17\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CLEAR_FALSE 18\r
-#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR_2 21\r
-#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR_3 22\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PCR_BANKS 23\r
-#define TCG2_PHYSICAL_PRESENCE_CHANGE_EPS 24\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_PCRS_FALSE 25\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_PCRS_TRUE 26\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_ON_FALSE 27\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_ON_TRUE 28\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_OFF_FALSE 29\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_OFF_TRUE 30\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_EPS_FALSE 31\r
-#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_EPS_TRUE 32\r
-#define TCG2_PHYSICAL_PRESENCE_LOG_ALL_DIGESTS 33\r
-#define TCG2_PHYSICAL_PRESENCE_DISABLE_ENDORSEMENT_ENABLE_STORAGE_HIERARCHY 34\r
-#define TCG2_PHYSICAL_PRESENCE_NO_ACTION_MAX 34\r
+#define TCG2_PHYSICAL_PRESENCE_NO_ACTION 0\r
+#define TCG2_PHYSICAL_PRESENCE_ENABLE 1\r
+#define TCG2_PHYSICAL_PRESENCE_DISABLE 2\r
+#define TCG2_PHYSICAL_PRESENCE_CLEAR 5\r
+#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR 14\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CLEAR_TRUE 17\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CLEAR_FALSE 18\r
+#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR_2 21\r
+#define TCG2_PHYSICAL_PRESENCE_ENABLE_CLEAR_3 22\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PCR_BANKS 23\r
+#define TCG2_PHYSICAL_PRESENCE_CHANGE_EPS 24\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_PCRS_FALSE 25\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_PCRS_TRUE 26\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_ON_FALSE 27\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_ON_TRUE 28\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_OFF_FALSE 29\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_TURN_OFF_TRUE 30\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_EPS_FALSE 31\r
+#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_CHANGE_EPS_TRUE 32\r
+#define TCG2_PHYSICAL_PRESENCE_LOG_ALL_DIGESTS 33\r
+#define TCG2_PHYSICAL_PRESENCE_DISABLE_ENDORSEMENT_ENABLE_STORAGE_HIERARCHY 34\r
+#define TCG2_PHYSICAL_PRESENCE_NO_ACTION_MAX 34\r
\r
//\r
// TCG PP definition of physical presence operation actions for storage management\r
#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_DISABLE_BLOCK_SID_FUNC_TRUE 100\r
#define TCG2_PHYSICAL_PRESENCE_SET_PP_REQUIRED_FOR_DISABLE_BLOCK_SID_FUNC_FALSE 101\r
\r
-#define TCG2_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPERATION 128\r
+#define TCG2_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPERATION 128\r
\r
#endif\r