summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_ioctl.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2005-10-29 02:46:59 +0000
committermjacob <mjacob@FreeBSD.org>2005-10-29 02:46:59 +0000
commitccffddac5ccb3fc8a6cef9b5f7587cf9d3aac4e1 (patch)
tree510b1fcd2af2e73684cebdb6dfc7d6fa652382c5 /sys/dev/isp/isp_ioctl.h
parentd00054e9687cf86fb1c8e3adc69ff77986e95902 (diff)
downloadFreeBSD-src-ccffddac5ccb3fc8a6cef9b5f7587cf9d3aac4e1.zip
FreeBSD-src-ccffddac5ccb3fc8a6cef9b5f7587cf9d3aac4e1.tar.gz
Add an ioctl framework for doing FC task management functions from
a user space tool- useful for doing FC target mode certification.
Diffstat (limited to 'sys/dev/isp/isp_ioctl.h')
-rw-r--r--sys/dev/isp/isp_ioctl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_ioctl.h b/sys/dev/isp/isp_ioctl.h
index 921272a..099b104 100644
--- a/sys/dev/isp/isp_ioctl.h
+++ b/sys/dev/isp/isp_ioctl.h
@@ -185,3 +185,15 @@ struct isp_fc_param {
#define ISP_GET_FC_PARAM _IOWR(ISP_IOC, 98, struct isp_fc_param)
#define ISP_SET_FC_PARAM _IOWR(ISP_IOC, 99, struct isp_fc_param)
+
+/*
+ * Various Reset Goodies
+ */
+struct isp_fc_tsk_mgmt {
+ u_int32_t loopid; /* 0..255 */
+ u_int32_t lun;
+ enum {
+ CLEAR_ACA, TARGET_RESET, LUN_RESET, CLEAR_TASK_SET, ABORT_TASK_SET
+ } action;
+};
+#define ISP_TSK_MGMT _IOWR(ISP_IOC, 97, struct isp_fc_tsk_mgmt)
OpenPOWER on IntegriCloud