1 | /*===============================================================*\ |
---|
2 | | Project: RTEMS PC386 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 <libchip/ide_ctrl.h> |
---|
23 | #include <libchip/ide_ctrl_cfg.h> |
---|
24 | #include <libchip/ide_ctrl_io.h> |
---|
25 | |
---|
26 | |
---|
27 | /* |
---|
28 | * The following table configures the functions used for IDE drivers |
---|
29 | * in this BSP. |
---|
30 | */ |
---|
31 | |
---|
32 | /* |
---|
33 | * The following table configures the IDE drivers used in this BSP. |
---|
34 | */ |
---|
35 | extern ide_ctrl_fns_t pc386_ide_ctrl_fns; |
---|
36 | |
---|
37 | /* IDE controllers Table */ |
---|
38 | ide_controller_bsp_table_t IDE_Controller_Table[] = { |
---|
39 | {"/dev/ide", |
---|
40 | IDE_STD, /* standard IDE controller */ |
---|
41 | &pc386_ide_ctrl_fns, |
---|
42 | NULL, /* probe for IDE standard registers */ |
---|
43 | FALSE, /* not (yet) initialized */ |
---|
44 | 0x1f0, /* base I/O address for first IDE controller */ |
---|
45 | FALSE,0, /* not (yet) interrupt driven */ |
---|
46 | NULL |
---|
47 | } |
---|
48 | }; |
---|
49 | |
---|
50 | /* Number of rows in IDE_Controller_Table */ |
---|
51 | unsigned long IDE_Controller_Count = |
---|
52 | sizeof(IDE_Controller_Table)/sizeof(IDE_Controller_Table[0]); |
---|
53 | |
---|
54 | |
---|