Ticket #649: rtems-4.6.99.2-i386-ide.diff

File rtems-4.6.99.2-i386-ide.diff, 2.4 KB (added by afraiett, on 12/03/06 at 13:31:12)

rtems-4.6.99.2-i386-ide.diff

  • c/src/lib/libbsp/i386/pc386/configure.ac

    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  
    1818
    1919RTEMS_CHECK_NETWORKING
    2020
     21RTEMS_BSPOPTS_SET([IDE_USE_PRIMARY_INTERFACE],[*],[1])
     22RTEMS_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
     29RTEMS_BSPOPTS_SET([IDE_USE_SECONDARY_INTERFACE],[*],[0])
     30RTEMS_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
    2137## if this is an i386, does gas have good code16 support?
    2238RTEMS_I386_GAS_CODE16
    2339AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"])
  • c/src/lib/libbsp/i386/pc386/ide/idecfg.c

    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  
    3535
    3636/* IDE controllers Table */
    3737ide_controller_bsp_table_t IDE_Controller_Table[] = {
    38   {"/dev/ide",
     38#if IDE_USE_PRIMARY_INTERFACE
     39  {"/dev/ide0",
    3940   IDE_STD, /* standard IDE controller */
    4041   &pc386_ide_ctrl_fns,
    4142   NULL, /* probe for IDE standard registers */
     
    4445   FALSE,0, /* not (yet) interrupt driven */
    4546   NULL
    4647  }
     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
    4763};
    4864
    4965/* Number of rows in IDE_Controller_Table */