summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2002-07-08 17:34:56 +0000
committermjacob <mjacob@FreeBSD.org>2002-07-08 17:34:56 +0000
commit890e899899b74f5cd32d29b42135bf0489595d7e (patch)
treef3dac3cdd0d22428db9bac03819e0061b6cecc96 /sys/dev/isp
parent6954940847de3168b91c30c3123e6ae01ab2f5f7 (diff)
downloadFreeBSD-src-890e899899b74f5cd32d29b42135bf0489595d7e.zip
FreeBSD-src-890e899899b74f5cd32d29b42135bf0489595d7e.tar.gz
Add get/set param ioctls.
MFC after: 1 week
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_ioctl.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_ioctl.h b/sys/dev/isp/isp_ioctl.h
index 64613fd..f0294c8 100644
--- a/sys/dev/isp/isp_ioctl.h
+++ b/sys/dev/isp/isp_ioctl.h
@@ -156,3 +156,26 @@ struct isp_hba_device {
#define ISP_TOPO_FPORT 4 /* F-port */
#define ISP_FC_GETHINFO _IOR(ISP_IOC, 12, struct isp_hba_device)
+/*
+ * Set some internal parameters. This doesn't take effect until
+ * the chip is reset.
+ *
+ * Each parameter is generalized to be a name string with an integer value.
+ *
+ * Known parameters are:
+ *
+ * Name Value Range
+ *
+ * "framelength" 512,1024,2048
+ * "exec_throttle" 16..255
+ * "fullduplex" 0,1
+ * "loopid" 0..125
+ */
+
+struct isp_fc_param {
+ char param_name[16]; /* null terminated */
+ u_int32_t parameter;
+};
+
+#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)
OpenPOWER on IntegriCloud