1 /* 2 * Copyright (c) 2020, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 #ifndef __SERVICE_API_H__ 8 #define __SERVICE_API_H__ 9 10 #include <stdint.h> 11 #include "tfm_boot_status.h" 12 #include "psa/error.h" 13 14 /** 15 * \brief Retrieve secure partition related data from shared memory area, which 16 * stores shared data between bootloader and runtime firmware. 17 * 18 * \param[in] major_type Major type. 19 * \param[out] boot_data Pointer to boot data. 20 * \param[in] len The length of the boot data. 21 */ 22 psa_status_t tfm_core_get_boot_data(uint8_t major_type, 23 struct tfm_boot_data *boot_data, 24 uint32_t len); 25 26 #endif /* __SERVICE_API_H__ */ 27