diff -Nur rtems-4.6.99.2.orig/c/src/lib/libbsp/i386/pc386/configure.ac rtems-4.6.99.2/c/src/lib/libbsp/i386/pc386/configure.ac
old
|
new
|
|
18 | 18 | |
19 | 19 | RTEMS_CHECK_NETWORKING |
20 | 20 | |
| 21 | RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1]) |
| 22 | RTEMS_BSPOPTS_HELP([IDE_USE_PRIMARY_INTERFACE], |
| 23 | [Determines, whether RTEMS will try to use the primary IDE interface. |
| 24 | Disable it, if: |
| 25 | - you have no primary IDE interface |
| 26 | - or you have no disk attached to this interface |
| 27 | - or you do not want to access disks attached to this interface]) |
| 28 | |
| 29 | RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0]) |
| 30 | RTEMS_BSPOPTS_HELP([IDE_USE_SECONDARY_INTERFACE], |
| 31 | [Determines, whether RTEMS will try to use the primary IDE interface. |
| 32 | Enable it, if: |
| 33 | - you have a secondary IDE interface |
| 34 | - and you have at least one disk attached to this interface |
| 35 | - and you do want to access disks attached to this interface]) |
| 36 | |
21 | 37 | ## if this is an i386, does gas have good code16 support? |
22 | 38 | RTEMS_I386_GAS_CODE16 |
23 | 39 | AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"]) |
diff -Nur rtems-4.6.99.2.orig/c/src/lib/libbsp/i386/pc386/ide/idecfg.c rtems-4.6.99.2/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
old
|
new
|
|
35 | 35 | |
36 | 36 | /* IDE controllers Table */ |
37 | 37 | ide_controller_bsp_table_t IDE_Controller_Table[] = { |
38 | | {"/dev/ide", |
| 38 | #if IDE_USE_PRIMARY_INTERFACE |
| 39 | {"/dev/ide0", |
39 | 40 | IDE_STD, /* standard IDE controller */ |
40 | 41 | &pc386_ide_ctrl_fns, |
41 | 42 | NULL, /* probe for IDE standard registers */ |
… |
… |
|
44 | 45 | FALSE,0, /* not (yet) interrupt driven */ |
45 | 46 | NULL |
46 | 47 | } |
| 48 | #if IDE_USE_SECONDARY_INTERFACE |
| 49 | , /* colon only neede when bith interfaces present */ |
| 50 | #endif |
| 51 | #endif |
| 52 | #if IDE_USE_SECONDARY_INTERFACE |
| 53 | {"/dev/ide1", |
| 54 | IDE_STD, /* standard IDE controller */ |
| 55 | &pc386_ide_ctrl_fns, |
| 56 | NULL, /* probe for IDE standard registers */ |
| 57 | FALSE, /* not (yet) initialized */ |
| 58 | 0x170, /* base I/O address for second IDE controller */ |
| 59 | FALSE,0, /* not (yet) interrupt driven */ |
| 60 | NULL |
| 61 | } |
| 62 | #endif |
47 | 63 | }; |
48 | 64 | |
49 | 65 | /* Number of rows in IDE_Controller_Table */ |