diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 13:18:21 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-23 20:27:57 -0700 |
commit | 08b7bc3c3afd20b9fc62dd356c0e961e6dba5f26 (patch) | |
tree | 7ee5f66344c6ca489d514007d4ced888ae577daf /include | |
parent | 56bf4f8630758a9e7851cd8a088f35d490b51688 (diff) | |
download | u-boot-08b7bc3c3afd20b9fc62dd356c0e961e6dba5f26.tar.gz u-boot-08b7bc3c3afd20b9fc62dd356c0e961e6dba5f26.tar.xz u-boot-08b7bc3c3afd20b9fc62dd356c0e961e6dba5f26.zip |
cbfs: Add an enum and comment for the magic number
This field is not commented in the original file. Add a comment.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/cbfs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cbfs.h b/include/cbfs.h index bd1bf75bbf..f2ede25f51 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; |