From: Benjamin Herrenschmidt <bh40@calva.net>
To: linuxppc-dev@lists.linuxppc.org
Cc: Cort Dougan <cort@ladron.cs.nmt.edu>,
Paul Mackerras <paulus@cs.anu.edu.au>
Subject: PowerBook ZIP patch
Date: Mon, 11 Jan 1999 20:50:11 +0100 [thread overview]
Message-ID: <19990111205011.003224@mail.mipsys.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 914 bytes --]
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/>
[-- Attachment #2: zip.patch --]
[-- Type: application/octet-stream, Size: 557 bytes --]
--- 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");
reply other threads:[~1999-01-11 19:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990111205011.003224@mail.mipsys.com \
--to=bh40@calva.net \
--cc=cort@ladron.cs.nmt.edu \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@cs.anu.edu.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).