blob: 5df18381a07de9edef15c7d1999740834787cf72 [file] [log] [blame]
julhal012c18fbf2021-02-01 08:29:28 +00001/*
2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/**
8 * A config store that implements the common config interface that
9 * saves configuration data in ram. This may be used in environments
10 * that are configured at run-time e.g. from device tree. The
11 * config_ramstore is a singleton.
12 */
13#ifndef CONFIG_RAMSTORE_H
14#define CONFIG_RAMSTORE_H
15
16#include <stddef.h>
17#include <platform/interface/device_region.h>
18#include <config/interface/platform_config.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/**
25 * \brief Initializes the singleton store
26 *
27 */
28void config_ramstore_init(void);
29
30/**
31 * \brief Clean-up the config_ramstore after use
32 */
33void config_ramstore_deinit(void);
34
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* CONFIG_RAMSTORE_H */