Go to the documentation of this file.
26 #define FC_SYMNAME_MAX 256
27 #define FC_ALPA_MAX 128
31 #define MAC_ADDRLEN (6)
33 #define mac_t struct mac_s
38 #define SCSI_MAX_CDBLEN 16
47 #define SCSI_STATUS_GOOD 0x00
48 #define SCSI_STATUS_CHECK_CONDITION 0x02
49 #define SCSI_STATUS_CONDITION_MET 0x04
50 #define SCSI_STATUS_BUSY 0x08
51 #define SCSI_STATUS_INTERMEDIATE 0x10
52 #define SCSI_STATUS_ICM 0x14
53 #define SCSI_STATUS_RESERVATION_CONFLICT 0x18
54 #define SCSI_STATUS_COMMAND_TERMINATED 0x22
55 #define SCSI_STATUS_QUEUE_FULL 0x28
56 #define SCSI_STATUS_ACA_ACTIVE 0x30
58 #define SCSI_MAX_ALLOC_LEN 0xFF
186 #define FC_DOMAIN_MASK 0xFF0000
187 #define FC_DOMAIN_SHIFT 16
188 #define FC_AREA_MASK 0x00FF00
189 #define FC_AREA_SHIFT 8
190 #define FC_PORT_MASK 0x0000FF
191 #define FC_PORT_SHIFT 0
193 #define FC_GET_DOMAIN(p) (((p) & FC_DOMAIN_MASK) >> FC_DOMAIN_SHIFT)
194 #define FC_GET_AREA(p) (((p) & FC_AREA_MASK) >> FC_AREA_SHIFT)
195 #define FC_GET_PORT(p) (((p) & FC_PORT_MASK) >> FC_PORT_SHIFT)
197 #define FC_DOMAIN_CTRLR(p) (FC_DOMAIN_CONTROLLER_MASK | (FC_GET_DOMAIN(p)))
362 #define FLOGI_VVL_BRCD 0x42524344
450 #define FC_REC_ESB_OWN_RSP 0x80000000
451 #define FC_REC_ESB_SI 0x40000000
452 #define FC_REC_ESB_COMP 0x20000000
453 #define FC_REC_ESB_ENDCOND_ABN 0x10000000
454 #define FC_REC_ESB_RQACT 0x04000000
455 #define FC_REC_ESB_ERRP_MSK 0x03000000
456 #define FC_REC_ESB_OXID_INV 0x00800000
457 #define FC_REC_ESB_RXID_INV 0x00400000
458 #define FC_REC_ESB_PRIO_INUSE 0x00200000
805 #define FC_RSCN_PGLEN 0x4
838 #define RNID_NODEID_DATA_FORMAT_COMMON 0x00
839 #define RNID_NODEID_DATA_FORMAT_FCP3 0x08
840 #define RNID_NODEID_DATA_FORMAT_DISCOVERY 0xDF
842 #define RNID_ASSOCIATED_TYPE_UNKNOWN 0x00000001
843 #define RNID_ASSOCIATED_TYPE_OTHER 0x00000002
844 #define RNID_ASSOCIATED_TYPE_HUB 0x00000003
845 #define RNID_ASSOCIATED_TYPE_SWITCH 0x00000004
846 #define RNID_ASSOCIATED_TYPE_GATEWAY 0x00000005
847 #define RNID_ASSOCIATED_TYPE_STORAGE_DEVICE 0x00000009
848 #define RNID_ASSOCIATED_TYPE_HOST 0x0000000A
849 #define RNID_ASSOCIATED_TYPE_STORAGE_SUBSYSTEM 0x0000000B
850 #define RNID_ASSOCIATED_TYPE_STORAGE_ACCESS_DEVICE 0x0000000E
851 #define RNID_ASSOCIATED_TYPE_NAS_SERVER 0x00000011
852 #define RNID_ASSOCIATED_TYPE_BRIDGE 0x00000002
853 #define RNID_ASSOCIATED_TYPE_VIRTUALIZATION_DEVICE 0x00000003
854 #define RNID_ASSOCIATED_TYPE_MULTI_FUNCTION_DEVICE 0x000000FF
897 #define RNID_ASSOCIATED_TYPE_UNKNOWN 0x00000001
898 #define RNID_ASSOCIATED_TYPE_OTHER 0x00000002
899 #define RNID_ASSOCIATED_TYPE_HUB 0x00000003
900 #define RNID_ASSOCIATED_TYPE_SWITCH 0x00000004
901 #define RNID_ASSOCIATED_TYPE_GATEWAY 0x00000005
902 #define RNID_ASSOCIATED_TYPE_STORAGE_DEVICE 0x00000009
903 #define RNID_ASSOCIATED_TYPE_HOST 0x0000000A
904 #define RNID_ASSOCIATED_TYPE_STORAGE_SUBSYSTEM 0x0000000B
905 #define RNID_ASSOCIATED_TYPE_STORAGE_ACCESS_DEVICE 0x0000000E
906 #define RNID_ASSOCIATED_TYPE_NAS_SERVER 0x00000011
907 #define RNID_ASSOCIATED_TYPE_BRIDGE 0x00000002
908 #define RNID_ASSOCIATED_TYPE_VIRTUALIZATION_DEVICE 0x00000003
909 #define RNID_ASSOCIATED_TYPE_MULTI_FUNCTION_DEVICE 0x000000FF
960 #define FC_BRCD_TOKEN 0x42524344
1027 #define FC_REC_TOV (FC_ED_TOV + 1)
1028 #define FC_RA_TOV 10
1029 #define FC_ELS_TOV ((2 * FC_RA_TOV) + 1)
1030 #define FC_FCCT_TOV (3 * FC_RA_TOV)
1035 #define FC_VF_ID_NULL 0
1036 #define FC_VF_ID_MIN 1
1037 #define FC_VF_ID_MAX 0xEFF
1038 #define FC_VF_ID_CTL 0xFEF
1059 #define FCP_CMND_CDB_LEN 16
1060 #define FCP_CMND_LUN_LEN 8
1087 #define fcp_cmnd_cdb_len(_cmnd) ((_cmnd)->addl_cdb_len * 4 + FCP_CMND_CDB_LEN)
1088 #define fcp_cmnd_fcpdl(_cmnd) ((&(_cmnd)->fcp_dl)[(_cmnd)->addl_cdb_len])
1148 #define fcp_snslen(__fcprsp) ((__fcprsp)->sns_len_valid ? \
1149 (__fcprsp)->sns_len : 0)
1150 #define fcp_rsplen(__fcprsp) ((__fcprsp)->rsp_len_valid ? \
1151 (__fcprsp)->rsp_len : 0)
1152 #define fcp_rspinfo(__fcprsp) ((struct fcp_rspinfo_s *)((__fcprsp) + 1))
1153 #define fcp_snsinfo(__fcprsp) (((u8 *)fcp_rspinfo(__fcprsp)) + \
1154 fcp_rsplen(__fcprsp))
1300 #define fcgs_gpnid_req_t struct fcgs_id_req_s
1301 #define fcgs_gnnid_req_t struct fcgs_id_req_s
1302 #define fcgs_gspnid_req_t struct fcgs_id_req_s
1325 #define FC_GS_FCP_FC4_FEATURE_INITIATOR 0x02
1326 #define FC_GS_FCP_FC4_FEATURE_TARGET 0x01
1454 #define CT_GMAL_RESP_PREFIX_TELNET "telnet://"
1455 #define CT_GMAL_RESP_PREFIX_HTTP "http://"
1462 #define fcgs_gmal_req_t struct fcgs_req_s
1463 #define fcgs_gfn_req_t struct fcgs_req_s
1480 #define FDMI_GRHL 0x0100
1481 #define FDMI_GHAT 0x0101
1482 #define FDMI_GRPL 0x0102
1483 #define FDMI_GPAT 0x0110
1484 #define FDMI_RHBA 0x0200
1485 #define FDMI_RHAT 0x0201
1486 #define FDMI_RPRT 0x0210
1487 #define FDMI_RPA 0x0211
1488 #define FDMI_DHBA 0x0300
1489 #define FDMI_DPRT 0x0310
1494 #define FDMI_NO_ADDITIONAL_EXP 0x00
1495 #define FDMI_HBA_ALREADY_REG 0x10
1496 #define FDMI_HBA_ATTRIB_NOT_REG 0x11
1497 #define FDMI_HBA_ATTRIB_MULTIPLE 0x12
1498 #define FDMI_HBA_ATTRIB_LENGTH_INVALID 0x13
1499 #define FDMI_HBA_ATTRIB_NOT_PRESENT 0x14
1500 #define FDMI_PORT_ORIG_NOT_IN_LIST 0x15
1501 #define FDMI_PORT_HBA_NOT_IN_LIST 0x16
1502 #define FDMI_PORT_ATTRIB_NOT_REG 0x20
1503 #define FDMI_PORT_NOT_REG 0x21
1504 #define FDMI_PORT_ATTRIB_MULTIPLE 0x22
1505 #define FDMI_PORT_ATTRIB_LENGTH_INVALID 0x23
1506 #define FDMI_PORT_ALREADY_REGISTEREED 0x24
1511 #define FDMI_TRANS_SPEED_1G 0x00000001
1512 #define FDMI_TRANS_SPEED_2G 0x00000002
1513 #define FDMI_TRANS_SPEED_10G 0x00000004
1514 #define FDMI_TRANS_SPEED_4G 0x00000008
1515 #define FDMI_TRANS_SPEED_8G 0x00000010
1516 #define FDMI_TRANS_SPEED_16G 0x00000020
1517 #define FDMI_TRANS_SPEED_UNKNOWN 0x00008000