diff options
author | James Morrissey <james.morrissey@arm.com> | 2014-02-10 17:04:32 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-02-17 18:51:43 +0000 |
commit | 9d72b4ea9c7d9cac386f70d8a6581d4b1a45d7b0 (patch) | |
tree | 603de7f9d7c6f74b09108a2539d1658f44e7bcfc /plat/fvp/platform.h | |
parent | f2f9bb5e712d3ec1d7dda5a5b52c8f8701a93d99 (diff) |
Implement load_image in terms of IO abstraction
The modified implementation uses the IO abstraction rather than
making direct semi-hosting calls. The semi-hosting driver is now
registered for the FVP platform during initialisation of each boot
stage where it is used. Additionally, the FVP platform includes a
straightforward implementation of 'plat_get_image_source' which
provides a generic means for the 'load_image' function to determine
how to access the image data.
Change-Id: Ia34457b471dbee990c7b3c79de7aee4ceea51aa6
Diffstat (limited to 'plat/fvp/platform.h')
-rw-r--r-- | plat/fvp/platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plat/fvp/platform.h b/plat/fvp/platform.h index 1b0a736e..ece882f1 100644 --- a/plat/fvp/platform.h +++ b/plat/fvp/platform.h @@ -35,6 +35,7 @@ #include <mmio.h> #include <psci.h> #include <bl_common.h> +#include "io_storage.h" /******************************************************************************* @@ -347,6 +348,11 @@ extern int plat_get_max_afflvl(void); extern unsigned int plat_get_aff_count(unsigned int, unsigned long); extern unsigned int plat_get_aff_state(unsigned int, unsigned long); +/* Declarations for plat_io_storage.c */ +extern void io_setup(void); +extern int plat_get_image_source(const char *image_name, + io_dev_handle *dev_handle, void **image_spec); + #endif /*__ASSEMBLY__*/ #endif /* __PLATFORM_H__ */ |