Re: IDE feature request

Petr Sebor
2002-12-08T23:41:59Z

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]

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

[-- Attachment #2: ide.diff --]
[-- Type: text/plain, Size: 402 bytes --]

--- 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];