diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2002-06-16 04:59:30 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2002-06-16 04:59:30 +0000 |
| commit | 81ac55360952dfaec44d6af9f8445c86094253a1 (patch) | |
| tree | 6c7052297c6048d12933a3d0af4104ab047ca345 /sys/dev/isp/isp_ioctl.h | |
| parent | fc087171042ecfc33d73073bdf9bc751beb80d8e (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_ioctl.h')
| -rw-r--r-- | sys/dev/isp/isp_ioctl.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_ioctl.h b/sys/dev/isp/isp_ioctl.h index 9b5419e6be96..64613fd8bc6c 100644 --- a/sys/dev/isp/isp_ioctl.h +++ b/sys/dev/isp/isp_ioctl.h @@ -127,3 +127,32 @@ struct isp_fc_device { */ #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) |
