Lines Matching +full:0 +full:x00010008
23 #define FDMI_DID 0xfffffaU
24 #define NameServer_DID 0xfffffcU
25 #define Fabric_Cntl_DID 0xfffffdU
26 #define Fabric_DID 0xfffffeU
27 #define Bcast_DID 0xffffffU
28 #define Mask_DID 0xffffffU
29 #define CT_DID_MASK 0xffff00U
30 #define Fabric_DID_MASK 0xfff000U
31 #define WELL_KNOWN_DID_MASK 0xfffff0U
42 0 */
46 #define LPFC_FCP_RING 0 /* ring 0 for FCP initiator commands */
58 #define SLI2_IOCB_CMD_R3_ENTRIES 0
59 #define SLI2_IOCB_RSP_R3_ENTRIES 0
68 #define LPFC_UNREG_ALL_RPIS_VPORT 0xffff
69 #define LPFC_UNREG_ALL_DFLT_RPIS 0xffffffff
96 #define FC4_FEATURE_TARGET 0x1
97 #define FC4_FEATURE_INIT 0x2
98 #define FC4_FEATURE_NVME_DISC 0x4
101 RFT_FCP_REG = (0x1 << 8),
105 RFT_NVME_REG = (0x1 << 8),
109 RFT_APP_SERV_REG = (0x1 << 0),
148 __be32 fcp_reg; /* rsvd 31:9, fcp_reg 8, rsvd 7:0 */
149 __be32 nvme_reg; /* rsvd 31:9, nvme_reg 8, rsvd 7:0 */
151 __be32 app_serv_reg; /* rsvd 31:1, app_serv_reg 0 */
221 #define SLI_CT_MANAGEMENT_SERVICE 0xFA
222 #define SLI_CT_TIME_SERVICE 0xFB
223 #define SLI_CT_DIRECTORY_SERVICE 0xFC
224 #define SLI_CT_FABRIC_CONTROLLER_SERVICE 0xFD
230 #define SLI_CT_DIRECTORY_NAME_SERVER 0x02
236 #define SLI_CT_RESPONSE_FS_RJT 0x8001
237 #define SLI_CT_RESPONSE_FS_ACC 0x8002
243 #define SLI_CT_NO_ADDITIONAL_EXPL 0x0
244 #define SLI_CT_INVALID_COMMAND 0x01
245 #define SLI_CT_INVALID_VERSION 0x02
246 #define SLI_CT_LOGICAL_ERROR 0x03
247 #define SLI_CT_INVALID_IU_SIZE 0x04
248 #define SLI_CT_LOGICAL_BUSY 0x05
249 #define SLI_CT_PROTOCOL_ERROR 0x07
250 #define SLI_CT_UNABLE_TO_PERFORM_REQ 0x09
251 #define SLI_CT_REQ_NOT_SUPPORTED 0x0b
252 #define SLI_CT_HBA_INFO_NOT_REGISTERED 0x10
253 #define SLI_CT_MULTIPLE_HBA_ATTR_OF_SAME_TYPE 0x11
254 #define SLI_CT_INVALID_HBA_ATTR_BLOCK_LEN 0x12
255 #define SLI_CT_HBA_ATTR_NOT_PRESENT 0x13
256 #define SLI_CT_PORT_INFO_NOT_REGISTERED 0x20
257 #define SLI_CT_MULTIPLE_PORT_ATTR_OF_SAME_TYPE 0x21
258 #define SLI_CT_INVALID_PORT_ATTR_BLOCK_LEN 0x22
259 #define SLI_CT_VENDOR_UNIQUE 0xff
265 #define SLI_CT_NO_PORT_ID 0x01
266 #define SLI_CT_NO_PORT_NAME 0x02
267 #define SLI_CT_NO_NODE_NAME 0x03
268 #define SLI_CT_NO_CLASS_OF_SERVICE 0x04
269 #define SLI_CT_NO_IP_ADDRESS 0x05
270 #define SLI_CT_NO_IPA 0x06
271 #define SLI_CT_NO_FC4_TYPES 0x07
272 #define SLI_CT_NO_SYMBOLIC_PORT_NAME 0x08
273 #define SLI_CT_NO_SYMBOLIC_NODE_NAME 0x09
274 #define SLI_CT_NO_PORT_TYPE 0x0A
275 #define SLI_CT_ACCESS_DENIED 0x10
276 #define SLI_CT_INVALID_PORT_ID 0x11
277 #define SLI_CT_DATABASE_EMPTY 0x12
278 #define SLI_CT_APP_ID_NOT_AVAILABLE 0x40
284 #define SLI_CTNS_GA_NXT 0x0100
285 #define SLI_CTNS_GPN_ID 0x0112
286 #define SLI_CTNS_GNN_ID 0x0113
287 #define SLI_CTNS_GCS_ID 0x0114
288 #define SLI_CTNS_GFT_ID 0x0117
289 #define SLI_CTNS_GSPN_ID 0x0118
290 #define SLI_CTNS_GPT_ID 0x011A
291 #define SLI_CTNS_GFF_ID 0x011F
292 #define SLI_CTNS_GID_PN 0x0121
293 #define SLI_CTNS_GID_NN 0x0131
294 #define SLI_CTNS_GIP_NN 0x0135
295 #define SLI_CTNS_GIPA_NN 0x0136
296 #define SLI_CTNS_GSNN_NN 0x0139
297 #define SLI_CTNS_GNN_IP 0x0153
298 #define SLI_CTNS_GIPA_IP 0x0156
299 #define SLI_CTNS_GID_FT 0x0171
300 #define SLI_CTNS_GID_FF 0x01F1
301 #define SLI_CTNS_GID_PT 0x01A1
302 #define SLI_CTNS_RPN_ID 0x0212
303 #define SLI_CTNS_RNN_ID 0x0213
304 #define SLI_CTNS_RCS_ID 0x0214
305 #define SLI_CTNS_RFT_ID 0x0217
306 #define SLI_CTNS_RSPN_ID 0x0218
307 #define SLI_CTNS_RPT_ID 0x021A
308 #define SLI_CTNS_RFF_ID 0x021F
309 #define SLI_CTNS_RIP_NN 0x0235
310 #define SLI_CTNS_RIPA_NN 0x0236
311 #define SLI_CTNS_RSNN_NN 0x0239
312 #define SLI_CTNS_DA_ID 0x0300
318 #define SLI_CTPT_N_PORT 0x01
319 #define SLI_CTPT_NL_PORT 0x02
320 #define SLI_CTPT_FNL_PORT 0x03
321 #define SLI_CTPT_IP 0x04
322 #define SLI_CTPT_FCP 0x08
323 #define SLI_CTPT_NVME 0x28
324 #define SLI_CTPT_NX_PORT 0x7F
325 #define SLI_CTPT_F_PORT 0x81
326 #define SLI_CTPT_FL_PORT 0x82
327 #define SLI_CTPT_E_PORT 0x84
329 #define SLI_CT_LAST_ENTRY 0x80000000
340 #define FC_PH3 0x20 /* FC-PH-3 version */
348 uint8_t nameType:4; /* FC Word 0, bit 28:31 */
349 uint8_t IEEEextMsn:4; /* FC Word 0, bit 24:27, bit
352 uint8_t IEEEextMsn:4; /* FC Word 0, bit 24:27, bit
354 uint8_t nameType:4; /* FC Word 0, bit 28:31 */
357 #define NAME_IEEE 0x1 /* IEEE name - nameType */
358 #define NAME_IEEE_EXT 0x2 /* IEEE extended name */
359 #define NAME_FC_TYPE 0x3 /* FC native name type */
360 #define NAME_IP_TYPE 0x4 /* IP address */
361 #define NAME_CCITT_TYPE 0xC
362 #define NAME_CCITT_GR_TYPE 0xE
363 uint8_t IEEEextLsb; /* FC Word 0, bit 16:23, IEEE
373 uint8_t fcphHigh; /* FC Word 0, byte 0 */
376 uint8_t bbCreditLsb; /* FC Word 0, byte 3 */
434 uint8_t word2Reserved1; /* FC Word 2 byte 0 */
449 uint8_t classValid:1; /* FC Word 0, bit 31 */
450 uint8_t intermix:1; /* FC Word 0, bit 30 */
451 uint8_t stackedXparent:1; /* FC Word 0, bit 29 */
452 uint8_t stackedLockDown:1; /* FC Word 0, bit 28 */
453 uint8_t seqDelivery:1; /* FC Word 0, bit 27 */
454 uint8_t word0Reserved1:3; /* FC Word 0, bit 24:26 */
456 uint8_t word0Reserved1:3; /* FC Word 0, bit 24:26 */
457 uint8_t seqDelivery:1; /* FC Word 0, bit 27 */
458 uint8_t stackedLockDown:1; /* FC Word 0, bit 28 */
459 uint8_t stackedXparent:1; /* FC Word 0, bit 29 */
460 uint8_t intermix:1; /* FC Word 0, bit 30 */
461 uint8_t classValid:1; /* FC Word 0, bit 31 */
465 uint8_t word0Reserved2; /* FC Word 0, bit 16:23 */
468 uint8_t iCtlXidReAssgn:2; /* FC Word 0, Bit 14:15 */
469 uint8_t iCtlInitialPa:2; /* FC Word 0, bit 12:13 */
470 uint8_t iCtlAck0capable:1; /* FC Word 0, bit 11 */
471 uint8_t iCtlAckNcapable:1; /* FC Word 0, bit 10 */
472 uint8_t word0Reserved3:2; /* FC Word 0, bit 8: 9 */
474 uint8_t word0Reserved3:2; /* FC Word 0, bit 8: 9 */
475 uint8_t iCtlAckNcapable:1; /* FC Word 0, bit 10 */
476 uint8_t iCtlAck0capable:1; /* FC Word 0, bit 11 */
477 uint8_t iCtlInitialPa:2; /* FC Word 0, bit 12:13 */
478 uint8_t iCtlXidReAssgn:2; /* FC Word 0, Bit 14:15 */
481 uint8_t word0Reserved4; /* FC Word 0, bit 0: 7 */
501 uint8_t rcvDataSizeLsb; /* FC Word 1, bit 0: 7 */
506 uint8_t EeCreditSeqLsb; /* FC Word 2, bit 0: 7 */
511 uint8_t word3Reserved2; /* Fc Word 3, bit 0: 7 */
526 #define LPFC_VV_EMLX_ID 0x454d4c58 /* EMLX */
539 #define fc_vft_hdr_r_ctl_MASK 0xFF
542 #define fc_vft_hdr_ver_MASK 0x3
545 #define fc_vft_hdr_type_MASK 0xF
548 #define fc_vft_hdr_e_MASK 0x1
551 #define fc_vft_hdr_priority_MASK 0x7
554 #define fc_vft_hdr_vf_id_MASK 0xFFF
558 #define fc_vft_hdr_hopct_MASK 0xFF
565 * Extended Link Service LS_COMMAND codes (Payload Word 0)
568 #define ELS_CMD_MASK 0xffff0000
569 #define ELS_RSP_MASK 0xff000000
570 #define ELS_CMD_LS_RJT 0x01000000
571 #define ELS_CMD_ACC 0x02000000
572 #define ELS_CMD_PLOGI 0x03000000
573 #define ELS_CMD_FLOGI 0x04000000
574 #define ELS_CMD_LOGO 0x05000000
575 #define ELS_CMD_ABTX 0x06000000
576 #define ELS_CMD_RCS 0x07000000
577 #define ELS_CMD_RES 0x08000000
578 #define ELS_CMD_RSS 0x09000000
579 #define ELS_CMD_RSI 0x0A000000
580 #define ELS_CMD_ESTS 0x0B000000
581 #define ELS_CMD_ESTC 0x0C000000
582 #define ELS_CMD_ADVC 0x0D000000
583 #define ELS_CMD_RTV 0x0E000000
584 #define ELS_CMD_RLS 0x0F000000
585 #define ELS_CMD_ECHO 0x10000000
586 #define ELS_CMD_TEST 0x11000000
587 #define ELS_CMD_RRQ 0x12000000
588 #define ELS_CMD_REC 0x13000000
589 #define ELS_CMD_RDP 0x18000000
590 #define ELS_CMD_RDF 0x19000000
591 #define ELS_CMD_PRLI 0x20100014
592 #define ELS_CMD_NVMEPRLI 0x20140018
593 #define ELS_CMD_PRLO 0x21100014
594 #define ELS_CMD_PRLO_ACC 0x02100014
595 #define ELS_CMD_PDISC 0x50000000
596 #define ELS_CMD_FDISC 0x51000000
597 #define ELS_CMD_ADISC 0x52000000
598 #define ELS_CMD_FARP 0x54000000
599 #define ELS_CMD_FARPR 0x55000000
600 #define ELS_CMD_RPL 0x57000000
601 #define ELS_CMD_FAN 0x60000000
602 #define ELS_CMD_RSCN 0x61040000
603 #define ELS_CMD_RSCN_XMT 0x61040008
604 #define ELS_CMD_SCR 0x62000000
605 #define ELS_CMD_RNID 0x78000000
606 #define ELS_CMD_LIRR 0x7A000000
607 #define ELS_CMD_LCB 0x81000000
608 #define ELS_CMD_FPIN 0x16000000
609 #define ELS_CMD_EDC 0x17000000
610 #define ELS_CMD_QFPA 0xB0000000
611 #define ELS_CMD_UVEM 0xB1000000
613 #define ELS_CMD_MASK 0xffff
614 #define ELS_RSP_MASK 0xff
615 #define ELS_CMD_LS_RJT 0x01
616 #define ELS_CMD_ACC 0x02
617 #define ELS_CMD_PLOGI 0x03
618 #define ELS_CMD_FLOGI 0x04
619 #define ELS_CMD_LOGO 0x05
620 #define ELS_CMD_ABTX 0x06
621 #define ELS_CMD_RCS 0x07
622 #define ELS_CMD_RES 0x08
623 #define ELS_CMD_RSS 0x09
624 #define ELS_CMD_RSI 0x0A
625 #define ELS_CMD_ESTS 0x0B
626 #define ELS_CMD_ESTC 0x0C
627 #define ELS_CMD_ADVC 0x0D
628 #define ELS_CMD_RTV 0x0E
629 #define ELS_CMD_RLS 0x0F
630 #define ELS_CMD_ECHO 0x10
631 #define ELS_CMD_TEST 0x11
632 #define ELS_CMD_RRQ 0x12
633 #define ELS_CMD_REC 0x13
634 #define ELS_CMD_RDP 0x18
635 #define ELS_CMD_RDF 0x19
636 #define ELS_CMD_PRLI 0x14001020
637 #define ELS_CMD_NVMEPRLI 0x18001420
638 #define ELS_CMD_PRLO 0x14001021
639 #define ELS_CMD_PRLO_ACC 0x14001002
640 #define ELS_CMD_PDISC 0x50
641 #define ELS_CMD_FDISC 0x51
642 #define ELS_CMD_ADISC 0x52
643 #define ELS_CMD_FARP 0x54
644 #define ELS_CMD_FARPR 0x55
645 #define ELS_CMD_RPL 0x57
646 #define ELS_CMD_FAN 0x60
647 #define ELS_CMD_RSCN 0x0461
648 #define ELS_CMD_RSCN_XMT 0x08000461
649 #define ELS_CMD_SCR 0x62
650 #define ELS_CMD_RNID 0x78
651 #define ELS_CMD_LIRR 0x7A
652 #define ELS_CMD_LCB 0x81
655 #define ELS_CMD_QFPA 0xB0
656 #define ELS_CMD_UVEM 0xB1
668 uint8_t lsRjtRsvd0; /* FC Word 0, bit 24:31 */
670 uint8_t lsRjtRsnCode; /* FC Word 0, bit 16:23 */
672 #define LSRJT_INVALID_CMD 0x01
673 #define LSRJT_LOGICAL_ERR 0x03
674 #define LSRJT_LOGICAL_BSY 0x05
675 #define LSRJT_PROTOCOL_ERR 0x07
676 #define LSRJT_UNABLE_TPC 0x09 /* Unable to perform command */
677 #define LSRJT_CMD_UNSUPPORTED 0x0B
678 #define LSRJT_VENDOR_UNIQUE 0xFF /* See Byte 3 */
680 uint8_t lsRjtRsnCodeExp; /* FC Word 0, bit 8:15 */
682 #define LSEXP_NOTHING_MORE 0x00
683 #define LSEXP_SPARM_OPTIONS 0x01
684 #define LSEXP_SPARM_ICTL 0x03
685 #define LSEXP_SPARM_RCTL 0x05
686 #define LSEXP_SPARM_RCV_SIZE 0x07
687 #define LSEXP_SPARM_CONCUR_SEQ 0x09
688 #define LSEXP_SPARM_CREDIT 0x0B
689 #define LSEXP_INVALID_PNAME 0x0D
690 #define LSEXP_INVALID_NNAME 0x0E
691 #define LSEXP_INVALID_CSP 0x0F
692 #define LSEXP_INVALID_ASSOC_HDR 0x11
693 #define LSEXP_ASSOC_HDR_REQ 0x13
694 #define LSEXP_INVALID_O_SID 0x15
695 #define LSEXP_INVALID_OX_RX 0x17
696 #define LSEXP_CMD_IN_PROGRESS 0x19
697 #define LSEXP_PORT_LOGIN_REQ 0x1E
698 #define LSEXP_INVALID_NPORT_ID 0x1F
699 #define LSEXP_INVALID_SEQ_ID 0x21
700 #define LSEXP_INVALID_XCHG 0x23
701 #define LSEXP_INACTIVE_XCHG 0x25
702 #define LSEXP_RQ_REQUIRED 0x27
703 #define LSEXP_OUT_OF_RESOURCE 0x29
704 #define LSEXP_CANT_GIVE_DATA 0x2A
705 #define LSEXP_REQ_UNSUPPORTED 0x2C
706 #define LSEXP_NO_RSRC_ASSIGN 0x52
707 uint8_t vendorUnique; /* FC Word 0, bit 0: 7 */
723 uint8_t nPortIdByte2; /* N_port ID bit 0: 7 */
733 #define PRLX_PAGE_LEN 0x10
734 #define TPRLO_PAGE_LEN 0x14
737 uint8_t prliType; /* FC Parm Word 0, bit 24:31 */
739 #define PRLI_FCP_TYPE 0x08
740 #define PRLI_NVME_TYPE 0x28
741 uint8_t word0Reserved1; /* FC Parm Word 0, bit 16:23 */
744 uint8_t origProcAssocV:1; /* FC Parm Word 0, bit 15 */
745 uint8_t respProcAssocV:1; /* FC Parm Word 0, bit 14 */
746 uint8_t estabImagePair:1; /* FC Parm Word 0, bit 13 */
749 uint8_t word0Reserved2:1; /* FC Parm Word 0, bit 12 */
750 uint8_t acceptRspCode:4; /* FC Parm Word 0, bit 8:11, ACC ONLY */
752 uint8_t acceptRspCode:4; /* FC Parm Word 0, bit 8:11, ACC ONLY */
753 uint8_t word0Reserved2:1; /* FC Parm Word 0, bit 12 */
754 uint8_t estabImagePair:1; /* FC Parm Word 0, bit 13 */
755 uint8_t respProcAssocV:1; /* FC Parm Word 0, bit 14 */
756 uint8_t origProcAssocV:1; /* FC Parm Word 0, bit 15 */
760 #define PRLI_REQ_EXECUTED 0x1 /* acceptRspCode */
761 #define PRLI_NO_RESOURCES 0x2
762 #define PRLI_INIT_INCOMPLETE 0x3
763 #define PRLI_NO_SUCH_PA 0x4
764 #define PRLI_PREDEF_CONFIG 0x5
765 #define PRLI_PARTIAL_SUCCESS 0x6
766 #define PRLI_INVALID_PAGE_CNT 0x7
767 #define PRLI_INV_SRV_PARM 0x8
769 uint8_t word0Reserved3; /* FC Parm Word 0, bit 0:7 */
771 uint32_t origProcAssoc; /* FC Parm Word 1, bit 0:31 */
773 uint32_t respProcAssoc; /* FC Parm Word 2, bit 0:31 */
794 uint16_t writeXferRdyDis:1; /* FC Parm Word 3, bit 0 */
804 uint16_t writeXferRdyDis:1; /* FC Parm Word 3, bit 0 */
820 uint8_t prloType; /* FC Parm Word 0, bit 24:31 */
822 #define PRLO_FCP_TYPE 0x08
823 uint8_t word0Reserved1; /* FC Parm Word 0, bit 16:23 */
826 uint8_t origProcAssocV:1; /* FC Parm Word 0, bit 15 */
827 uint8_t respProcAssocV:1; /* FC Parm Word 0, bit 14 */
828 uint8_t word0Reserved2:2; /* FC Parm Word 0, bit 12:13 */
829 uint8_t acceptRspCode:4; /* FC Parm Word 0, bit 8:11, ACC ONLY */
831 uint8_t acceptRspCode:4; /* FC Parm Word 0, bit 8:11, ACC ONLY */
832 uint8_t word0Reserved2:2; /* FC Parm Word 0, bit 12:13 */
833 uint8_t respProcAssocV:1; /* FC Parm Word 0, bit 14 */
834 uint8_t origProcAssocV:1; /* FC Parm Word 0, bit 15 */
837 #define PRLO_REQ_EXECUTED 0x1 /* acceptRspCode */
838 #define PRLO_NO_SUCH_IMAGE 0x4
839 #define PRLO_INVALID_PAGE_CNT 0x7
841 uint8_t word0Reserved3; /* FC Parm Word 0, bit 0:7 */
843 uint32_t origProcAssoc; /* FC Parm Word 1, bit 0:31 */
845 uint32_t respProcAssoc; /* FC Parm Word 2, bit 0:31 */
847 uint32_t word3Reserved1; /* FC Parm Word 3, bit 0:31 */
860 #define FARP_NO_ACTION 0 /* FARP information enclosed, no
862 #define FARP_MATCH_PORT 0x1 /* Match on Responder Port Name */
863 #define FARP_MATCH_NODE 0x2 /* Match on Responder Node Name */
864 #define FARP_MATCH_IP 0x4 /* Match on IP address, not supported */
865 #define FARP_MATCH_IPV4 0x5 /* Match on IPV4 address, not
867 #define FARP_MATCH_IPV6 0x6 /* Match on IPV6 address, not
871 #define FARP_REQUEST_PLOGI 0x1 /* Request for PLOGI */
872 #define FARP_REQUEST_FARPR 0x2 /* Request for FARP Response */
892 #define SCR_FUNC_FABRIC 0x01
893 #define SCR_FUNC_NPORT 0x02
894 #define SCR_FUNC_FULL 0x03
895 #define SCR_CLEAR 0xff
902 #define RNID_HBA 0x7
903 #define RNID_HOST 0xa
904 #define RNID_DRIVER 0xd
908 #define RNID_IPV4 0x1
909 #define RNID_IPV6 0x2
914 #define RNID_TD_SUPPORT 0x1
915 #define RNID_LP_VALID 0x2
920 #define RNID_TOPOLOGY_DISC 0xdf
927 RNID_TOP_DISC topologyDisc; /* topology disc (0xdf) */
934 #define rls_rsvd_MASK 0x000000ff
936 #define rls_did_SHIFT 0
937 #define rls_did_MASK 0x00ffffff
953 #define rrq_rsvd_MASK 0x000000ff
955 #define rrq_did_SHIFT 0
956 #define rrq_did_MASK 0x00ffffff
960 #define rrq_oxid_MASK 0xffff
962 #define rrq_rxid_SHIFT 0
963 #define rrq_rxid_MASK 0xffff
968 #define LPFC_DEF_VFN_PER_PFN 0 /* Default VFs due to platform limitation*/
975 #define qtov_rsvd0_MASK 0x0000000f
978 #define qtov_edtovres_MASK 0x00000001
981 #define qtov_rsvd1_MASK 0x0000003f
984 #define qtov_rttov_MASK 0x00000001
986 #define qtov_rsvd2_SHIFT 0
987 #define qtov_rsvd2_MASK 0x0003ffff
1029 #define RSCN_ADDRESS_FORMAT_PORT 0x0
1030 #define RSCN_ADDRESS_FORMAT_AREA 0x1
1031 #define RSCN_ADDRESS_FORMAT_DOMAIN 0x2
1032 #define RSCN_ADDRESS_FORMAT_FABRIC 0x3
1033 #define RSCN_ADDRESS_FORMAT_MASK 0x3
1040 uint8_t elsCode; /* FC Word 0, bit 24:31 */
1064 uint32_t lcb_command; /* ELS command opcode (0x81) */
1066 #define LPFC_LCB_ON 0x1
1067 #define LPFC_LCB_OFF 0x2
1069 uint8_t capability; /* LCB Payload Word 1, bit 0:7 */
1071 #define LPFC_LCB_GREEN 0x1
1072 #define LPFC_LCB_AMBER 0x2
1076 #define BEACON_VERSION_V0 0
1077 uint16_t lcb_duration; /* LCB Payload Word 2, bit 15:0 */
1084 uint32_t lcb_ls_acc; /* Acceptance of LCB request (0x02) */
1087 uint8_t capability; /* LCB Payload Word 1, bit 0:7 */
1090 uint16_t lcb_duration; /* LCB Payload Word 2, bit 15:0 */
1096 #define SFF_PG0_IDENT_SFP 0x3
1098 #define SFP_FLAG_PT_OPTICAL 0x0
1099 #define SFP_FLAG_PT_SWLASER 0x01
1100 #define SFP_FLAG_PT_LWLASER_LC1310 0x02
1101 #define SFP_FLAG_PT_LWLASER_LL1550 0x03
1102 #define SFP_FLAG_PT_MASK 0x0F
1103 #define SFP_FLAG_PT_SHIFT 0
1105 #define SFP_FLAG_IS_OPTICAL_PORT 0x01
1106 #define SFP_FLAG_IS_OPTICAL_MASK 0x010
1109 #define SFP_FLAG_IS_DESC_VALID 0x01
1110 #define SFP_FLAG_IS_DESC_VALID_MASK 0x020
1113 #define SFP_FLAG_CT_UNKNOWN 0x0
1114 #define SFP_FLAG_CT_SFP_PLUS 0x01
1115 #define SFP_FLAG_CT_MASK 0x3C
1138 #define RDP_PORT_NAMES_DESC_TAG 0x00010003
1151 #define RDP_FEC_DESC_TAG 0x00010005
1163 #define RDP_LINK_ERROR_STATUS_DESC_TAG 0x00010002
1170 #define VN_PT_PHY_UNKNOWN 0x00
1171 #define VN_PT_PHY_PF_PORT 0x01
1172 #define VN_PT_PHY_ETH_MAC 0x10
1175 #define RDP_PS_1GB 0x8000
1176 #define RDP_PS_2GB 0x4000
1177 #define RDP_PS_4GB 0x2000
1178 #define RDP_PS_10GB 0x1000
1179 #define RDP_PS_8GB 0x0800
1180 #define RDP_PS_16GB 0x0400
1181 #define RDP_PS_32GB 0x0200
1182 #define RDP_PS_64GB 0x0100
1183 #define RDP_PS_128GB 0x0080
1184 #define RDP_PS_256GB 0x0040
1186 #define RDP_CAP_USER_CONFIGURED 0x0002
1187 #define RDP_CAP_UNKNOWN 0x0001
1188 #define RDP_PS_UNKNOWN 0x0002
1189 #define RDP_PS_NOT_ESTABLISHED 0x0001
1200 #define RDP_PORT_SPEED_DESC_TAG 0x00010001
1208 #define RDP_N_PORT_DESC_TAG 0x00000003
1218 uint32_t els_req; /* Request payload word 0 value.*/
1221 #define RDP_LINK_SERVICE_DESC_TAG 0x00000001
1226 /* must be ELS req Word 0(0x18) */
1238 #define RDP_SFP_DESC_TAG 0x00010000
1251 #define RDP_BBC_DESC_TAG 0x00010006
1259 #define RDP_OET_LOW_WARNING 0x1
1260 #define RDP_OET_HIGH_WARNING 0x2
1261 #define RDP_OET_LOW_ALARM 0x4
1262 #define RDP_OET_HIGH_ALARM 0x8
1264 #define RDP_OED_TEMPERATURE 0x1
1265 #define RDP_OED_VOLTAGE 0x2
1266 #define RDP_OED_TXBIAS 0x3
1267 #define RDP_OED_TXPOWER 0x4
1268 #define RDP_OED_RXPOWER 0x5
1279 #define RDP_OED_DESC_TAG 0x00010007
1295 #define RDP_OPD_DESC_TAG 0x00010008
1303 uint32_t rdp_command; /* ELS command opcode (0x18)*/
1335 #define VEM_ID_DESC_TAG 0x0001000A
1344 #define INSTANTIATED_VE_DESC_TAG 0x0001000B
1350 #define lpfc_instantiated_local_id_SHIFT 0
1351 #define lpfc_instantiated_local_id_MASK 0x000000ff
1354 #define lpfc_instantiated_nport_id_MASK 0x00ffffff
1358 #define DEINSTANTIATED_VE_DESC_TAG 0x0001000C
1364 #define lpfc_deinstantiated_nport_id_SHIFT 0
1365 #define lpfc_deinstantiated_nport_id_MASK 0x000000ff
1368 #define lpfc_deinstantiated_local_id_MASK 0x00ffffff
1393 #define SLI_CT_APP_SEV_Subtypes 0x20 /* Application Server subtype */
1395 #define SLI_CTAS_GAPPIA_ENT 0x0100 /* Get Application Identifier */
1396 #define SLI_CTAS_GALLAPPIA 0x0101 /* Get All Application Identifier */
1397 #define SLI_CTAS_GALLAPPIA_ID 0x0102 /* Get All Application Identifier */
1399 #define SLI_CTAS_GAPPIA_IDAPP 0x0103 /* Get Application Identifier */
1401 #define SLI_CTAS_RAPP_IDENT 0x0200 /* Register Application Identifier */
1402 #define SLI_CTAS_DAPP_IDENT 0x0300 /* Deregister Application */
1404 #define SLI_CTAS_DALLAPP_ID 0x0301 /* Deregister All Application */
1428 #define GALLAPPIA_ID_LAST 0x80
1443 #define SLI_CT_FDMI_Subtypes 0x10 /* Management Service Subtype */
1530 #define SLI_CT_MIB_Subtypes 0x11
1551 #define SLI_MGMT_GRHL 0x100 /* Get registered HBA list */
1552 #define SLI_MGMT_GHAT 0x101 /* Get HBA attributes */
1553 #define SLI_MGMT_GRPL 0x102 /* Get registered Port list */
1554 #define SLI_MGMT_GPAT 0x110 /* Get Port attributes */
1555 #define SLI_MGMT_GPAS 0x120 /* Get Port Statistics */
1556 #define SLI_MGMT_RHBA 0x200 /* Register HBA */
1557 #define SLI_MGMT_RHAT 0x201 /* Register HBA attributes */
1558 #define SLI_MGMT_RPRT 0x210 /* Register Port */
1559 #define SLI_MGMT_RPA 0x211 /* Register Port attributes */
1560 #define SLI_MGMT_DHBA 0x300 /* De-register HBA */
1561 #define SLI_MGMT_DHAT 0x301 /* De-register HBA attributes */
1562 #define SLI_MGMT_DPRT 0x310 /* De-register Port */
1563 #define SLI_MGMT_DPA 0x311 /* De-register Port attributes */
1570 #define RHBA_NODENAME 0x1 /* 8 byte WWNN */
1571 #define RHBA_MANUFACTURER 0x2 /* 4 to 64 byte ASCII string */
1572 #define RHBA_SERIAL_NUMBER 0x3 /* 4 to 64 byte ASCII string */
1573 #define RHBA_MODEL 0x4 /* 4 to 256 byte ASCII string */
1574 #define RHBA_MODEL_DESCRIPTION 0x5 /* 4 to 256 byte ASCII string */
1575 #define RHBA_HARDWARE_VERSION 0x6 /* 4 to 256 byte ASCII string */
1576 #define RHBA_DRIVER_VERSION 0x7 /* 4 to 256 byte ASCII string */
1577 #define RHBA_OPTION_ROM_VERSION 0x8 /* 4 to 256 byte ASCII string */
1578 #define RHBA_FIRMWARE_VERSION 0x9 /* 4 to 256 byte ASCII string */
1579 #define RHBA_OS_NAME_VERSION 0xa /* 4 to 256 byte ASCII string */
1580 #define RHBA_MAX_CT_PAYLOAD_LEN 0xb /* 32-bit unsigned int */
1581 #define RHBA_SYM_NODENAME 0xc /* 4 to 256 byte ASCII string */
1582 #define RHBA_VENDOR_INFO 0xd /* 32-bit unsigned int */
1583 #define RHBA_NUM_PORTS 0xe /* 32-bit unsigned int */
1584 #define RHBA_FABRIC_WWNN 0xf /* 8 byte WWNN */
1585 #define RHBA_BIOS_VERSION 0x10 /* 4 to 256 byte ASCII string */
1586 #define RHBA_BIOS_STATE 0x11 /* 32-bit unsigned int */
1587 #define RHBA_VENDOR_ID 0xe0 /* 8 byte ASCII string */
1590 #define LPFC_FDMI_HBA_ATTR_wwnn 0x00000001
1591 #define LPFC_FDMI_HBA_ATTR_manufacturer 0x00000002
1592 #define LPFC_FDMI_HBA_ATTR_sn 0x00000004
1593 #define LPFC_FDMI_HBA_ATTR_model 0x00000008
1594 #define LPFC_FDMI_HBA_ATTR_description 0x00000010
1595 #define LPFC_FDMI_HBA_ATTR_hdw_ver 0x00000020
1596 #define LPFC_FDMI_HBA_ATTR_drvr_ver 0x00000040
1597 #define LPFC_FDMI_HBA_ATTR_rom_ver 0x00000080
1598 #define LPFC_FDMI_HBA_ATTR_fmw_ver 0x00000100
1599 #define LPFC_FDMI_HBA_ATTR_os_ver 0x00000200
1600 #define LPFC_FDMI_HBA_ATTR_ct_len 0x00000400
1601 #define LPFC_FDMI_HBA_ATTR_symbolic_name 0x00000800
1602 #define LPFC_FDMI_HBA_ATTR_vendor_info 0x00001000 /* Not used */
1603 #define LPFC_FDMI_HBA_ATTR_num_ports 0x00002000
1604 #define LPFC_FDMI_HBA_ATTR_fabric_wwnn 0x00004000
1605 #define LPFC_FDMI_HBA_ATTR_bios_ver 0x00008000
1606 #define LPFC_FDMI_HBA_ATTR_bios_state 0x00010000 /* Not used */
1607 #define LPFC_FDMI_HBA_ATTR_vendor_id 0x00020000
1610 #define LPFC_FDMI1_HBA_ATTR 0x000007ff
1614 #define LPFC_FDMI2_HBA_ATTR 0x0002efff
1619 #define RPRT_SUPPORTED_FC4_TYPES 0x1 /* 32 byte binary array */
1620 #define RPRT_SUPPORTED_SPEED 0x2 /* 32-bit unsigned int */
1621 #define RPRT_PORT_SPEED 0x3 /* 32-bit unsigned int */
1622 #define RPRT_MAX_FRAME_SIZE 0x4 /* 32-bit unsigned int */
1623 #define RPRT_OS_DEVICE_NAME 0x5 /* 4 to 256 byte ASCII string */
1624 #define RPRT_HOST_NAME 0x6 /* 4 to 256 byte ASCII string */
1625 #define RPRT_NODENAME 0x7 /* 8 byte WWNN */
1626 #define RPRT_PORTNAME 0x8 /* 8 byte WWPN */
1627 #define RPRT_SYM_PORTNAME 0x9 /* 4 to 256 byte ASCII string */
1628 #define RPRT_PORT_TYPE 0xa /* 32-bit unsigned int */
1629 #define RPRT_SUPPORTED_CLASS 0xb /* 32-bit unsigned int */
1630 #define RPRT_FABRICNAME 0xc /* 8 byte Fabric WWPN */
1631 #define RPRT_ACTIVE_FC4_TYPES 0xd /* 32 byte binary array */
1632 #define RPRT_PORT_STATE 0x101 /* 32-bit unsigned int */
1633 #define RPRT_DISC_PORT 0x102 /* 32-bit unsigned int */
1634 #define RPRT_PORT_ID 0x103 /* 32-bit unsigned int */
1635 #define RPRT_VENDOR_MI 0xf047 /* vendor ascii string */
1636 #define RPRT_SMART_SERVICE 0xf100 /* 4 to 256 byte ASCII string */
1637 #define RPRT_SMART_GUID 0xf101 /* 8 byte WWNN + 8 byte WWPN */
1638 #define RPRT_SMART_VERSION 0xf102 /* 4 to 256 byte ASCII string */
1639 #define RPRT_SMART_MODEL 0xf103 /* 4 to 256 byte ASCII string */
1640 #define RPRT_SMART_PORT_INFO 0xf104 /* 32-bit unsigned int */
1641 #define RPRT_SMART_QOS 0xf105 /* 32-bit unsigned int */
1642 #define RPRT_SMART_SECURITY 0xf106 /* 32-bit unsigned int */
1645 #define LPFC_FDMI_PORT_ATTR_fc4type 0x00000001
1646 #define LPFC_FDMI_PORT_ATTR_support_speed 0x00000002
1647 #define LPFC_FDMI_PORT_ATTR_speed 0x00000004
1648 #define LPFC_FDMI_PORT_ATTR_max_frame 0x00000008
1649 #define LPFC_FDMI_PORT_ATTR_os_devname 0x00000010
1650 #define LPFC_FDMI_PORT_ATTR_host_name 0x00000020
1651 #define LPFC_FDMI_PORT_ATTR_wwnn 0x00000040
1652 #define LPFC_FDMI_PORT_ATTR_wwpn 0x00000080
1653 #define LPFC_FDMI_PORT_ATTR_symbolic_name 0x00000100
1654 #define LPFC_FDMI_PORT_ATTR_port_type 0x00000200
1655 #define LPFC_FDMI_PORT_ATTR_class 0x00000400
1656 #define LPFC_FDMI_PORT_ATTR_fabric_wwpn 0x00000800
1657 #define LPFC_FDMI_PORT_ATTR_port_state 0x00001000
1658 #define LPFC_FDMI_PORT_ATTR_active_fc4type 0x00002000
1659 #define LPFC_FDMI_PORT_ATTR_num_disc 0x00004000
1660 #define LPFC_FDMI_PORT_ATTR_nportid 0x00008000
1661 #define LPFC_FDMI_SMART_ATTR_service 0x00010000 /* Vendor specific */
1662 #define LPFC_FDMI_SMART_ATTR_guid 0x00020000 /* Vendor specific */
1663 #define LPFC_FDMI_SMART_ATTR_version 0x00040000 /* Vendor specific */
1664 #define LPFC_FDMI_SMART_ATTR_model 0x00080000 /* Vendor specific */
1665 #define LPFC_FDMI_SMART_ATTR_port_info 0x00100000 /* Vendor specific */
1666 #define LPFC_FDMI_SMART_ATTR_qos 0x00200000 /* Vendor specific */
1667 #define LPFC_FDMI_SMART_ATTR_security 0x00400000 /* Vendor specific */
1668 #define LPFC_FDMI_VENDOR_ATTR_mi 0x00800000 /* Vendor specific */
1671 #define LPFC_FDMI1_PORT_ATTR 0x0000003f
1674 #define LPFC_FDMI2_PORT_ATTR 0x0000ffff
1677 #define LPFC_FDMI2_SMART_ATTR 0x007fffff
1684 #define LPFC_FDMI_PORTTYPE_UNKNOWN 0
1691 * BAR0, offset 0x10 - SLIM base memory address
1692 * BAR1, offset 0x14 - SLIM base memory high address
1693 * BAR2, offset 0x18 - REGISTER base memory address
1694 * BAR3, offset 0x1c - REGISTER base memory high address
1695 * BAR4, offset 0x20 - BIU I/O registers
1696 * BAR5, offset 0x24 - REGISTER base io high address
1707 #define OWN_HOST 0
1713 #define FC_NET_HDR 0x20
1716 #define PCI_VENDOR_ID_EMULEX 0x10df
1717 #define PCI_DEVICE_ID_FIREFLY 0x1ae5
1718 #define PCI_DEVICE_ID_PROTEUS_VF 0xe100
1719 #define PCI_DEVICE_ID_BALIUS 0xe131
1720 #define PCI_DEVICE_ID_PROTEUS_PF 0xe180
1721 #define PCI_DEVICE_ID_LANCER_FC 0xe200
1722 #define PCI_DEVICE_ID_LANCER_FC_VF 0xe208
1723 #define PCI_DEVICE_ID_LANCER_FCOE 0xe260
1724 #define PCI_DEVICE_ID_LANCER_FCOE_VF 0xe268
1725 #define PCI_DEVICE_ID_LANCER_G6_FC 0xe300
1726 #define PCI_DEVICE_ID_LANCER_G7_FC 0xf400
1727 #define PCI_DEVICE_ID_LANCER_G7P_FC 0xf500
1728 #define PCI_DEVICE_ID_SAT_SMB 0xf011
1729 #define PCI_DEVICE_ID_SAT_MID 0xf015
1730 #define PCI_DEVICE_ID_RFLY 0xf095
1731 #define PCI_DEVICE_ID_PFLY 0xf098
1732 #define PCI_DEVICE_ID_LP101 0xf0a1
1733 #define PCI_DEVICE_ID_TFLY 0xf0a5
1734 #define PCI_DEVICE_ID_BSMB 0xf0d1
1735 #define PCI_DEVICE_ID_BMID 0xf0d5
1736 #define PCI_DEVICE_ID_ZSMB 0xf0e1
1737 #define PCI_DEVICE_ID_ZMID 0xf0e5
1738 #define PCI_DEVICE_ID_NEPTUNE 0xf0f5
1739 #define PCI_DEVICE_ID_NEPTUNE_SCSP 0xf0f6
1740 #define PCI_DEVICE_ID_NEPTUNE_DCSP 0xf0f7
1741 #define PCI_DEVICE_ID_SAT 0xf100
1742 #define PCI_DEVICE_ID_SAT_SCSP 0xf111
1743 #define PCI_DEVICE_ID_SAT_DCSP 0xf112
1744 #define PCI_DEVICE_ID_FALCON 0xf180
1745 #define PCI_DEVICE_ID_SUPERFLY 0xf700
1746 #define PCI_DEVICE_ID_DRAGONFLY 0xf800
1747 #define PCI_DEVICE_ID_CENTAUR 0xf900
1748 #define PCI_DEVICE_ID_PEGASUS 0xf980
1749 #define PCI_DEVICE_ID_THOR 0xfa00
1750 #define PCI_DEVICE_ID_VIPER 0xfb00
1751 #define PCI_DEVICE_ID_LP10000S 0xfc00
1752 #define PCI_DEVICE_ID_LP11000S 0xfc10
1753 #define PCI_DEVICE_ID_LPE11000S 0xfc20
1754 #define PCI_DEVICE_ID_SAT_S 0xfc40
1755 #define PCI_DEVICE_ID_PROTEUS_S 0xfc50
1756 #define PCI_DEVICE_ID_HELIOS 0xfd00
1757 #define PCI_DEVICE_ID_HELIOS_SCSP 0xfd11
1758 #define PCI_DEVICE_ID_HELIOS_DCSP 0xfd12
1759 #define PCI_DEVICE_ID_ZEPHYR 0xfe00
1760 #define PCI_DEVICE_ID_ZEPHYR_SCSP 0xfe11
1761 #define PCI_DEVICE_ID_ZEPHYR_DCSP 0xfe12
1762 #define PCI_VENDOR_ID_SERVERENGINE 0x19a2
1763 #define PCI_DEVICE_ID_TIGERSHARK 0x0704
1764 #define PCI_DEVICE_ID_TOMCAT 0x0714
1765 #define PCI_DEVICE_ID_SKYHAWK 0x0724
1766 #define PCI_DEVICE_ID_SKYHAWK_VF 0x072c
1767 #define PCI_VENDOR_ID_ATTO 0x117c
1768 #define PCI_DEVICE_ID_CLRY_16XE 0x0064
1769 #define PCI_DEVICE_ID_CLRY_161E 0x0063
1770 #define PCI_DEVICE_ID_CLRY_162E 0x0064
1771 #define PCI_DEVICE_ID_CLRY_164E 0x0065
1772 #define PCI_DEVICE_ID_CLRY_16XP 0x0094
1773 #define PCI_DEVICE_ID_CLRY_161P 0x00a0
1774 #define PCI_DEVICE_ID_CLRY_162P 0x0094
1775 #define PCI_DEVICE_ID_CLRY_164P 0x00a1
1776 #define PCI_DEVICE_ID_CLRY_32XE 0x0094
1777 #define PCI_DEVICE_ID_CLRY_321E 0x00a2
1778 #define PCI_DEVICE_ID_CLRY_322E 0x00a3
1779 #define PCI_DEVICE_ID_CLRY_324E 0x00ac
1780 #define PCI_DEVICE_ID_CLRY_32XP 0x00bb
1781 #define PCI_DEVICE_ID_CLRY_321P 0x00bc
1782 #define PCI_DEVICE_ID_CLRY_322P 0x00bd
1783 #define PCI_DEVICE_ID_CLRY_324P 0x00be
1784 #define PCI_DEVICE_ID_TLFC_2 0x0064
1785 #define PCI_DEVICE_ID_TLFC_2XX2 0x4064
1786 #define PCI_DEVICE_ID_TLFC_3 0x0094
1787 #define PCI_DEVICE_ID_TLFC_3162 0x40a6
1788 #define PCI_DEVICE_ID_TLFC_3322 0x40a7
1790 #define JEDEC_ID_ADDRESS 0x0080001c
1791 #define FIREFLY_JEDEC_ID 0x1ACC
1792 #define SUPERFLY_JEDEC_ID 0x0020
1793 #define DRAGONFLY_JEDEC_ID 0x0021
1794 #define DRAGONFLY_V2_JEDEC_ID 0x0025
1795 #define CENTAUR_2G_JEDEC_ID 0x0026
1796 #define CENTAUR_1G_JEDEC_ID 0x0028
1797 #define PEGASUS_ORION_JEDEC_ID 0x0036
1798 #define PEGASUS_JEDEC_ID 0x0038
1799 #define THOR_JEDEC_ID 0x0012
1800 #define HELIOS_JEDEC_ID 0x0364
1801 #define ZEPHYR_JEDEC_ID 0x0577
1802 #define VIPER_JEDEC_ID 0x4838
1803 #define SATURN_JEDEC_ID 0x1004
1805 #define JEDEC_ID_MASK 0x0FFFF000
1825 #define HA_REG_OFFSET 0 /* Byte offset from register base address */
1827 #define HA_R0RE_REQ 0x00000001 /* Bit 0 */
1828 #define HA_R0CE_RSP 0x00000002 /* Bit 1 */
1829 #define HA_R0ATT 0x00000008 /* Bit 3 */
1830 #define HA_R1RE_REQ 0x00000010 /* Bit 4 */
1831 #define HA_R1CE_RSP 0x00000020 /* Bit 5 */
1832 #define HA_R1ATT 0x00000080 /* Bit 7 */
1833 #define HA_R2RE_REQ 0x00000100 /* Bit 8 */
1834 #define HA_R2CE_RSP 0x00000200 /* Bit 9 */
1835 #define HA_R2ATT 0x00000800 /* Bit 11 */
1836 #define HA_R3RE_REQ 0x00001000 /* Bit 12 */
1837 #define HA_R3CE_RSP 0x00002000 /* Bit 13 */
1838 #define HA_R3ATT 0x00008000 /* Bit 15 */
1839 #define HA_LATT 0x20000000 /* Bit 29 */
1840 #define HA_MBATT 0x40000000 /* Bit 30 */
1841 #define HA_ERATT 0x80000000 /* Bit 31 */
1843 #define HA_RXRE_REQ 0x00000001 /* Bit 0 */
1844 #define HA_RXCE_RSP 0x00000002 /* Bit 1 */
1845 #define HA_RXATT 0x00000008 /* Bit 3 */
1846 #define HA_RXMASK 0x0000000f
1864 #define CA_R0CE_REQ 0x00000001 /* Bit 0 */
1865 #define CA_R0RE_RSP 0x00000002 /* Bit 1 */
1866 #define CA_R0ATT 0x00000008 /* Bit 3 */
1867 #define CA_R1CE_REQ 0x00000010 /* Bit 4 */
1868 #define CA_R1RE_RSP 0x00000020 /* Bit 5 */
1869 #define CA_R1ATT 0x00000080 /* Bit 7 */
1870 #define CA_R2CE_REQ 0x00000100 /* Bit 8 */
1871 #define CA_R2RE_RSP 0x00000200 /* Bit 9 */
1872 #define CA_R2ATT 0x00000800 /* Bit 11 */
1873 #define CA_R3CE_REQ 0x00001000 /* Bit 12 */
1874 #define CA_R3RE_RSP 0x00002000 /* Bit 13 */
1875 #define CA_R3ATT 0x00008000 /* Bit 15 */
1876 #define CA_MBATT 0x40000000 /* Bit 30 */
1882 #define HS_MBRDY 0x00400000 /* Bit 22 */
1883 #define HS_FFRDY 0x00800000 /* Bit 23 */
1884 #define HS_FFER8 0x01000000 /* Bit 24 */
1885 #define HS_FFER7 0x02000000 /* Bit 25 */
1886 #define HS_FFER6 0x04000000 /* Bit 26 */
1887 #define HS_FFER5 0x08000000 /* Bit 27 */
1888 #define HS_FFER4 0x10000000 /* Bit 28 */
1889 #define HS_FFER3 0x20000000 /* Bit 29 */
1890 #define HS_FFER2 0x40000000 /* Bit 30 */
1891 #define HS_FFER1 0x80000000 /* Bit 31 */
1892 #define HS_CRIT_TEMP 0x00000100 /* Bit 8 */
1893 #define HS_FFERM 0xFF000100 /* Mask for error bits 31:24 and 8 */
1894 #define UNPLUG_ERR 0x00000001 /* Indicate pci hot unplug */
1899 #define HC_MBINT_ENA 0x00000001 /* Bit 0 */
1900 #define HC_R0INT_ENA 0x00000002 /* Bit 1 */
1901 #define HC_R1INT_ENA 0x00000004 /* Bit 2 */
1902 #define HC_R2INT_ENA 0x00000008 /* Bit 3 */
1903 #define HC_R3INT_ENA 0x00000010 /* Bit 4 */
1904 #define HC_INITHBI 0x02000000 /* Bit 25 */
1905 #define HC_INITMB 0x04000000 /* Bit 26 */
1906 #define HC_INITFF 0x08000000 /* Bit 27 */
1907 #define HC_LAINT_ENA 0x20000000 /* Bit 29 */
1908 #define HC_ERINT_ENA 0x80000000 /* Bit 31 */
1911 #define MSIX_DFLT_ID 0
1912 #define MSIX_RNG0_ID 0
1924 #define MBX_SHUTDOWN 0x00 /* terminate testing */
1925 #define MBX_LOAD_SM 0x01
1926 #define MBX_READ_NV 0x02
1927 #define MBX_WRITE_NV 0x03
1928 #define MBX_RUN_BIU_DIAG 0x04
1929 #define MBX_INIT_LINK 0x05
1930 #define MBX_DOWN_LINK 0x06
1931 #define MBX_CONFIG_LINK 0x07
1932 #define MBX_CONFIG_RING 0x09
1933 #define MBX_RESET_RING 0x0A
1934 #define MBX_READ_CONFIG 0x0B
1935 #define MBX_READ_RCONFIG 0x0C
1936 #define MBX_READ_SPARM 0x0D
1937 #define MBX_READ_STATUS 0x0E
1938 #define MBX_READ_RPI 0x0F
1939 #define MBX_READ_XRI 0x10
1940 #define MBX_READ_REV 0x11
1941 #define MBX_READ_LNK_STAT 0x12
1942 #define MBX_REG_LOGIN 0x13
1943 #define MBX_UNREG_LOGIN 0x14
1944 #define MBX_CLEAR_LA 0x16
1945 #define MBX_DUMP_MEMORY 0x17
1946 #define MBX_DUMP_CONTEXT 0x18
1947 #define MBX_RUN_DIAGS 0x19
1948 #define MBX_RESTART 0x1A
1949 #define MBX_UPDATE_CFG 0x1B
1950 #define MBX_DOWN_LOAD 0x1C
1951 #define MBX_DEL_LD_ENTRY 0x1D
1952 #define MBX_RUN_PROGRAM 0x1E
1953 #define MBX_SET_MASK 0x20
1954 #define MBX_SET_VARIABLE 0x21
1955 #define MBX_UNREG_D_ID 0x23
1956 #define MBX_KILL_BOARD 0x24
1957 #define MBX_CONFIG_FARP 0x25
1958 #define MBX_BEACON 0x2A
1959 #define MBX_CONFIG_MSI 0x30
1960 #define MBX_HEARTBEAT 0x31
1961 #define MBX_WRITE_VPARMS 0x32
1962 #define MBX_ASYNCEVT_ENABLE 0x33
1963 #define MBX_READ_EVENT_LOG_STATUS 0x37
1964 #define MBX_READ_EVENT_LOG 0x38
1965 #define MBX_WRITE_EVENT_LOG 0x39
1967 #define MBX_PORT_CAPABILITIES 0x3B
1968 #define MBX_PORT_IOV_CONTROL 0x3C
1970 #define MBX_CONFIG_HBQ 0x7C
1971 #define MBX_LOAD_AREA 0x81
1972 #define MBX_RUN_BIU_DIAG64 0x84
1973 #define MBX_CONFIG_PORT 0x88
1974 #define MBX_READ_SPARM64 0x8D
1975 #define MBX_READ_RPI64 0x8F
1976 #define MBX_REG_LOGIN64 0x93
1977 #define MBX_READ_TOPOLOGY 0x95
1978 #define MBX_REG_VPI 0x96
1979 #define MBX_UNREG_VPI 0x97
1981 #define MBX_WRITE_WWN 0x98
1982 #define MBX_SET_DEBUG 0x99
1983 #define MBX_LOAD_EXP_ROM 0x9C
1984 #define MBX_SLI4_CONFIG 0x9B
1985 #define MBX_SLI4_REQ_FTRS 0x9D
1986 #define MBX_MAX_CMDS 0x9E
1987 #define MBX_RESUME_RPI 0x9E
1988 #define MBX_SLI2_CMD_MASK 0x80
1989 #define MBX_REG_VFI 0x9F
1990 #define MBX_REG_FCFI 0xA0
1991 #define MBX_UNREG_VFI 0xA1
1992 #define MBX_UNREG_FCFI 0xA2
1993 #define MBX_INIT_VFI 0xA3
1994 #define MBX_INIT_VPI 0xA4
1995 #define MBX_ACCESS_VDATA 0xA5
1996 #define MBX_REG_FCFI_MRQ 0xAF
1998 #define MBX_AUTH_PORT 0xF8
1999 #define MBX_SECURITY_MGMT 0xF9
2003 #define CMD_RCV_SEQUENCE_CX 0x01
2004 #define CMD_XMIT_SEQUENCE_CR 0x02
2005 #define CMD_XMIT_SEQUENCE_CX 0x03
2006 #define CMD_XMIT_BCAST_CN 0x04
2007 #define CMD_XMIT_BCAST_CX 0x05
2008 #define CMD_QUE_RING_BUF_CN 0x06
2009 #define CMD_QUE_XRI_BUF_CX 0x07
2010 #define CMD_IOCB_CONTINUE_CN 0x08
2011 #define CMD_RET_XRI_BUF_CX 0x09
2012 #define CMD_ELS_REQUEST_CR 0x0A
2013 #define CMD_ELS_REQUEST_CX 0x0B
2014 #define CMD_RCV_ELS_REQ_CX 0x0D
2015 #define CMD_ABORT_XRI_CN 0x0E
2016 #define CMD_ABORT_XRI_CX 0x0F
2017 #define CMD_CLOSE_XRI_CN 0x10
2018 #define CMD_CLOSE_XRI_CX 0x11
2019 #define CMD_CREATE_XRI_CR 0x12
2020 #define CMD_CREATE_XRI_CX 0x13
2021 #define CMD_GET_RPI_CN 0x14
2022 #define CMD_XMIT_ELS_RSP_CX 0x15
2023 #define CMD_GET_RPI_CR 0x16
2024 #define CMD_XRI_ABORTED_CX 0x17
2025 #define CMD_FCP_IWRITE_CR 0x18
2026 #define CMD_FCP_IWRITE_CX 0x19
2027 #define CMD_FCP_IREAD_CR 0x1A
2028 #define CMD_FCP_IREAD_CX 0x1B
2029 #define CMD_FCP_ICMND_CR 0x1C
2030 #define CMD_FCP_ICMND_CX 0x1D
2031 #define CMD_FCP_TSEND_CX 0x1F
2032 #define CMD_FCP_TRECEIVE_CX 0x21
2033 #define CMD_FCP_TRSP_CX 0x23
2034 #define CMD_FCP_AUTO_TRSP_CX 0x29
2036 #define CMD_ADAPTER_MSG 0x20
2037 #define CMD_ADAPTER_DUMP 0x22
2041 #define CMD_ASYNC_STATUS 0x7C
2042 #define CMD_RCV_SEQUENCE64_CX 0x81
2043 #define CMD_XMIT_SEQUENCE64_CR 0x82
2044 #define CMD_XMIT_SEQUENCE64_CX 0x83
2045 #define CMD_XMIT_BCAST64_CN 0x84
2046 #define CMD_XMIT_BCAST64_CX 0x85
2047 #define CMD_QUE_RING_BUF64_CN 0x86
2048 #define CMD_QUE_XRI_BUF64_CX 0x87
2049 #define CMD_IOCB_CONTINUE64_CN 0x88
2050 #define CMD_RET_XRI_BUF64_CX 0x89
2051 #define CMD_ELS_REQUEST64_CR 0x8A
2052 #define CMD_ELS_REQUEST64_CX 0x8B
2053 #define CMD_ABORT_MXRI64_CN 0x8C
2054 #define CMD_RCV_ELS_REQ64_CX 0x8D
2055 #define CMD_XMIT_ELS_RSP64_CX 0x95
2056 #define CMD_XMIT_BLS_RSP64_CX 0x97
2057 #define CMD_FCP_IWRITE64_CR 0x98
2058 #define CMD_FCP_IWRITE64_CX 0x99
2059 #define CMD_FCP_IREAD64_CR 0x9A
2060 #define CMD_FCP_IREAD64_CX 0x9B
2061 #define CMD_FCP_ICMND64_CR 0x9C
2062 #define CMD_FCP_ICMND64_CX 0x9D
2063 #define CMD_FCP_TSEND64_CX 0x9F
2064 #define CMD_FCP_TRECEIVE64_CX 0xA1
2065 #define CMD_FCP_TRSP64_CX 0xA3
2067 #define CMD_QUE_XRI64_CX 0xB3
2068 #define CMD_IOCB_RCV_SEQ64_CX 0xB5
2069 #define CMD_IOCB_RCV_ELS64_CX 0xB7
2070 #define CMD_IOCB_RET_XRI64_CX 0xB9
2071 #define CMD_IOCB_RCV_CONT64_CX 0xBB
2073 #define CMD_GEN_REQUEST64_CR 0xC2
2074 #define CMD_GEN_REQUEST64_CX 0xC3
2077 #define CMD_IOCB_XMIT_MSEQ64_CR 0xB0
2078 #define CMD_IOCB_XMIT_MSEQ64_CX 0xB1
2079 #define CMD_IOCB_RCV_SEQ_LIST64_CX 0xC1
2080 #define CMD_IOCB_RCV_ELS_LIST64_CX 0xCD
2081 #define CMD_IOCB_CLOSE_EXTENDED_CN 0xB6
2082 #define CMD_IOCB_ABORT_EXTENDED_CN 0xBA
2083 #define CMD_IOCB_RET_HBQE64_CN 0xCA
2084 #define CMD_IOCB_FCP_IBIDIR64_CR 0xAC
2085 #define CMD_IOCB_FCP_IBIDIR64_CX 0xAD
2086 #define CMD_IOCB_FCP_ITASKMGT64_CX 0xAF
2087 #define CMD_IOCB_LOGENTRY_CN 0x94
2088 #define CMD_IOCB_LOGENTRY_ASYNC_CN 0x96
2091 #define DSSCMD_IWRITE64_CR 0xF8
2092 #define DSSCMD_IWRITE64_CX 0xF9
2093 #define DSSCMD_IREAD64_CR 0xFA
2094 #define DSSCMD_IREAD64_CX 0xFB
2096 #define CMD_MAX_IOCB_CMD 0xFB
2097 #define CMD_IOCB_MASK 0xff
2105 #define MBX_SUCCESS 0
2122 #define MBXERR_LINK_DOWN 0x33
2123 #define MBXERR_SEC_NO_PERMISSION 0xF02
2126 #define MBX_BUSY 0xffffff /* Attempted cmd to busy Mailbox */
2127 #define MBX_TIMEOUT 0xfffffe /* time-out expired waiting for */
2129 #define TEMPERATURE_OFFSET 0xB0 /* Slim offset for critical temperature event */
2176 uint32_t addrLow; /* Address 0:31 */
2186 LPFC_PG_TYPE_INVALID = 0, /* used to indicate errors */
2193 #define LPFC_PDE5_DESCRIPTOR 0x85
2194 #define LPFC_PDE6_DESCRIPTOR 0x86
2195 #define LPFC_PDE7_DESCRIPTOR 0x87
2198 #define BG_OP_IN_NODIF_OUT_CRC 0x0
2199 #define BG_OP_IN_CRC_OUT_NODIF 0x1
2200 #define BG_OP_IN_NODIF_OUT_CSUM 0x2
2201 #define BG_OP_IN_CSUM_OUT_NODIF 0x3
2202 #define BG_OP_IN_CRC_OUT_CRC 0x4
2203 #define BG_OP_IN_CSUM_OUT_CSUM 0x5
2204 #define BG_OP_IN_CRC_OUT_CSUM 0x6
2205 #define BG_OP_IN_CSUM_OUT_CRC 0x7
2206 #define BG_OP_RAW_MODE 0x8
2211 #define pde5_type_MASK 0x000000ff
2213 #define pde5_rsvd0_SHIFT 0
2214 #define pde5_rsvd0_MASK 0x00ffffff
2223 #define pde6_type_MASK 0x000000ff
2225 #define pde6_rsvd0_SHIFT 0
2226 #define pde6_rsvd0_MASK 0x00ffffff
2230 #define pde6_rsvd1_MASK 0x0000003f
2233 #define pde6_na_MASK 0x00000001
2236 #define pde6_rsvd2_MASK 0x000001FF
2238 #define pde6_apptagtr_SHIFT 0
2239 #define pde6_apptagtr_MASK 0x0000ffff
2243 #define pde6_optx_MASK 0x0000000f
2246 #define pde6_oprx_MASK 0x0000000f
2249 #define pde6_nr_MASK 0x00000001
2252 #define pde6_ce_MASK 0x00000001
2255 #define pde6_re_MASK 0x00000001
2258 #define pde6_ae_MASK 0x00000001
2261 #define pde6_ai_MASK 0x00000001
2264 #define pde6_bs_MASK 0x00000007
2266 #define pde6_apptagval_SHIFT 0
2267 #define pde6_apptagval_MASK 0x0000ffff
2274 #define pde7_type_MASK 0x000000ff
2276 #define pde7_rsvd0_SHIFT 0
2277 #define pde7_rsvd0_MASK 0x00ffffff
2356 /* Structure for MB Command RUN_BIU_DIAG64 (0x84) */
2372 /* Structure for MB command READ_EVENT_LOG (0x38) */
2376 #define lpfc_event_log_MASK 0x00000001
2404 #define FLAGS_TOPOLOGY_MODE_LOOP_PT 0x00 /* Attempt loop then pt-pt */
2405 #define FLAGS_LOCAL_LB 0x01 /* link_flags (=1) ENDEC loopback */
2406 #define FLAGS_TOPOLOGY_MODE_PT_PT 0x02 /* Attempt pt-pt only */
2407 #define FLAGS_TOPOLOGY_MODE_LOOP 0x04 /* Attempt loop only */
2408 #define FLAGS_TOPOLOGY_MODE_PT_LOOP 0x06 /* Attempt pt-pt then loop */
2409 #define FLAGS_UNREG_LOGIN_ALL 0x08 /* UNREG_LOGIN all on link down */
2410 #define FLAGS_LIRP_LILP 0x80 /* LIRP / LILP is disabled */
2412 #define FLAGS_TOPOLOGY_FAILOVER 0x0400 /* Bit 10 */
2413 #define FLAGS_LINK_SPEED 0x0800 /* Bit 11 */
2414 #define FLAGS_IMED_ABORT 0x04000 /* Bit 14 */
2417 #define LINK_SPEED_AUTO 0x0 /* Auto selection */
2418 #define LINK_SPEED_1G 0x1 /* 1 Gigabaud */
2419 #define LINK_SPEED_2G 0x2 /* 2 Gigabaud */
2420 #define LINK_SPEED_4G 0x4 /* 4 Gigabaud */
2421 #define LINK_SPEED_8G 0x8 /* 8 Gigabaud */
2422 #define LINK_SPEED_10G 0x10 /* 10 Gigabaud */
2423 #define LINK_SPEED_16G 0x11 /* 16 Gigabaud */
2424 #define LINK_SPEED_32G 0x14 /* 32 Gigabaud */
2425 #define LINK_SPEED_64G 0x17 /* 64 Gigabaud */
2426 #define LINK_SPEED_128G 0x1A /* 128 Gigabaud */
2427 #define LINK_SPEED_256G 0x1D /* 256 Gigabaud */
2604 #define LMT_RESERVED 0x000 /* Not used */
2605 #define LMT_1Gb 0x004
2606 #define LMT_2Gb 0x008
2607 #define LMT_4Gb 0x040
2608 #define LMT_8Gb 0x080
2609 #define LMT_10Gb 0x100
2610 #define LMT_16Gb 0x200
2611 #define LMT_32Gb 0x400
2612 #define LMT_64Gb 0x800
2613 #define LMT_128Gb 0x1000
2614 #define LMT_256Gb 0x2000
2680 /* Structure for MB Command READ_SPARM64 (0x8D) */
2701 RD_ST_CC = 0x01,
2702 RD_ST_XKB = 0x80,
2706 RD_ST_XMIT_XKB_MASK = 0x3fffff,
2710 RD_ST_RCV_XKB_MASK = 0x3fffff,
2714 u8 clear_counters; /* rsvd 7:1, cc 0 */
2717 u8 xkb; /* xkb 7, rsvd 6:0 */
2737 u32 xmit_xkb; /* rsvd 31:22, xmit_xkb 21:0 */
2738 u32 rcv_xkb; /* rsvd 31:22, rcv_xkb 21:0 */
2742 /* Structure for MB Command READ_RPI64 (0x8F) */
2881 #define lpfc_read_link_stat_rec_SHIFT 0
2882 #define lpfc_read_link_stat_rec_MASK 0x1
2886 #define lpfc_read_link_stat_gec_MASK 0x1
2890 #define lpfc_read_link_stat_w02oftow23of_MASK 0x3FFFFF
2894 #define lpfc_read_link_stat_rsvd_MASK 0x1F
2898 #define lpfc_read_link_stat_gec2_MASK 0x1
2902 #define lpfc_read_link_stat_clrc_MASK 0x1
2906 #define lpfc_read_link_stat_clof_MASK 0x1
2934 /* Structure for MB Command REG_LOGIN64 (0x93) */
3004 /* Structure for MB Command REG_VPI (0x96) */
3027 /* Structure for MB Command UNREG_VPI (0x97) */
3049 /* Structure for MB Command UNREG_D_ID (0x23) */
3066 /* Structure for MB Command READ_TOPOLOGY (0x95) */
3071 #define lpfc_mbx_read_top_fa_MASK 0x00000001
3074 #define lpfc_mbx_read_top_mm_MASK 0x00000001
3077 #define lpfc_mbx_read_top_pb_MASK 0X00000001
3080 #define lpfc_mbx_read_top_il_MASK 0x00000001
3082 #define lpfc_mbx_read_top_att_type_SHIFT 0
3083 #define lpfc_mbx_read_top_att_type_MASK 0x000000FF
3085 #define LPFC_ATT_RESERVED 0x00 /* Reserved - attType */
3086 #define LPFC_ATT_LINK_UP 0x01 /* Link is up */
3087 #define LPFC_ATT_LINK_DOWN 0x02 /* Link is down */
3088 #define LPFC_ATT_UNEXP_WWPN 0x06 /* Link is down Unexpected WWWPN */
3091 #define lpfc_mbx_read_top_alpa_granted_MASK 0x000000FF
3094 #define lpfc_mbx_read_top_lip_alps_MASK 0x000000FF
3097 #define lpfc_mbx_read_top_lip_type_MASK 0x000000FF
3099 #define lpfc_mbx_read_top_topology_SHIFT 0
3100 #define lpfc_mbx_read_top_topology_MASK 0x000000FF
3102 #define LPFC_TOPOLOGY_PT_PT 0x01 /* Topology is pt-pt / pt-fabric */
3103 #define LPFC_TOPOLOGY_LOOP 0x02 /* Topology is FC-AL */
3109 #define lpfc_mbx_read_top_ld_lu_MASK 0x00000001
3112 #define lpfc_mbx_read_top_ld_tf_MASK 0x00000001
3115 #define lpfc_mbx_read_top_ld_link_spd_MASK 0x000000FF
3118 #define lpfc_mbx_read_top_ld_nl_port_MASK 0x0000000F
3121 #define lpfc_mbx_read_top_ld_tx_MASK 0x00000003
3123 #define lpfc_mbx_read_top_ld_rx_SHIFT 0
3124 #define lpfc_mbx_read_top_ld_rx_MASK 0x00000003
3128 #define lpfc_mbx_read_top_lu_MASK 0x00000001
3131 #define lpfc_mbx_read_top_tf_MASK 0x00000001
3134 #define lpfc_mbx_read_top_link_spd_MASK 0x000000FF
3137 #define lpfc_mbx_read_top_nl_port_MASK 0x0000000F
3140 #define lpfc_mbx_read_top_tx_MASK 0x00000003
3142 #define lpfc_mbx_read_top_rx_SHIFT 0
3143 #define lpfc_mbx_read_top_rx_MASK 0x00000003
3145 #define LPFC_LINK_SPEED_UNKNOWN 0x0
3146 #define LPFC_LINK_SPEED_1GHZ 0x04
3147 #define LPFC_LINK_SPEED_2GHZ 0x08
3148 #define LPFC_LINK_SPEED_4GHZ 0x10
3149 #define LPFC_LINK_SPEED_8GHZ 0x20
3150 #define LPFC_LINK_SPEED_10GHZ 0x40
3151 #define LPFC_LINK_SPEED_16GHZ 0x80
3152 #define LPFC_LINK_SPEED_32GHZ 0x90
3153 #define LPFC_LINK_SPEED_64GHZ 0xA0
3154 #define LPFC_LINK_SPEED_128GHZ 0xB0
3155 #define LPFC_LINK_SPEED_256GHZ 0xC0
3191 #define DMP_MEM_REG 0x1
3192 #define DMP_NV_PARAMS 0x2
3193 #define DMP_LMSD 0x3 /* Link Module Serial Data */
3194 #define DMP_WELL_KNOWN 0x4
3196 #define DMP_REGION_VPD 0xe
3197 #define DMP_VPD_SIZE 0x400 /* maximum amount of VPD */
3198 #define DMP_RSP_OFFSET 0x14 /* word 5 contains first word of rsp */
3199 #define DMP_RSP_SIZE 0x6C /* maximum of 27 words of rsp data */
3201 #define DMP_REGION_VPORT 0x16 /* VPort info region */
3202 #define DMP_VPORT_REGION_SIZE 0x200
3203 #define DMP_MBOX_OFFSET_WORD 0x5
3205 #define DMP_REGION_23 0x17 /* fcoe param and port state region */
3206 #define DMP_RGN23_SIZE 0x400
3216 #define VPORT_INFO_SIG 0x32324752
3217 #define VPORT_INFO_REV_MASK 0xff
3218 #define VPORT_INFO_REV 0x1
3248 /* Structure for MB Command UPDATE_CFG (0x1B) */
3419 /* Structure for MB Command CONFIG_PORT (0x88) */
3427 uint32_t pcbLen : 24; /* bit 23:0 of memory based port
3430 uint32_t pcbLen : 24; /* bit 23:0 of memory based port
3439 uint32_t pcbLow; /* bit 31:0 of memory based port config block */
3533 /* Structure for MB Command CONFIG_MSI (0x30) */
3570 #define SLIMOFF 0x30 /* WORD */
3585 #define TYPE_NATIVE_SLI2 0x01
3587 #define FEATURE_INITIAL_SLI2 0x01
3594 #define FEATURE_INITIAL_SLI2 0x01
3596 #define TYPE_NATIVE_SLI2 0x01
3637 /* Structure for MB Command MBX_ASYNCEVT_ENABLE (0x33) */
3642 uint32_t ring:2; /* Ring for ASYNC_EVENT iocb Bits 0-1*/
3644 uint32_t ring:2; /* Ring for ASYNC_EVENT iocb Bits 0-1*/
3655 #define MAILBOX_HBA_EXT_OFFSET 0x100
3685 UNREG_D_ID_VAR varUnregDID; /* cmd = 0x23 (UNREG_D_ID) */
3686 CONFIG_FARP_VAR varCfgFarp; /* cmd = 0x25 (CONFIG_FARP)
3689 struct config_hbq_var varCfgHbq;/* cmd = 0x7c (CONFIG_HBQ) */
3690 struct update_cfg_var varUpdateCfg; /* cmd = 0x1B (UPDATE_CFG)*/
3691 CONFIG_PORT_VAR varCfgPort; /* cmd = 0x88 (CONFIG_PORT) */
3692 struct lpfc_mbx_read_top varReadTop; /* cmd = 0x95 (READ_TOPOLOGY) */
3693 REG_VPI_VAR varRegVpi; /* cmd = 0x96 (REG_VPI) */
3694 UNREG_VPI_VAR varUnregVpi; /* cmd = 0x97 (UNREG_VPI) */
3696 struct READ_EVENT_LOG_VAR varRdEventLog; /* cmd = 0x38
3782 #define RJT_BAD_D_ID 0x01 /* Invalid D_ID field */
3783 #define RJT_BAD_S_ID 0x02 /* Invalid S_ID field */
3784 #define RJT_UNAVAIL_TEMP 0x03 /* N_Port unavailable temp. */
3785 #define RJT_UNAVAIL_PERM 0x04 /* N_Port unavailable perm. */
3786 #define RJT_UNSUP_CLASS 0x05 /* Class not supported */
3787 #define RJT_DELIM_ERR 0x06 /* Delimiter usage error */
3788 #define RJT_UNSUP_TYPE 0x07 /* Type not supported */
3789 #define RJT_BAD_CONTROL 0x08 /* Invalid link conrtol */
3790 #define RJT_BAD_RCTL 0x09 /* R_CTL invalid */
3791 #define RJT_BAD_FCTL 0x0A /* F_CTL invalid */
3792 #define RJT_BAD_OXID 0x0B /* OX_ID invalid */
3793 #define RJT_BAD_RXID 0x0C /* RX_ID invalid */
3794 #define RJT_BAD_SEQID 0x0D /* SEQ_ID invalid */
3795 #define RJT_BAD_DFCTL 0x0E /* DF_CTL invalid */
3796 #define RJT_BAD_SEQCNT 0x0F /* SEQ_CNT invalid */
3797 #define RJT_BAD_PARM 0x10 /* Param. field invalid */
3798 #define RJT_XCHG_ERR 0x11 /* Exchange error */
3799 #define RJT_PROT_ERR 0x12 /* Protocol error */
3800 #define RJT_BAD_LENGTH 0x13 /* Invalid Length */
3801 #define RJT_UNEXPECTED_ACK 0x14 /* Unexpected ACK */
3802 #define RJT_LOGIN_REQUIRED 0x16 /* Login required */
3803 #define RJT_TOO_MANY_SEQ 0x17 /* Excessive sequences */
3804 #define RJT_XCHG_NOT_STRT 0x18 /* Exchange not started */
3805 #define RJT_UNSUP_SEC_HDR 0x19 /* Security hdr not supported */
3806 #define RJT_UNAVAIL_PATH 0x1A /* Fabric Path not available */
3807 #define RJT_VENDOR_UNIQUE 0xFF /* Vendor unique error */
3809 #define IOERR_SUCCESS 0x00 /* statLocalError */
3810 #define IOERR_MISSING_CONTINUE 0x01
3811 #define IOERR_SEQUENCE_TIMEOUT 0x02
3812 #define IOERR_INTERNAL_ERROR 0x03
3813 #define IOERR_INVALID_RPI 0x04
3814 #define IOERR_NO_XRI 0x05
3815 #define IOERR_ILLEGAL_COMMAND 0x06
3816 #define IOERR_XCHG_DROPPED 0x07
3817 #define IOERR_ILLEGAL_FIELD 0x08
3818 #define IOERR_RPI_SUSPENDED 0x09
3819 #define IOERR_TOO_MANY_BUFFERS 0x0A
3820 #define IOERR_RCV_BUFFER_WAITING 0x0B
3821 #define IOERR_NO_CONNECTION 0x0C
3822 #define IOERR_TX_DMA_FAILED 0x0D
3823 #define IOERR_RX_DMA_FAILED 0x0E
3824 #define IOERR_ILLEGAL_FRAME 0x0F
3825 #define IOERR_EXTRA_DATA 0x10
3826 #define IOERR_NO_RESOURCES 0x11
3827 #define IOERR_RESERVED 0x12
3828 #define IOERR_ILLEGAL_LENGTH 0x13
3829 #define IOERR_UNSUPPORTED_FEATURE 0x14
3830 #define IOERR_ABORT_IN_PROGRESS 0x15
3831 #define IOERR_ABORT_REQUESTED 0x16
3832 #define IOERR_RECEIVE_BUFFER_TIMEOUT 0x17
3833 #define IOERR_LOOP_OPEN_FAILURE 0x18
3834 #define IOERR_RING_RESET 0x19
3835 #define IOERR_LINK_DOWN 0x1A
3836 #define IOERR_CORRUPTED_DATA 0x1B
3837 #define IOERR_CORRUPTED_RPI 0x1C
3838 #define IOERR_OUT_OF_ORDER_DATA 0x1D
3839 #define IOERR_OUT_OF_ORDER_ACK 0x1E
3840 #define IOERR_DUP_FRAME 0x1F
3841 #define IOERR_LINK_CONTROL_FRAME 0x20 /* ACK_N received */
3842 #define IOERR_BAD_HOST_ADDRESS 0x21
3843 #define IOERR_RCV_HDRBUF_WAITING 0x22
3844 #define IOERR_MISSING_HDR_BUFFER 0x23
3845 #define IOERR_MSEQ_CHAIN_CORRUPTED 0x24
3846 #define IOERR_ABORTMULT_REQUESTED 0x25
3847 #define IOERR_BUFFER_SHORTAGE 0x28
3848 #define IOERR_DEFAULT 0x29
3849 #define IOERR_CNT 0x2A
3850 #define IOERR_SLER_FAILURE 0x46
3851 #define IOERR_SLER_CMD_RCV_FAILURE 0x47
3852 #define IOERR_SLER_REC_RJT_ERR 0x48
3853 #define IOERR_SLER_REC_SRR_RETRY_ERR 0x49
3854 #define IOERR_SLER_SRR_RJT_ERR 0x4A
3855 #define IOERR_SLER_RRQ_RJT_ERR 0x4C
3856 #define IOERR_SLER_RRQ_RETRY_ERR 0x4D
3857 #define IOERR_SLER_ABTS_ERR 0x4E
3858 #define IOERR_ELXSEC_KEY_UNWRAP_ERROR 0xF0
3859 #define IOERR_ELXSEC_KEY_UNWRAP_COMPARE_ERROR 0xF1
3860 #define IOERR_ELXSEC_CRYPTO_ERROR 0xF2
3861 #define IOERR_ELXSEC_CRYPTO_COMPARE_ERROR 0xF3
3862 #define IOERR_DRVR_MASK 0x100
3863 #define IOERR_SLI_DOWN 0x101 /* ulpStatus - Driver defined */
3864 #define IOERR_SLI_BRESET 0x102
3865 #define IOERR_SLI_ABORTED 0x103
3866 #define IOERR_PARAM_MASK 0x1ff
3875 uint8_t Fctl; /* Bits 0-7 of IOCB word 5 */
3877 uint8_t Fctl; /* Bits 0-7 of IOCB word 5 */
3883 #define BC 0x02 /* Broadcast Received - Fctl */
3884 #define SI 0x04 /* Sequence Initiative */
3885 #define LA 0x08 /* Ignore Link Attention state */
3886 #define LS 0x80 /* Last Sequence */
3942 #define ABORT_TYPE_ABTX 0x00000000
3943 #define ABORT_TYPE_ABTS 0x00000001
4104 #define ASYNC_TEMP_WARN 0x100
4105 #define ASYNC_TEMP_SAFE 0x101
4106 #define ASYNC_STATUS_CN 0x102
4108 /* IOCB Command template for CMD_IOCB_RCV_ELS64_CX (0xB7)
4109 or CMD_IOCB_RCV_SEQ64_CX (0xB5) */
4136 /* IOCB Command template for QUE_XRI64_CX (0xB3) command */
4155 #define BGS_BIDIR_BG_PROF_MASK 0xff000000
4157 #define BGS_BIDIR_ERR_COND_FLAGS_MASK 0x003f0000
4159 #define BGS_BG_PROFILE_MASK 0x0000ff00
4161 #define BGS_INVALID_PROF_MASK 0x00000020
4163 #define BGS_UNINIT_DIF_BLOCK_MASK 0x00000010
4165 #define BGS_HI_WATER_MARK_PRESENT_MASK 0x00000008
4167 #define BGS_REFTAG_ERR_MASK 0x00000004
4169 #define BGS_APPTAG_ERR_MASK 0x00000002
4171 #define BGS_GUARD_ERR_MASK 0x00000001
4172 #define BGS_GUARD_ERR_SHIFT 0
4357 #define PARM_UNUSED 0 /* PU field (Word 4) not used */
4361 #define CLASS1 0 /* Class 1 */
4366 #define IOSTAT_SUCCESS 0x0 /* ulpStatus - HBA defined */
4367 #define IOSTAT_FCP_RSP_ERROR 0x1
4368 #define IOSTAT_REMOTE_STOP 0x2
4369 #define IOSTAT_LOCAL_REJECT 0x3
4370 #define IOSTAT_NPORT_RJT 0x4
4371 #define IOSTAT_FABRIC_RJT 0x5
4372 #define IOSTAT_NPORT_BSY 0x6
4373 #define IOSTAT_FABRIC_BSY 0x7
4374 #define IOSTAT_INTERMED_RSP 0x8
4375 #define IOSTAT_LS_RJT 0x9
4376 #define IOSTAT_BA_RJT 0xA
4377 #define IOSTAT_RSVD1 0xB
4378 #define IOSTAT_RSVD2 0xC
4379 #define IOSTAT_RSVD3 0xD
4380 #define IOSTAT_RSVD4 0xE
4381 #define IOSTAT_NEED_BUFFER 0xF
4382 #define IOSTAT_DRIVER_REJECT 0x10 /* ulpStatus - Driver defined */
4383 #define IOSTAT_DEFAULT 0xF /* Same as rsvd5 for now */
4384 #define IOSTAT_CNT 0x11
4420 * 0 => FALSE
4437 return 0; in lpfc_is_LC_HBA()