source: rtems/c/src/lib/libbsp/i386/pc386/ide/idecfg.c @ 58f7c34

4.104.114.84.95
Last change on this file since 58f7c34 was 58f7c34, checked in by Joel Sherrill <joel.sherrill@…>, on 03/25/03 at 18:22:04

2003-03-25 Thomas Doerfler <Thomas.Doerfler@…>

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.
  • Property mode set to 100644
File size: 2.0 KB
Line 
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 */
35extern ide_ctrl_fns_t pc386_ide_ctrl_fns;
36
37/* IDE controllers Table */
38ide_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 */
51unsigned long IDE_Controller_Count =
52   sizeof(IDE_Controller_Table)/sizeof(IDE_Controller_Table[0]);
53
54
Note: See TracBrowser for help on using the repository browser.