summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-07-31 11:31:31 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-07-31 11:31:31 +0000
commit1feaf09695ab40818251752c8ef519703c44f6c7 (patch)
treef5c0c2685bd39f1caa800337880139e06e9cfcb0 /sys/scsi/scsi_base.c
parentc46066733583cea787f0bcda85d72c2a6ed37c03 (diff)
Remove scsi_change_def() and related command structure. Its only use
in the tree is #ifdef'd out and is fundamentally wrong anyway - it tries to force *all* devices to SCSI-2. Also recent SCSI specs seem to have marked the command as obsolete. Bonus - eliminates another undocumented option (SCSI_2_DEF). Found in a list of unused kernel functions posted to tech-kern@netbsd by Krister Walfridsson in 2002. ok marco@ tdeval@
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 9c9cd9165e6..ebefabd3d45 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.61 2004/05/28 23:50:14 krw Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.62 2004/07/31 11:31:30 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -270,24 +270,6 @@ scsi_test_unit_ready(sc_link, retries, flags)
}
/*
- * Do a scsi operation, asking a device to run as SCSI-II if it can.
- */
-int
-scsi_change_def(sc_link, flags)
- struct scsi_link *sc_link;
- int flags;
-{
- struct scsi_changedef scsi_cmd;
-
- bzero(&scsi_cmd, sizeof(scsi_cmd));
- scsi_cmd.opcode = CHANGE_DEFINITION;
- scsi_cmd.how = SC_SCSI_2;
-
- return scsi_scsi_cmd(sc_link, (struct scsi_generic *) &scsi_cmd,
- sizeof(scsi_cmd), 0, 0, 2, 100000, NULL, flags);
-}
-
-/*
* Do a scsi operation asking a device what it is.
* Use the scsi_cmd routine in the switch table.
*/