From a8513d3f3e8db11d6efcd73dbbc384168688ddd0 Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Thu, 12 Feb 2015 12:57:53 +1100 Subject: core: Add subid to load_resource() This adds a subid to load_resource() so that sub-partitions can be accessed inside a PNOR partition. These sub-partitions follow the format used by the hostboot SBE image. The subid will match on the EC field of the SBE table of contents. If it's found, only that sub-partition is returned to the caller. Current partitions (kernel and ramfs) don't support sub-partitions. If caller tries to access a sub-partition within these, we fail the call. Signed-off-by: Michael Neuling Signed-off-by: Stewart Smith --- include/fsp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/fsp.h') diff --git a/include/fsp.h b/include/fsp.h index 9ef7d9f2..b65ef98a 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -709,7 +709,8 @@ extern int fsp_fetch_data(uint8_t flags, uint16_t id, uint32_t sub_id, extern int fsp_fetch_data_queue(uint8_t flags, uint16_t id, uint32_t sub_id, uint32_t offset, void *buffer, size_t *length, void (*comp)(struct fsp_msg *msg)) __warn_unused_result; -extern bool fsp_load_resource(enum resource_id id, void *buf, size_t *size); +extern bool fsp_load_resource(enum resource_id id, uint32_t subid, + void *buf, size_t *size); /* FSP console stuff */ extern void fsp_console_preinit(void); -- cgit v1.2.1