Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add support for ISP_FC_GETHINFO which can tell yo...
details: https://anonhg.NetBSD.org/src/rev/87abc88cae41
branches: trunk
changeset: 532782:87abc88cae41
user: mjacob <mjacob%NetBSD.org@localhost>
date: Sat Jun 15 00:17:07 2002 +0000
description:
Add support for ISP_FC_GETHINFO which can tell you connection topology,
current speed, loopid, etc.
diffstat:
sys/dev/ic/isp_ioctl.h | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r a4bd1e27ec55 -r 87abc88cae41 sys/dev/ic/isp_ioctl.h
--- a/sys/dev/ic/isp_ioctl.h Sat Jun 15 00:16:26 2002 +0000
+++ b/sys/dev/ic/isp_ioctl.h Sat Jun 15 00:17:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_ioctl.h,v 1.3 2002/02/21 22:32:41 mjacob Exp $ */
+/* $NetBSD: isp_ioctl.h,v 1.4 2002/06/15 00:17:07 mjacob Exp $ */
/*
* Copyright (c) 2001 by Matthew Jacob
*
@@ -127,3 +127,32 @@
*/
#define ISP_GET_FW_CRASH_DUMP _IO(ISP_IOC, 10)
#define ISP_FORCE_CRASH_DUMP _IO(ISP_IOC, 11)
+
+/*
+ * Get information about this Host Adapter, including current connection
+ * topology and capabilities.
+ */
+struct isp_hba_device {
+ u_int32_t
+ : 8,
+ : 4,
+ fc_speed : 4, /* Gbps */
+ : 2,
+ fc_class2 : 1,
+ fc_ip_supported : 1,
+ fc_scsi_supported : 1,
+ fc_topology : 3,
+ fc_loopid : 8;
+ u_int64_t nvram_node_wwn;
+ u_int64_t nvram_port_wwn;
+ u_int64_t active_node_wwn;
+ u_int64_t active_port_wwn;
+};
+
+#define ISP_TOPO_UNKNOWN 0 /* connection topology unknown */
+#define ISP_TOPO_FCAL 1 /* private or PL_DA */
+#define ISP_TOPO_LPORT 2 /* public loop */
+#define ISP_TOPO_NPORT 3 /* N-port */
+#define ISP_TOPO_FPORT 4 /* F-port */
+
+#define ISP_FC_GETHINFO _IOR(ISP_IOC, 12, struct isp_hba_device)
Home |
Main Index |
Thread Index |
Old Index