1 | /*===============================================================*\ |
---|
2 | | Project: RTEMS MBX8xx IDE harddisc driver tables | |
---|
3 | +-----------------------------------------------------------------+ |
---|
4 | | File: idecfg.c | |
---|
5 | +-----------------------------------------------------------------+ |
---|
6 | | Copyright (c) 2003 IMD | |
---|
7 | | Ingenieurbuero fuer Microcomputertechnik Th. Doerfler | |
---|
8 | | <Thomas.Doerfler@imd-systems.de> | |
---|
9 | | all rights reserved | |
---|
10 | +-----------------------------------------------------------------+ |
---|
11 | | this file contains the table of functions for the BSP layer | |
---|
12 | | for IDE access below the libchip IDE harddisc driver | |
---|
13 | | | |
---|
14 | +-----------------------------------------------------------------+ |
---|
15 | | date history ID | |
---|
16 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
---|
17 | | 01.14.03 creation doe | |
---|
18 | \*===============================================================*/ |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | #include <bsp.h> |
---|
22 | #include <bsp/mbx.h> |
---|
23 | #include <mpc8xx.h> |
---|
24 | #include <libchip/ide_ctrl.h> |
---|
25 | #include <libchip/ide_ctrl_cfg.h> |
---|
26 | #include <libchip/ide_ctrl_io.h> |
---|
27 | |
---|
28 | /* |
---|
29 | * The following table configures the IDE driver used in this BSP. |
---|
30 | */ |
---|
31 | extern ide_ctrl_fns_t mbx8xx_pcmciaide_ctrl_fns; |
---|
32 | |
---|
33 | /* IDE controllers Table */ |
---|
34 | ide_controller_bsp_table_t IDE_Controller_Table[] = { |
---|
35 | {"/dev/idepcmcia", |
---|
36 | IDE_STD, /* PCMCIA Flash cards emulate standard IDE controller */ |
---|
37 | &mbx8xx_pcmciaide_ctrl_fns, |
---|
38 | NULL, /* no BSP dependent probe needed */ |
---|
39 | FALSE, /* not (yet) initialized */ |
---|
40 | PCMCIA_MEM_ADDR, /* access address for register set */ |
---|
41 | FALSE,0, /* not (yet) interrupt driven */ |
---|
42 | NULL |
---|
43 | } |
---|
44 | }; |
---|
45 | |
---|
46 | /* Number of rows in IDE_Controller_Table */ |
---|
47 | unsigned long IDE_Controller_Count = |
---|
48 | sizeof(IDE_Controller_Table)/sizeof(IDE_Controller_Table[0]); |
---|