diff options
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/ide/idecfg.c')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/ide/idecfg.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c index 4d1ef8a473..b06682c299 100644 --- a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c +++ b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c @@ -35,7 +35,8 @@ extern ide_ctrl_fns_t pc386_ide_ctrl_fns; /* IDE controllers Table */ ide_controller_bsp_table_t IDE_Controller_Table[] = { - {"/dev/ide", +#if IDE_USE_PRIMARY_INTERFACE + {"/dev/ide0", IDE_STD, /* standard IDE controller */ &pc386_ide_ctrl_fns, NULL, /* probe for IDE standard registers */ @@ -44,6 +45,21 @@ ide_controller_bsp_table_t IDE_Controller_Table[] = { FALSE,0, /* not (yet) interrupt driven */ NULL } +#if IDE_USE_SECONDARY_INTERFACE + , /* colon only needed when both interfaces present */ +#endif +#endif +#if IDE_USE_SECONDARY_INTERFACE + {"/dev/ide1", + IDE_STD, /* standard IDE controller */ + &pc386_ide_ctrl_fns, + NULL, /* probe for IDE standard registers */ + FALSE, /* not (yet) initialized */ + 0x170, /* base I/O address for second IDE controller */ + FALSE,0, /* not (yet) interrupt driven */ + NULL + } +#endif }; /* Number of rows in IDE_Controller_Table */ |