blob: 7b8a847a899abf8e8669fbd0328fb489bde413a9 [file] [log] [blame]
Chris Brandc47d7102020-02-20 11:12:18 -08001/*
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 Brand8a6b5c52020-10-30 16:49:56 -070011#include <stddef.h>
12
Chris Brandc47d7102020-02-20 11:12:18 -080013#ifdef __cplusplus
14extern "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 Brand8a6b5c52020-10-30 16:49:56 -070030void tfm_hal_ps_fs_info(uint32_t *flash_area_addr, size_t *flash_area_size);
Chris Brandc47d7102020-02-20 11:12:18 -080031
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* __TFM_HAL_PS_H__ */