blob: 28913a43f3125f57da9e60f4ac1a423d400afeee [file] [log] [blame]
Louis Mayencourtbadcac82019-10-24 15:18:46 +01001/*
2 * Copyright (c) 2019-2020, ARM Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef ARM_FCONF_GETTER
8#define ARM_FCONF_GETTER
9
10#include <lib/fconf/fconf.h>
11
12/* ARM io policies */
13#define arm__io_policies_getter(id) &policies[id]
14
15struct plat_io_policy {
16 uintptr_t *dev_handle;
17 uintptr_t image_spec;
18 int (*check)(const uintptr_t spec);
19};
20
21extern struct plat_io_policy policies[];
22int fconf_populate_arm_io_policies(uintptr_t config);
23
24#endif /* ARM_FCONF_GETTER */