From 1feaf09695ab40818251752c8ef519703c44f6c7 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 31 Jul 2004 11:31:31 +0000 Subject: 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@ --- sys/scsi/scsi_base.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'sys/scsi/scsi_base.c') 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 $ */ /* @@ -269,24 +269,6 @@ scsi_test_unit_ready(sc_link, retries, flags) sizeof(scsi_cmd), 0, 0, retries, 10000, NULL, 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. -- cgit v1.2.3