diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-07-14 17:15:51 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-07-14 22:36:43 +0200 |
commit | fb5d5b16eef66d37dc20cdf0769c9049bf47d6be (patch) | |
tree | 8c60e976e66bcfffdcc0b66da176b5d6fe978d58 /src/include/boot | |
parent | 3ac3c4ebac8700ba99f2fdaf745d3e6aa1056dca (diff) |
cbtable: describe boot media
This allows finding the currently used CBFS (in case there are several), and
avoids the need to define flash size when building the payload.
Change-Id: I4b00159610077761c501507e136407e9ae08c73e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10867
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/include/boot')
-rw-r--r-- | src/include/boot/coreboot_tables.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h index c8d52517f9..3dddde5bbf 100644 --- a/src/include/boot/coreboot_tables.h +++ b/src/include/boot/coreboot_tables.h @@ -297,6 +297,17 @@ struct lb_spi_flash { uint32_t erase_cmd; }; +#define LB_TAG_BOOT_MEDIA_PARAMS 0x0030 +struct lb_boot_media_params { + uint32_t tag; + uint32_t size; + /* offsets are relative to start of boot media */ + uint64_t fmap_offset; + uint64_t cbfs_offset; + uint64_t cbfs_size; + uint64_t boot_media_size; +}; + #define LB_TAG_SERIALNO 0x002a #define MAX_SERIALNO_LENGTH 32 |