diff options
author | Dan Handley <dan.handley@arm.com> | 2014-08-04 18:31:43 +0100 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-08-14 11:16:15 +0100 |
commit | 6d16ce0bfee7101a125fc5545ca12e19c3d47cd1 (patch) | |
tree | 68ed031855818bd54b86a8e6447ae9a5dabf1b94 /include | |
parent | cae3ef992e24b9ceb2ba1cd7d2ef0c6faaf29e0a (diff) |
Remove redundant io_init() function
The intent of io_init() was to allow platform ports to provide
a data object (io_plat_data_t) to the IO storage framework to
allocate into. The abstraction was incomplete because io_plat_data_t
uses a platform defined constant and the IO storage framework
internally allocates other arrays using platform defined constants.
This change simplifies the implementation by instantiating the
supporting objects in the IO storage framework itself. There is now
no need for the platform to call io_init().
The FVP port has been updated accordingly.
THIS CHANGE REQUIRES ALL PLATFORM PORTS THAT USE THE IO STORAGE
FRAMEWORK TO BE UDPATED.
Change-Id: Ib48ac334de9e538064734334c773f8b43df3a7dc
Diffstat (limited to 'include')
-rw-r--r-- | include/drivers/io_driver.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/drivers/io_driver.h b/include/drivers/io_driver.h index 867abbf..adb38b0 100644 --- a/include/drivers/io_driver.h +++ b/include/drivers/io_driver.h @@ -32,7 +32,6 @@ #define __IO_DRIVER_H__ #include <io_storage.h> -#include <platform_def.h> /* For MAX_IO_DEVICES */ #include <stdint.h> @@ -76,20 +75,9 @@ typedef struct io_dev_funcs { } io_dev_funcs_t; -/* IO platform data - used to track devices registered for a specific - * platform */ -typedef struct io_plat_data { - const io_dev_info_t *devices[MAX_IO_DEVICES]; - unsigned int dev_count; -} io_plat_data_t; - - /* Operations intended to be performed during platform initialisation */ -/* Initialise the IO layer */ -void io_init(io_plat_data_t *data); - -/* Register a device driver */ +/* Register an IO device */ int io_register_device(const io_dev_info_t *dev_info); #endif /* __IO_DRIVER_H__ */ |