1 /* 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 12 #define FWU_BANK_STATE_ACCEPTED 0xFCU 13 #define FWU_BANK_STATE_VALID 0xFEU 14 #define FWU_BANK_STATE_INVALID 0xFFU 15 16 #define INVALID_BOOT_IDX 0xFFFFFFFFU 17 18 void fwu_init(void); 19 uint32_t fwu_get_active_bank_state(void); 20 uint32_t fwu_get_alternate_boot_bank(void); 21 const struct fwu_metadata *fwu_get_metadata(void); 22 23 #endif /* FWU_H */ 24