diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-25 18:22:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-25 18:22:04 +0000 |
commit | 58f7c3490496f2a0ec38e618a146d660c0bc5a9f (patch) | |
tree | 14d2babbcc03b0dd7f4ffe59642e6d74896266df /c/src/lib/libbsp/i386/pc386/ide/idecfg.c | |
parent | 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de> (diff) | |
download | rtems-58f7c3490496f2a0ec38e618a146d660c0bc5a9f.tar.bz2 |
2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 368/filesystems
* startup/ldsegs.S: Increase alignment.
* Makefile.am, configure.ac, include/bsp.h, wrapup/Makefile.am:
Added IDE supporting infrastructure.
* ide/Makefile.am, ide/ide.c, ide/idecfg.c: New files. Added
BSP support for libchip standard ide driver.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/ide/idecfg.c')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/ide/idecfg.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c new file mode 100644 index 0000000000..e232a68046 --- /dev/null +++ b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c @@ -0,0 +1,54 @@ +/*===============================================================*\ +| Project: RTEMS PC386 IDE harddisc driver tables | ++-----------------------------------------------------------------+ +| File: idecfg.c | ++-----------------------------------------------------------------+ +| Copyright (c) 2003 IMD | +| Ingenieurbuero fuer Microcomputertechnik Th. Doerfler | +| <Thomas.Doerfler@imd-systems.de> | +| all rights reserved | ++-----------------------------------------------------------------+ +| this file contains the table of functions for the BSP layer | +| for IDE access below the libchip IDE harddisc driver | +| | ++-----------------------------------------------------------------+ +| date history ID | +| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | +| 01.14.03 creation doe | +\*===============================================================*/ + +#include <rtems.h> +#include <bsp.h> +#include <libchip/ide_ctrl.h> +#include <libchip/ide_ctrl_cfg.h> +#include <libchip/ide_ctrl_io.h> + + +/* + * The following table configures the functions used for IDE drivers + * in this BSP. + */ + +/* + * The following table configures the IDE drivers used in this BSP. + */ +extern ide_ctrl_fns_t pc386_ide_ctrl_fns; + +/* IDE controllers Table */ +ide_controller_bsp_table_t IDE_Controller_Table[] = { + {"/dev/ide", + IDE_STD, /* standard IDE controller */ + &pc386_ide_ctrl_fns, + NULL, /* probe for IDE standard registers */ + FALSE, /* not (yet) initialized */ + 0x1f0, /* base I/O address for first IDE controller */ + FALSE,0, /* not (yet) interrupt driven */ + NULL + } +}; + +/* Number of rows in IDE_Controller_Table */ +unsigned long IDE_Controller_Count = + sizeof(IDE_Controller_Table)/sizeof(IDE_Controller_Table[0]); + + |