diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-07-22 21:32:03 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-08-13 16:07:52 +0200 |
commit | c6a8da7f93160b5c853619e203dcfc9d5ba4a553 (patch) | |
tree | 711d2a9fd1fb75ac6c94bfa4d69fae49a21cfe1b /util/cbfstool/cbfs.h | |
parent | 433fa5735c38c98629afd9be6dbf0934f380d370 (diff) | |
download | coreboot-c6a8da7f93160b5c853619e203dcfc9d5ba4a553.tar.xz |
cbfstool: add cbfs file attribute structure
This is a generic structure, not unlike the cbtables design, based on which we
can build specialized TLV data structures.
Change-Id: I98a75eef19f049ad67d46cdc2790949dcd155797
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10937
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/cbfs.h')
-rw-r--r-- | util/cbfstool/cbfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index f63b88156d..3f80a046f4 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -85,6 +85,16 @@ struct cbfs_file { _Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch"); +/* The common fields of extended cbfs file attributes. + Attributes are expected to start with tag/len, then append their + specific fields. */ +struct cbfs_file_attribute { + uint32_t tag; + /* len covers the whole structure, incl. tag and len */ + uint32_t len; + uint8_t data[0]; +} __PACKED; + struct cbfs_stage { uint32_t compression; uint64_t entry; |