From f4263fe73113d147d917c89743392dee695e84fe Mon Sep 17 00:00:00 2001 From: mjacob Date: Sun, 24 Jun 2001 18:17:45 +0000 Subject: [PATCH] Add a transport settings variant for Fibre Channel. --- sys/cam/cam_ccb.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h index 232eeaa60cab..431fbb3b3cf4 100644 --- a/sys/cam/cam_ccb.h +++ b/sys/cam/cam_ccb.h @@ -749,6 +749,18 @@ struct ccb_trans_settings_spi u_int ppr_options; }; +struct ccb_trans_settings_fc { + u_int valid; /* Which fields to honor */ +#define CTS_FC_VALID_WWNN 0x8000 +#define CTS_FC_VALID_WWPN 0x4000 +#define CTS_FC_VALID_PORT 0x2000 +#define CTS_FC_VALID_SPEED 0x1000 + u_int64_t wwnn; /* world wide node name */ + u_int64_t wwpn; /* world wide port name */ + u_int32_t port; /* 24 bit port id, if known */ + u_int32_t bitrate; /* Mbps */ +}; + /* Get/Set transfer rate/width/disconnection/tag queueing settings */ struct ccb_trans_settings { struct ccb_hdr ccb_h; @@ -764,6 +776,7 @@ struct ccb_trans_settings { union { u_int valid; /* Which fields to honor */ struct ccb_trans_settings_spi spi; + struct ccb_trans_settings_fc fc; } xport_specific; };