Re: IDE feature request

Petr Sebor (petr@scssoft.com)
Mon, 9 Dec 2002 00:41:02 +0100


--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ide.diff"

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

--azLHFNyN32YCQGCU--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/