aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 15:47:47 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 15:47:47 +1100
commit26895ba411d5d4d86cbb377862cd2e43fcc07cf8 (patch)
tree6d867fd1601da4afe3d41d6a3d65e147072fd1c5 /include
parent1408f6f9baa684f280dfb2c4a66daa4d5db996b2 (diff)
downloadskiboot-26895ba411d5d4d86cbb377862cd2e43fcc07cf8.zip
skiboot-26895ba411d5d4d86cbb377862cd2e43fcc07cf8.tar.gz
skiboot-26895ba411d5d4d86cbb377862cd2e43fcc07cf8.tar.bz2
core/flash: Move subpartition locating logic out into own file, add tests
A unit test for parsing sub-partition info is useful for a number of reasons, one of which showed its head during development of secure/trusted boot. This patch just moves things around, there's no functional changes. 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 2ef7677..30149a1 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -225,10 +225,11 @@ 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);
+#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,
uint32_t subid, uint32_t *offset,
uint32_t *size);
-
/* NVRAM support */
extern void nvram_init(void);
extern void nvram_read_complete(bool success);