Mbed OS Reference
Loading...
Searching...
No Matches
platform_srv_impl.h
1/* Copyright (c) 2019-2020 Arm Limited
2 *
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef __PLATFROM_SRV_IMPL_H__
19#define __PLATFROM_SRV_IMPL_H__
20
21#include "psa/client.h"
22#include "psa/lifecycle.h"
23#include "mbed_toolchain.h"
24#include "tfm_platform_api.h"
25
26psa_status_t psa_platfrom_lifecycle_get_impl(uint32_t *lc_state);
27psa_status_t psa_platfrom_lifecycle_change_request_impl(uint32_t lc_state);
28MBED_NORETURN void mbed_psa_system_reset_impl(void);
29
30/*!
31 * \brief Performs a platform-specific service
32 *
33 * \param[in] request Request identifier (valid values vary
34 * based on the platform)
35 * \param[in] in_vec Input buffer to the requested service (or NULL)
36 * \param[out] out_vec Output buffer to the requested service (or NULL)
37 *
38 * \return Returns values as specified by the \ref tfm_platform_err_t
39 */
40enum tfm_platform_err_t tfm_platform_hal_ioctl(tfm_platform_ioctl_req_t request,
41 psa_invec *in_vec,
42 psa_outvec *out_vec);
43#endif // __PLATFROM_SRV_IMPL_H__
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:55
#define MBED_NORETURN
MBED_NORETURN Declare a function that will never return.
This file describes the PSA RoT Lifecycle API.