blob: 74faf34e21e67af016c5802d11d34c5b8ddf16e7 [file] [log] [blame]
Balint Dobszay943c6b52024-11-21 13:52:27 +01001/* 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
15extern "C" {
16#endif
17
18struct loc_and_crb_ctrl;
19
20struct tpm_crb_provider {
21 struct service_provider base_provider;
22 struct loc_and_crb_ctrl *loc_ptr[5];
23};
24
25struct 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 */