blob: 18e8a316339f42fa88e28b6aade0b53ec55ea356 [file] [log] [blame]
Manish V Badarkhe7ef036f2021-06-20 20:35:25 +01001/*
2 * Copyright (c) 2021, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef FWU_H
8#define FWU_H
9
10#include <stdbool.h>
11
Sughosh Ganu9a480a32024-02-01 12:47:13 +053012#define FWU_BANK_STATE_ACCEPTED 0xFCU
13#define FWU_BANK_STATE_VALID 0xFEU
14#define FWU_BANK_STATE_INVALID 0xFFU
15
Sughosh Ganu3d1f4f62024-02-07 20:13:01 +053016#define INVALID_BOOT_IDX 0xFFFFFFFFU
17
Manish V Badarkhe7ef036f2021-06-20 20:35:25 +010018void fwu_init(void);
Sughosh Ganu84b2f7d2024-02-01 16:59:01 +053019uint32_t fwu_get_active_bank_state(void);
Sughosh Ganu3d1f4f62024-02-07 20:13:01 +053020uint32_t fwu_get_alternate_boot_bank(void);
Sughosh Ganua79559f2021-12-01 11:50:22 +053021const struct fwu_metadata *fwu_get_metadata(void);
Manish V Badarkhe7ef036f2021-06-20 20:35:25 +010022
23#endif /* FWU_H */