PowerBook ZIP patch

Benjamin Herrenschmidt bh40 at calva.net
Tue Jan 12 06:50:11 EST 1999


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 at calva.net>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 557 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/19990111/909efe87/attachment.obj>


More information about the Linuxppc-dev mailing list