Messages in this thread Patch in this message | | | Date | Mon, 9 Dec 2002 00:41:02 +0100 | From | Petr Sebor <> | Subject | Re: IDE feature request |
| |
On Sun, Dec 08, 2002 at 01:09:34AM +0000, Alan Cox wrote: > Fix ide.c to generate a b c d e f and you should be able to get 16.
Like this?
-Petr --- ide.c~ 2002-12-09 00:26:38.000000000 +0100 +++ ide.c 2002-12-09 00:25:34.000000000 +0100 @@ -262,7 +262,7 @@ hwif->name[0] = 'i'; hwif->name[1] = 'd'; hwif->name[2] = 'e'; - hwif->name[3] = '0' + index; + hwif->name[3] = (index < 10)?('0' + index):('a' + index - 10); hwif->bus_state = BUSSTATE_ON; for (unit = 0; unit < MAX_DRIVES; ++unit) { ide_drive_t *drive = &hwif->drives[unit]; | |