diff options
author | Tom Rini <trini@konsulko.com> | 2019-07-24 16:24:50 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-24 16:24:50 -0400 |
commit | f9b65c76b4828efbf8093c6b02bee5af0045b98b (patch) | |
tree | 1429cb8e3cdfea42b63778ddf06ad0b33fb7bcf0 /include/cbfs.h | |
parent | a9aa4c5700c68c070d63a391b51ea8d341b6e8a6 (diff) | |
parent | 44e02e39a91cd91aae5a28d90259d3a6996010bf (diff) |
Merge tag 'dm-pull-24jul19-take3' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
Minor driver-model fixes and tweaks
A few device-tree fixes
Binman support for extracting files from an image
Diffstat (limited to 'include/cbfs.h')
-rw-r--r-- | include/cbfs.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/cbfs.h b/include/cbfs.h index bd1bf75bbf..b8d1dabbf6 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -40,6 +40,17 @@ enum cbfs_filetype { CBFS_TYPE_CMOS_LAYOUT = 0x01aa }; +enum { + CBFS_HEADER_MAGIC = 0x4f524243, +}; + +/** + * struct cbfs_header - header at the start of a CBFS region + * + * All fields use big-endian format. + * + * @magic: Magic number (CBFS_HEADER_MAGIC) + */ struct cbfs_header { u32 magic; u32 version; @@ -54,7 +65,8 @@ struct cbfs_fileheader { u8 magic[8]; u32 len; u32 type; - u32 checksum; + /* offset to struct cbfs_file_attribute or 0 */ + u32 attributes_offset; u32 offset; } __packed; @@ -65,7 +77,7 @@ struct cbfs_cachenode { u32 data_length; char *name; u32 name_length; - u32 checksum; + u32 attributes_offset; } __packed; extern enum cbfs_result file_cbfs_result; |