Go to the documentation of this file. 1 #ifndef __57XX_FCOE_HSI_LINUX_LE__
2 #define __57XX_FCOE_HSI_LINUX_LE__
9 #define B577XX_DOORBELL_HDR_RX (0x1<<0)
10 #define B577XX_DOORBELL_HDR_RX_SHIFT 0
11 #define B577XX_DOORBELL_HDR_DB_TYPE (0x1<<1)
12 #define B577XX_DOORBELL_HDR_DB_TYPE_SHIFT 1
13 #define B577XX_DOORBELL_HDR_DPM_SIZE (0x3<<2)
14 #define B577XX_DOORBELL_HDR_DPM_SIZE_SHIFT 2
15 #define B577XX_DOORBELL_HDR_CONN_TYPE (0xF<<4)
16 #define B577XX_DOORBELL_HDR_CONN_TYPE_SHIFT 4
23 #if defined(__BIG_ENDIAN)
27 #elif defined(__LITTLE_ENDIAN)
40 #if defined(__BIG_ENDIAN)
44 #elif defined(__LITTLE_ENDIAN)
118 #define FCOE_FCP_RSP_FLAGS_FCP_RSP_LEN_VALID (0x1<<0)
119 #define FCOE_FCP_RSP_FLAGS_FCP_RSP_LEN_VALID_SHIFT 0
120 #define FCOE_FCP_RSP_FLAGS_FCP_SNS_LEN_VALID (0x1<<1)
121 #define FCOE_FCP_RSP_FLAGS_FCP_SNS_LEN_VALID_SHIFT 1
122 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER (0x1<<2)
123 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER_SHIFT 2
124 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER (0x1<<3)
125 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER_SHIFT 3
126 #define FCOE_FCP_RSP_FLAGS_FCP_CONF_REQ (0x1<<4)
127 #define FCOE_FCP_RSP_FLAGS_FCP_CONF_REQ_SHIFT 4
128 #define FCOE_FCP_RSP_FLAGS_FCP_BIDI_FLAGS (0x7<<5)
129 #define FCOE_FCP_RSP_FLAGS_FCP_BIDI_FLAGS_SHIFT 5
296 #define FCOE_KCQE_RESERVED0 (0x7<<0)
297 #define FCOE_KCQE_RESERVED0_SHIFT 0
298 #define FCOE_KCQE_RAMROD_COMPLETION (0x1<<3)
299 #define FCOE_KCQE_RAMROD_COMPLETION_SHIFT 3
300 #define FCOE_KCQE_LAYER_CODE (0x7<<4)
301 #define FCOE_KCQE_LAYER_CODE_SHIFT 4
302 #define FCOE_KCQE_LINKED_WITH_NEXT (0x1<<7)
303 #define FCOE_KCQE_LINKED_WITH_NEXT_SHIFT 7
314 #define FCOE_KWQE_HEADER_RESERVED0 (0xF<<0)
315 #define FCOE_KWQE_HEADER_RESERVED0_SHIFT 0
316 #define FCOE_KWQE_HEADER_LAYER_CODE (0x7<<4)
317 #define FCOE_KWQE_HEADER_LAYER_CODE_SHIFT 4
318 #define FCOE_KWQE_HEADER_RESERVED1 (0x1<<7)
319 #define FCOE_KWQE_HEADER_RESERVED1_SHIFT 7
339 #define FCOE_KWQE_INIT1_LOG_PAGE_SIZE (0xF<<0)
340 #define FCOE_KWQE_INIT1_LOG_PAGE_SIZE_SHIFT 0
341 #define FCOE_KWQE_INIT1_LOG_CACHED_PBES_PER_FUNC (0x7<<4)
342 #define FCOE_KWQE_INIT1_LOG_CACHED_PBES_PER_FUNC_SHIFT 4
343 #define FCOE_KWQE_INIT1_RESERVED1 (0x1<<7)
344 #define FCOE_KWQE_INIT1_RESERVED1_SHIFT 7
412 #define FCOE_KWQE_CONN_OFFLOAD3_VLAN_ID (0xFFF<<0)
413 #define FCOE_KWQE_CONN_OFFLOAD3_VLAN_ID_SHIFT 0
414 #define FCOE_KWQE_CONN_OFFLOAD3_CFI (0x1<<12)
415 #define FCOE_KWQE_CONN_OFFLOAD3_CFI_SHIFT 12
416 #define FCOE_KWQE_CONN_OFFLOAD3_PRIORITY (0x7<<13)
417 #define FCOE_KWQE_CONN_OFFLOAD3_PRIORITY_SHIFT 13
423 #define FCOE_KWQE_CONN_OFFLOAD3_B_MUL_N_PORT_IDS (0x1<<0)
424 #define FCOE_KWQE_CONN_OFFLOAD3_B_MUL_N_PORT_IDS_SHIFT 0
425 #define FCOE_KWQE_CONN_OFFLOAD3_B_E_D_TOV_RES (0x1<<1)
426 #define FCOE_KWQE_CONN_OFFLOAD3_B_E_D_TOV_RES_SHIFT 1
427 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONT_INCR_SEQ_CNT (0x1<<2)
428 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONT_INCR_SEQ_CNT_SHIFT 2
429 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONF_REQ (0x1<<3)
430 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONF_REQ_SHIFT 3
431 #define FCOE_KWQE_CONN_OFFLOAD3_B_REC_VALID (0x1<<4)
432 #define FCOE_KWQE_CONN_OFFLOAD3_B_REC_VALID_SHIFT 4
433 #define FCOE_KWQE_CONN_OFFLOAD3_B_C2_VALID (0x1<<5)
434 #define FCOE_KWQE_CONN_OFFLOAD3_B_C2_VALID_SHIFT 5
435 #define FCOE_KWQE_CONN_OFFLOAD3_B_ACK_0 (0x1<<6)
436 #define FCOE_KWQE_CONN_OFFLOAD3_B_ACK_0_SHIFT 6
437 #define FCOE_KWQE_CONN_OFFLOAD3_B_VLAN_FLAG (0x1<<7)
438 #define FCOE_KWQE_CONN_OFFLOAD3_B_VLAN_FLAG_SHIFT 7
478 #define FCOE_KWQE_CONN_ENABLE_DISABLE_VLAN_ID (0xFFF<<0)
479 #define FCOE_KWQE_CONN_ENABLE_DISABLE_VLAN_ID_SHIFT 0
480 #define FCOE_KWQE_CONN_ENABLE_DISABLE_CFI (0x1<<12)
481 #define FCOE_KWQE_CONN_ENABLE_DISABLE_CFI_SHIFT 12
482 #define FCOE_KWQE_CONN_ENABLE_DISABLE_PRIORITY (0x7<<13)
483 #define FCOE_KWQE_CONN_ENABLE_DISABLE_PRIORITY_SHIFT 13
583 #define FCOE_S_STAT_CTX_ACTIVE (0x1<<0)
584 #define FCOE_S_STAT_CTX_ACTIVE_SHIFT 0
585 #define FCOE_S_STAT_CTX_ACK_ABORT_SEQ_COND (0x1<<1)
586 #define FCOE_S_STAT_CTX_ACK_ABORT_SEQ_COND_SHIFT 1
587 #define FCOE_S_STAT_CTX_ABTS_PERFORMED (0x1<<2)
588 #define FCOE_S_STAT_CTX_ABTS_PERFORMED_SHIFT 2
589 #define FCOE_S_STAT_CTX_SEQ_TIMEOUT (0x1<<3)
590 #define FCOE_S_STAT_CTX_SEQ_TIMEOUT_SHIFT 3
591 #define FCOE_S_STAT_CTX_P_RJT (0x1<<4)
592 #define FCOE_S_STAT_CTX_P_RJT_SHIFT 4
593 #define FCOE_S_STAT_CTX_ACK_EOFT (0x1<<5)
594 #define FCOE_S_STAT_CTX_ACK_EOFT_SHIFT 5
595 #define FCOE_S_STAT_CTX_RSRV1 (0x3<<6)
596 #define FCOE_S_STAT_CTX_RSRV1_SHIFT 6
627 #define FCOE_SQE_TASK_ID (0x7FFF<<0)
628 #define FCOE_SQE_TASK_ID_SHIFT 0
629 #define FCOE_SQE_TOGGLE_BIT (0x1<<15)
630 #define FCOE_SQE_TOGGLE_BIT_SHIFT 15
660 #define FCOE_TCE_TX_WR_RX_RD_CONST_TASK_TYPE (0x7<<0)
661 #define FCOE_TCE_TX_WR_RX_RD_CONST_TASK_TYPE_SHIFT 0
662 #define FCOE_TCE_TX_WR_RX_RD_CONST_DEV_TYPE (0x1<<3)
663 #define FCOE_TCE_TX_WR_RX_RD_CONST_DEV_TYPE_SHIFT 3
664 #define FCOE_TCE_TX_WR_RX_RD_CONST_CLASS_TYPE (0x1<<4)
665 #define FCOE_TCE_TX_WR_RX_RD_CONST_CLASS_TYPE_SHIFT 4
666 #define FCOE_TCE_TX_WR_RX_RD_CONST_CACHED_SGE (0x3<<5)
667 #define FCOE_TCE_TX_WR_RX_RD_CONST_CACHED_SGE_SHIFT 5
668 #define FCOE_TCE_TX_WR_RX_RD_CONST_SUPPORT_REC_TOV (0x1<<7)
669 #define FCOE_TCE_TX_WR_RX_RD_CONST_SUPPORT_REC_TOV_SHIFT 7
671 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_VALID (0x1<<0)
672 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_VALID_SHIFT 0
673 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_STATE (0xF<<1)
674 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_STATE_SHIFT 1
675 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV1 (0x1<<5)
676 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV1_SHIFT 5
677 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_SEQ_INIT (0x1<<6)
678 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_SEQ_INIT_SHIFT 6
679 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV2 (0x1<<7)
680 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV2_SHIFT 7
699 #define FCOE_TCE_RX_WR_TX_RD_CONST_CID (0xFFFFFF<<0)
700 #define FCOE_TCE_RX_WR_TX_RD_CONST_CID_SHIFT 0
701 #define FCOE_TCE_RX_WR_TX_RD_CONST_RSRV0 (0xFF<<24)
702 #define FCOE_TCE_RX_WR_TX_RD_CONST_RSRV0_SHIFT 24
710 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV1 (0xF<<0)
711 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV1_SHIFT 0
712 #define FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE (0x7<<4)
713 #define FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE_SHIFT 4
714 #define FCOE_TCE_RX_WR_TX_RD_VAR_CONF_REQ (0x1<<7)
715 #define FCOE_TCE_RX_WR_TX_RD_VAR_CONF_REQ_SHIFT 7
716 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_STATE (0xF<<8)
717 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_STATE_SHIFT 8
718 #define FCOE_TCE_RX_WR_TX_RD_VAR_EXP_FIRST_FRAME (0x1<<12)
719 #define FCOE_TCE_RX_WR_TX_RD_VAR_EXP_FIRST_FRAME_SHIFT 12
720 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_SEQ_INIT (0x1<<13)
721 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_SEQ_INIT_SHIFT 13
722 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV2 (0x1<<14)
723 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV2_SHIFT 14
724 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_VALID (0x1<<15)
725 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_VALID_SHIFT 15
770 #define FCOE_XFRQE_TASK_ID (0x7FFF<<0)
771 #define FCOE_XFRQE_TASK_ID_SHIFT 0
772 #define FCOE_XFRQE_TOGGLE_BIT (0x1<<15)
773 #define FCOE_XFRQE_TOGGLE_BIT_SHIFT 15
783 #define B577XX_FCOE_RX_DOORBELL_NEGATIVE_ARM (0x1F<<0)
784 #define B577XX_FCOE_RX_DOORBELL_NEGATIVE_ARM_SHIFT 0
785 #define B577XX_FCOE_RX_DOORBELL_OPCODE (0x7<<5)
786 #define B577XX_FCOE_RX_DOORBELL_OPCODE_SHIFT 5
805 #if defined(__BIG_ENDIAN)
808 #elif defined(__LITTLE_ENDIAN)
822 #define FCOE_CQE_CQE_INFO (0x3FFF<<0)
823 #define FCOE_CQE_CQE_INFO_SHIFT 0
824 #define FCOE_CQE_CQE_TYPE (0x1<<14)
825 #define FCOE_CQE_CQE_TYPE_SHIFT 14
826 #define FCOE_CQE_TOGGLE_BIT (0x1<<15)
827 #define FCOE_CQE_TOGGLE_BIT_SHIFT 15
872 #define FCOE_HASH_TABLE_ENTRY_CID (0xFFFFFF<<0)
873 #define FCOE_HASH_TABLE_ENTRY_CID_SHIFT 0
874 #define FCOE_HASH_TABLE_ENTRY_RESERVED3 (0x7F<<24)
875 #define FCOE_HASH_TABLE_ENTRY_RESERVED3_SHIFT 24
876 #define FCOE_HASH_TABLE_ENTRY_VALID (0x1<<31)
877 #define FCOE_HASH_TABLE_ENTRY_VALID_SHIFT 31
886 #define FCOE_LCQE_TASK_ID (0xFFFF<<0)
887 #define FCOE_LCQE_TASK_ID_SHIFT 0
888 #define FCOE_LCQE_LCQE_TYPE (0xFF<<16)
889 #define FCOE_LCQE_LCQE_TYPE_SHIFT 16
890 #define FCOE_LCQE_RESERVED (0xFF<<24)
891 #define FCOE_LCQE_RESERVED_SHIFT 24
901 #define FCOE_PEND_WQ_CQE_TASK_ID (0x3FFF<<0)
902 #define FCOE_PEND_WQ_CQE_TASK_ID_SHIFT 0
903 #define FCOE_PEND_WQ_CQE_CQE_TYPE (0x1<<14)
904 #define FCOE_PEND_WQ_CQE_CQE_TYPE_SHIFT 14
905 #define FCOE_PEND_WQ_CQE_TOGGLE_BIT (0x1<<15)
906 #define FCOE_PEND_WQ_CQE_TOGGLE_BIT_SHIFT 15
980 #define FCOE_UNSOLICITED_CQE_SUBTYPE (0x3<<0)
981 #define FCOE_UNSOLICITED_CQE_SUBTYPE_SHIFT 0
982 #define FCOE_UNSOLICITED_CQE_PKT_LEN (0xFFF<<2)
983 #define FCOE_UNSOLICITED_CQE_PKT_LEN_SHIFT 2
984 #define FCOE_UNSOLICITED_CQE_CQE_TYPE (0x1<<14)
985 #define FCOE_UNSOLICITED_CQE_CQE_TYPE_SHIFT 14
986 #define FCOE_UNSOLICITED_CQE_TOGGLE_BIT (0x1<<15)
987 #define FCOE_UNSOLICITED_CQE_TOGGLE_BIT_SHIFT 15