Chris Brand | c47d710 | 2020-02-20 11:12:18 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TFM_HAL_PS_H__ |
| 9 | #define __TFM_HAL_PS_H__ |
| 10 | |
Chris Brand | 8a6b5c5 | 2020-10-30 16:49:56 -0700 | [diff] [blame] | 11 | #include <stddef.h> |
| 12 | |
Chris Brand | c47d710 | 2020-02-20 11:12:18 -0800 | [diff] [blame] | 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /** |
| 18 | * \brief Retrieve the filesystem config for PS. |
| 19 | * |
| 20 | * Note that this function should ensure that the values returned do |
| 21 | * not result in a security compromise. |
| 22 | * |
| 23 | * \param [out] flash_area_addr Location of the block of flash to use for PS |
| 24 | * \param [out] flash_area_size Number of bytes of flash to use for PS |
| 25 | * |
| 26 | * \return void |
| 27 | * If an error is detected within this function, is should leave the |
| 28 | * content of the parameters unchanged. |
| 29 | */ |
Chris Brand | 8a6b5c5 | 2020-10-30 16:49:56 -0700 | [diff] [blame] | 30 | void tfm_hal_ps_fs_info(uint32_t *flash_area_addr, size_t *flash_area_size); |
Chris Brand | c47d710 | 2020-02-20 11:12:18 -0800 | [diff] [blame] | 31 | |
| 32 | #ifdef __cplusplus |
| 33 | } |
| 34 | #endif |
| 35 | |
| 36 | #endif /* __TFM_HAL_PS_H__ */ |