aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 15:54:58 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 16:43:39 +1100
commit8652ced003f7977e1126149b8011c184b88fe24e (patch)
tree5c73a04fb13b109d9f730507d86cb913ba90715d /include
parent26895ba411d5d4d86cbb377862cd2e43fcc07cf8 (diff)
downloadskiboot-8652ced003f7977e1126149b8011c184b88fe24e.zip
skiboot-8652ced003f7977e1126149b8011c184b88fe24e.tar.gz
skiboot-8652ced003f7977e1126149b8011c184b88fe24e.tar.bz2
core/flash-subpartition: compute partition size from subpartition struct
From the subpartition structure, we have the ability to compute the full partition size. Do that. This lets us only read the amount of a subpartition that is valid and needed to be read, rather than having to read the entire thing. We continue the current behaviour of loading flash partitions though. Based-on-patch-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 30149a1..75c5207 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -227,7 +227,8 @@ extern bool flash_reserve(void);
extern void flash_release(void);
#define FLASH_SUBPART_ALIGNMENT 0x1000
#define FLASH_SUBPART_HEADER_SIZE FLASH_SUBPART_ALIGNMENT
-extern int flash_subpart_info(void *part_header, uint32_t part_size,
+extern int flash_subpart_info(void *part_header, uint32_t header_len,
+ uint32_t part_size, uint32_t *part_actual,
uint32_t subid, uint32_t *offset,
uint32_t *size);
/* NVRAM support */