summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-01-05 21:37:07 +0000
committerken <ken@FreeBSD.org>1999-01-05 21:37:07 +0000
commit2551bfc1d6ab6b76bc15edf3abfc6f95706bdf28 (patch)
treeca924610b1b98af3d3e49f4273916b69d1cc3346 /sys/cam
parente6452a05226de96465b5ad0fbba66c673f06c620 (diff)
downloadFreeBSD-src-2551bfc1d6ab6b76bc15edf3abfc6f95706bdf28.zip
FreeBSD-src-2551bfc1d6ab6b76bc15edf3abfc6f95706bdf28.tar.gz
The Conner CFP2107 is a fixed-media drive, not removable media. This fixes
the quirk that disables tagged queueing for those drives. Also, silence a warning by disabling xpt_for_all_targets() and xpt_for_all_periphs(). These two functions are not currently used, but they should not be removed. They're part of a set of functions that provide a way to execute a function for every {bus,target,device,periph} in the system. If anyone needs to use either function in the future, they can be un-#ifdefed.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_xpt.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index ac1de3d..22e0167 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cam_xpt.c,v 1.32 1998/12/24 02:43:41 mjacob Exp $
+ * $Id: cam_xpt.c,v 1.33 1998/12/24 06:01:15 mjacob Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -281,7 +281,7 @@ static struct xpt_quirk_entry xpt_quirk_table[] =
},
{
/* Broken tagged queuing drive */
- { T_DIRECT, SIP_MEDIA_REMOVABLE, "CONNER", "CFP2107*", "*" },
+ { T_DIRECT, SIP_MEDIA_FIXED, "CONNER", "CFP2107*", "*" },
/*quirks*/0, /*mintags*/0, /*maxtags*/0
},
{
@@ -618,12 +618,16 @@ static xpt_targetfunc_t xptdeftargetfunc;
static xpt_devicefunc_t xptdefdevicefunc;
static xpt_periphfunc_t xptdefperiphfunc;
static int xpt_for_all_busses(xpt_busfunc_t *tr_func, void *arg);
+#ifdef notusedyet
static int xpt_for_all_targets(xpt_targetfunc_t *tr_func,
void *arg);
+#endif
static int xpt_for_all_devices(xpt_devicefunc_t *tr_func,
void *arg);
+#ifdef notusedyet
static int xpt_for_all_periphs(xpt_periphfunc_t *tr_func,
void *arg);
+#endif
static xpt_devicefunc_t xptsetasyncfunc;
static xpt_busfunc_t xptsetasyncbusfunc;
static cam_status xptregister(struct cam_periph *periph,
@@ -2464,6 +2468,7 @@ xpt_for_all_busses(xpt_busfunc_t *tr_func, void *arg)
return(xptbustraverse(NULL, xptdefbusfunc, &tr_config));
}
+#ifdef notusedyet
/*
* Execute the given function for every target in the EDT.
*/
@@ -2478,6 +2483,7 @@ xpt_for_all_targets(xpt_targetfunc_t *tr_func, void *arg)
return(xptbustraverse(NULL, xptdefbusfunc, &tr_config));
}
+#endif /* notusedyet */
/*
* Execute the given function for every device in the EDT.
@@ -2494,6 +2500,7 @@ xpt_for_all_devices(xpt_devicefunc_t *tr_func, void *arg)
return(xptbustraverse(NULL, xptdefbusfunc, &tr_config));
}
+#ifdef notusedyet
/*
* Execute the given function for every peripheral in the EDT.
*/
@@ -2508,6 +2515,7 @@ xpt_for_all_periphs(xpt_periphfunc_t *tr_func, void *arg)
return(xptbustraverse(NULL, xptdefbusfunc, &tr_config));
}
+#endif /* notusedyet */
static int
xptsetasyncfunc(struct cam_ed *device, void *arg)
OpenPOWER on IntegriCloud