From: Stefan Wieseckel <s@wieseckel.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] missing SCSI device type (2.4.17)
Date: Fri, 04 Jan 2002 21:07:08 +0100 [thread overview]
Message-ID: <3C360B6C.F4D1661A@wieseckel.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
Hi,
the attached patch adds one more SCSI device type to 2.4.17 (according
to the
SCSI standard).
Bye...
Stef'
[-- Attachment #2: missing_scsi_device.diff --]
[-- Type: text/plain, Size: 1242 bytes --]
--- ./linux-2.4.17/include/scsi/scsi.h.orig Sun Dec 23 15:27:07 2001
+++ ./linux-2.4.17/include/scsi/scsi.h Sun Dec 23 15:31:16 2001
@@ -130,6 +130,7 @@
#define TYPE_DISK 0x00
#define TYPE_TAPE 0x01
+#define TYPE_PRINTER 0x02
#define TYPE_PROCESSOR 0x03 /* HP scanners use this */
#define TYPE_WORM 0x04 /* Treated as ROM by our system */
#define TYPE_ROM 0x05
--- ./linux-2.4.17/drivers/scsi/scsi_dma.c.orig Sun Dec 23 20:15:39 2001
+++ ./linux-2.4.17/drivers/scsi/scsi_dma.c Sun Dec 23 20:16:52 2001
@@ -259,6 +259,7 @@
if (SDpnt->type == TYPE_WORM || SDpnt->type == TYPE_ROM)
new_dma_sectors += (2048 >> 9) * SDpnt->queue_depth;
} else if (SDpnt->type == TYPE_SCANNER ||
+ SDpnt->type == TYPE_PRINTER ||
SDpnt->type == TYPE_PROCESSOR ||
SDpnt->type == TYPE_COMM ||
SDpnt->type == TYPE_MEDIUM_CHANGER ||
--- ./linux-2.4.17/drivers/scsi/scsi_scan.c.orig Fri Jan 4 20:54:25 2002
+++ ./linux-2.4.17/drivers/scsi/scsi_scan.c Fri Jan 4 20:55:20 2002
@@ -634,6 +634,7 @@
switch (type = (scsi_result[0] & 0x1f)) {
case TYPE_TAPE:
case TYPE_DISK:
+ case TYPE_PRINTER:
case TYPE_MOD:
case TYPE_PROCESSOR:
case TYPE_SCANNER:
reply other threads:[~2002-01-04 20:07 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=3C360B6C.F4D1661A@wieseckel.de \
--to=s@wieseckel.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®