mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-25 07:39:44 +00:00
firmware: Define a macro for version of struct fw_dynamic_info
Avoid using a magic number, instead use a macro for the version of struct fw_dynamic_info. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
parent
dcb756b01a
commit
b88b3661d4
2 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,8 @@
|
|||
#define FW_DYNAMIC_INFO_MAGIC_VALUE 0x4942534f
|
||||
|
||||
/** Maximum supported info version */
|
||||
#define FW_DYNAMIC_INFO_VERSION_MAX 0x2
|
||||
#define FW_DYNAMIC_INFO_VERSION_2 0x2
|
||||
#define FW_DYNAMIC_INFO_VERSION_MAX FW_DYNAMIC_INFO_VERSION_2
|
||||
|
||||
/** Possible next mode values */
|
||||
#define FW_DYNAMIC_INFO_NEXT_MODE_U 0x0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue