PowerBook ZIP patch

From: Benjamin Herrenschmidt <hidden>
Date: 1999-01-11 19:50:11

The following patch enables the PowerBook internal ZIP drive. You may
need my other patch to irq.c that fixes bogus interrupt values for the
left bay to work (should be included in Cort's new irq.c when finished).
The right bay should work "as is".

--- linux.orig/drivers/block/ide-probe.c	Thu Jan  7 14:17:32 1999
+++ linux.dev/drivers/block/ide-probe.c	Mon Jan 11 22:44:52 1999
@@ -118,8 +118,14 @@
 				}
 				type = ide_cdrom;	/* Early cdrom models used zero */
 			case ide_cdrom:
-				printk ("CDROM");
 				drive->removable = 1;
+				/* XXX kludge for Apple PowerBook internal zip */
+				if (!strstr(id->model, "CD-ROM") && strstr(id->model, "ZIP")) {
+					printk ("FLOPPY");
+					type = ide_floppy;
+					break;
+				}
+				printk ("CDROM");
 				break;
 			case ide_tape:
 				printk ("TAPE");

-- 
           E-Mail: <mailto:bh40@calva.net>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help