microsoft/mu_feature_ffa
Publicmirrored from https://github.com/microsoft/mu_feature_ffaAvailable
FfaFeaturePkg/Include/Library/TpmServiceLib.h
48lines · modeblame
dc263d2cRaymond-MS1 years ago | 1 | /** @file |
| 2 | Definitions for the TPM Service | |
| 3 | | |
| 4 | Copyright (c), Microsoft Corporation. | |
| 5 | SPDX-License-Identifier: BSD-2-Clause-Patent | |
| 6 | | |
| 7 | **/ | |
| 8 | | |
| 9 | #ifndef TPM_SERVICE_LIB_H_ | |
| 10 | #define TPM_SERVICE_LIB_H_ | |
| 11 | | |
| 12 | #include <Base.h> | |
| 13 | #include <IndustryStandard/ArmFfaPartInfo.h> | |
| 14 | #include <Library/ArmSvcLib.h> | |
| 15 | #include <Library/ArmFfaLibEx.h> | |
| 16 | | |
| 17 | /** | |
| 18 | Initializes the TPM service | |
| 19 | | |
| 20 | **/ | |
| 21 | VOID | |
| 22 | TpmServiceInit ( | |
| 23 | VOID | |
| 24 | ); | |
| 25 | | |
| 26 | /** | |
f44455e7Raymond-MS1 years ago | 27 | De-initializes the TPM service |
dc263d2cRaymond-MS1 years ago | 28 | |
| 29 | **/ | |
| 30 | VOID | |
| 31 | TpmServiceDeInit ( | |
| 32 | VOID | |
| 33 | ); | |
| 34 | | |
| 35 | /** | |
| 36 | Handler for TPM service commands | |
| 37 | | |
| 38 | @param Request The incoming message | |
| 39 | @param Response The outgoing message | |
| 40 | | |
| 41 | **/ | |
| 42 | VOID | |
| 43 | TpmServiceHandle ( | |
| 44 | DIRECT_MSG_ARGS_EX *Request, | |
| 45 | DIRECT_MSG_ARGS_EX *Response | |
| 46 | ); | |
| 47 | | |
| 48 | #endif /* TPM_SERVICE_LIB_H_ */ |