Manish V Badarkhe | 0ec3ac6 | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 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 | |
Sughosh Ganu | a89d58b | 2024-02-01 12:47:13 +0530 | [diff] [blame] | 12 | #define FWU_BANK_STATE_ACCEPTED 0xFCU |
| 13 | #define FWU_BANK_STATE_VALID 0xFEU |
| 14 | #define FWU_BANK_STATE_INVALID 0xFFU |
| 15 | |
Sughosh Ganu | 26aab79 | 2024-02-07 20:13:01 +0530 | [diff] [blame] | 16 | #define INVALID_BOOT_IDX 0xFFFFFFFFU |
| 17 | |
Manish V Badarkhe | 0ec3ac6 | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 18 | void fwu_init(void); |
Sughosh Ganu | 56724d0 | 2024-02-01 16:59:01 +0530 | [diff] [blame] | 19 | uint32_t fwu_get_active_bank_state(void); |
Sughosh Ganu | 26aab79 | 2024-02-07 20:13:01 +0530 | [diff] [blame] | 20 | uint32_t fwu_get_alternate_boot_bank(void); |
Sughosh Ganu | 9adce87 | 2021-12-01 11:50:22 +0530 | [diff] [blame] | 21 | const struct fwu_metadata *fwu_get_metadata(void); |
Manish V Badarkhe | 0ec3ac6 | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 22 | |
| 23 | #endif /* FWU_H */ |