mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 18:34:42 +00:00
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>
This commit is contained in:
parent
56bf4f8630
commit
08b7bc3c3a
1 changed files with 11 additions and 0 deletions
|
@ -40,6 +40,17 @@ enum cbfs_filetype {
|
||||||
CBFS_TYPE_CMOS_LAYOUT = 0x01aa
|
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 {
|
struct cbfs_header {
|
||||||
u32 magic;
|
u32 magic;
|
||||||
u32 version;
|
u32 version;
|
||||||
|
|
Loading…
Add table
Reference in a new issue