diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c b/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c new file mode 100644 index 0000000000..4741c0f304 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mbx8xx/ide/idecfg.c @@ -0,0 +1,51 @@ +/*===============================================================*\ +| Project: RTEMS MBX8xx 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 <bsp/mbx.h> +#include <mpc8xx.h> +#include <libchip/ide_ctrl.h> +#include <libchip/ide_ctrl_cfg.h> +#include <libchip/ide_ctrl_io.h> + + +/* + * The following table configures the IDE driver used in this BSP. + */ +extern ide_ctrl_fns_t mbx8xx_pcmciaide_ctrl_fns; + +/* IDE controllers Table */ +ide_controller_bsp_table_t IDE_Controller_Table[] = { + {"/dev/idepcmcia", + IDE_STD, /* PCMCIA Flash cards emulate standard IDE controller */ + &mbx8xx_pcmciaide_ctrl_fns, + NULL, /* no BSP dependent probe needed */ + FALSE, /* not (yet) initialized */ + PCMCIA_MEM_ADDR, /* access address for register set */ + 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]); + + |