diff options
author | Chris Johns <chrisj@rtems.org> | 2009-05-30 04:49:26 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-05-30 04:49:26 +0000 |
commit | 57be444e596c11981ee4cefb2d3922e46d6d0c85 (patch) | |
tree | 55f4f8551912b9de3aec0ec0ca588785963e0b38 /c/src/lib/libbsp/i386/pc386/ide/idecfg.c | |
parent | 2009-05-30 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-57be444e596c11981ee4cefb2d3922e46d6d0c85.tar.bz2 |
2009-05-30 Chris Johns <chrisj@rtems.org>
* ide/ide.c: Add initialisation code to reset the IDE devices and
to probe them and display their model numbers. Also add code to
display the probing to aid bring up new hardware.
* ide/idecfg.c: Add the --ide-show command to show probing type
accessing when finding devices on the configured IDE buses.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/ide/idecfg.c')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/ide/idecfg.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c index 8569d40eff..35797d9ee4 100644 --- a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c +++ b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c @@ -23,6 +23,8 @@ #include <libchip/ide_ctrl_cfg.h> #include <libchip/ide_ctrl_io.h> +extern bool pc386_ide_show; + /* * The following table configures the functions used for IDE drivers * in this BSP. @@ -78,7 +80,7 @@ void bsp_ide_cmdline_init(void) /* * Can have: - * --ide=1,2 + * --ide=0,1 */ ide = bsp_cmdline_arg ("--ide="); @@ -96,12 +98,13 @@ void bsp_ide_cmdline_init(void) { switch (ide[i]) { - case '1': + case '0': ide1 = true; break; - case '2': + case '1': ide2 = true; break; + case '2': case '3': case '4': case '5': @@ -112,7 +115,7 @@ void bsp_ide_cmdline_init(void) case ',': break; default: - break; + break; } } } @@ -124,4 +127,13 @@ void bsp_ide_cmdline_init(void) IDE_Controller_Count++; if (ide2) IDE_Controller_Count++; + + /* + * Allow the user to get the initialise to print probing + * type information. + */ + ide = bsp_cmdline_arg ("--ide-show"); + + if (ide) + pc386_ide_show = true; } |