xref: /rk3399_ARM-atf/include/drivers/fwu/fwu.h (revision 11d05a77295885f27530cf07029ebc2b36f49918)
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 void fwu_init(void);
17 bool fwu_is_trial_run_state(void);
18 const struct fwu_metadata *fwu_get_metadata(void);
19 
20 #endif /* FWU_H */
21