From: Simon Glass Date: Mon, 8 Jul 2019 13:18:21 -0600 Subject: [U-Boot] [PATCH v2 02/37] cbfs: Add an enum and comment for the magic number In-Reply-To: <20190708191856.138863-1-sjg@chromium.org> References: <20190708191856.138863-1-sjg@chromium.org> Message-ID: <20190708191856.138863-3-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This field is not commented in the original file. Add a comment. Signed-off-by: Simon Glass --- Changes in v2: None include/cbfs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/cbfs.h b/include/cbfs.h index bd1bf75bbfc..f2ede25f517 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; -- 2.22.0.410.gd8fdbe21b5-goog