diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2016-09-28 05:10:53 -0300 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-10 15:29:36 +1100 |
commit | bd4038dc52b469e471f8adff4a8cfc0d475ff49d (patch) | |
tree | 504a61b1dc6eefa8c4372e11f04e42c036d5fb23 /include | |
parent | a857bdb7703b13799dcc19578c419ab3bee9f3fd (diff) | |
download | skiboot-bd4038dc52b469e471f8adff4a8cfc0d475ff49d.zip skiboot-bd4038dc52b469e471f8adff4a8cfc0d475ff49d.tar.gz skiboot-bd4038dc52b469e471f8adff4a8cfc0d475ff49d.tar.bz2 |
core: add flash_subpart_info()
Currently, the CAPP lid has the TOC (4K) and one supartition (36K). For
secure boot we can either build one container for the TOC and another one for
the subpartition, or build one container for the whole CAPP partition.
We decided implement the second option.
The first option would require changes to the CAPP TOC layout in order to
correlate the TOC with the subpartitions. Besides that, the first option
also increases the boot time since we would need to verify and measure
the CAPP TOC.
This patch adds the flash_subpart_info function so the correct CAPP
subpartition can be selected also outside of the flash API.
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/skiboot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index 52a235b..2a9f5e2 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -223,7 +223,9 @@ extern int flash_start_preload_resource(enum resource_id id, uint32_t subid, extern int flash_resource_loaded(enum resource_id id, uint32_t idx); extern bool flash_reserve(void); extern void flash_release(void); - +extern int flash_subpart_info(void *part_header, uint32_t part_size, + uint32_t subid, uint32_t *offset, + uint32_t *size); /* NVRAM support */ extern void nvram_init(void); |