Balint Dobszay | 943c6b5 | 2024-11-21 13:52:27 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 | /* |
| 3 | * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef TPM_CRB_PROVIDER_H |
| 7 | #define TPM_CRB_PROVIDER_H |
| 8 | |
| 9 | #include "components/rpc/common/endpoint/rpc_service_interface.h" |
| 10 | #include "service/common/provider/service_provider.h" |
| 11 | #include "service/tpm/backend/ms_tpm/ms_tpm_backend.h" |
| 12 | #include "compiler.h" |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | struct loc_and_crb_ctrl; |
| 19 | |
| 20 | struct tpm_crb_provider { |
| 21 | struct service_provider base_provider; |
| 22 | struct loc_and_crb_ctrl *loc_ptr[5]; |
| 23 | }; |
| 24 | |
| 25 | struct rpc_service_interface *tpm_provider_init(struct tpm_crb_provider *context, |
| 26 | uint8_t *ns_crb, size_t ns_crb_size, |
| 27 | uint8_t* s_crb, size_t s_crb_size); |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } /* extern "C" */ |
| 31 | #endif |
| 32 | |
| 33 | #endif /* TPM_CRB_PROVIDER_H */ |