[U-Boot] [PATCH v2 22/44] dm: ide: Separate the non-command code into its own file
Simon Glass
sjg at chromium.org
Sat May 14 21:35:47 CEST 2016
On 1 May 2016 at 11:36, Simon Glass <sjg at chromium.org> wrote:
>
> At present the IDE command code includes both the command-processing code
> and the core IDE functions and data structures.
>
> Separate the latter into its own file, adding functions as needed to avoid
> the command code accessing data structures directly.
>
> With this commit:
> - Most CONFIG option are referenced from the non-command code
> - The concept of a 'current IDE device' is confined to the command code
>
> This will make it easier to convert this code to driver model.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
> cmd/ide.c | 1297 +------------------------------------------------------
> common/Makefile | 1 +
> common/ide.c | 1206 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 1228 insertions(+), 1276 deletions(-)
> create mode 100644 common/ide.c
Applied to u-boot-dm.
More information about the U-Boot
mailing list