Louis Mayencourt | 6d2b573 | 2019-12-17 13:17:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef FCONF_DYN_CFG_GETTER_H |
| 8 | #define FCONF_DYN_CFG_GETTER_H |
| 9 | |
| 10 | #include <lib/fconf/fconf.h> |
| 11 | |
| 12 | /* Dynamic configuration related getter */ |
| 13 | #define dyn_cfg__dtb_getter(id) dyn_cfg_dtb_info_getter(id) |
| 14 | |
| 15 | struct dyn_cfg_dtb_info_t { |
| 16 | uintptr_t config_addr; |
Manish V Badarkhe | a8be3bb | 2020-07-15 04:27:57 +0100 | [diff] [blame] | 17 | uint32_t config_max_size; |
Louis Mayencourt | 6d2b573 | 2019-12-17 13:17:25 +0000 | [diff] [blame] | 18 | unsigned int config_id; |
| 19 | }; |
| 20 | |
| 21 | struct dyn_cfg_dtb_info_t *dyn_cfg_dtb_info_getter(unsigned int config_id); |
| 22 | int fconf_populate_dtb_registry(uintptr_t config); |
| 23 | |
Manish V Badarkhe | 6a91e59 | 2020-07-15 05:08:37 +0100 | [diff] [blame] | 24 | /* Set config information in global DTB array */ |
| 25 | void set_config_info(uintptr_t config_addr, uint32_t config_max_size, |
| 26 | unsigned int config_id); |
Manish V Badarkhe | 99a8e14 | 2020-06-11 22:32:11 +0100 | [diff] [blame] | 27 | |
Louis Mayencourt | 6d2b573 | 2019-12-17 13:17:25 +0000 | [diff] [blame] | 28 | #endif /* FCONF_DYN_CFG_GETTER_H */ |