xref: /illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/lm5710_hsi.h (revision d14abf155341d55053c76eeec58b787a456b753b)
1 #ifndef _LM5710_HSI_H
2 #define _LM5710_HSI_H
3 /*******************************************************************************
4  * Constants (formerly HSI)
5  ******************************************************************************/
6 
7 
8 
9 #define HC_USTORM_SB_NUM_INDICES          4
10 #define HC_CSTORM_SB_NUM_INDICES          4
11 #define HC_DHC_SB_NUM_INDICES             4
12 
13  /* index values - which counter to update */
14 
15 #define SM_RX_ID                            0
16 #define SM_TX_ID                            1
17 
18 #define HC_PARAMS_TOE_INDEX                0
19 #define HC_PARAMS_ETH_INDEX                1
20 
21 
22 #define HC_INDEX_TOE_RX_CQ_CONS             0
23 #define HC_INDEX_ETH_RX_CQ_CONS             1
24 #define HC_INDEX_TOE_TX_CQ_CONS				2
25 #define HC_INDEX_FCOE_EQ_CONS               3
26 
27 #define HC_INDEX_VF_ETH_RX_CQ_CONS          HC_INDEX_ETH_RX_CQ_CONS
28 
29 #define HC_INDEX_ISCSI_EQ_CONS		        4
30 #define HC_INDEX_ETH_TX_CQ_CONS_COS0	    5
31 #define HC_INDEX_ETH_TX_CQ_CONS_COS1	    6
32 #define HC_INDEX_ETH_TX_CQ_CONS_COS2	    7
33 
34 #define HC_INDEX_VF_ETH_TX_CQ_CONS	        HC_INDEX_ETH_TX_CQ_CONS_COS0
35 
36 #define HC_SP_INDEX_ETH_FW_TX_CQ_CONS           0       // ETH :    FW connection TX CQ index (Formerly HC_INDEX_DEF_C_ETH_FW_TX_CQ_CONS)
37 #define HC_SP_INDEX_EQ_CONS                     1       // COMMMON: Event queue index
38 #define HC_SP_INDEX_ETH_ISCSI_CQ_CONS           2       // iSCSI:   L2 connection completions (Formerly HC_INDEX_DEF_C_ETH_ISCSI_CQ_CONS)
39 #define HC_SP_INDEX_ETH_FCOE_CQ_CONS            3       // FCoE:    L2 connection completions (Formrrly HC_INDEX_DEF_C_ETH_FCOE_CQ_CONS)
40 #define HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS        4       // iSCSI:   L2 connection Rx completions (Formerly HC_INDEX_DEF_U_ETH_ISCSI_RX_CQ_CONS)
41 #define HC_SP_INDEX_ETH_ISCSI_RX_BD_CONS        6       // iSCSI:   L2 connection BDS (Formerly HC_INDEX_DEF_U_ETH_ISCSI_RX_BD_CONS)
42 #define HC_SP_INDEX_ETH_FCOE_RX_CQ_CONS         7       // FCoE:    L2 connection Rx completions (Formerly HC_INDEX_DEF_U_ETH_FCOE_RX_CQ_CONS)
43 #define HC_SP_INDEX_ETH_FCOE_RX_BD_CONS         8       // FCoE:    L2 connection BDS (Formrly HC_INDEX_DEF_U_ETH_FCOE_RX_BD_CONS)
44 #define HC_SP_INDEX_ISCSI_OOO_RX_CONS           9       // ISCSI_OOO: ISCSI OOO RX completions
45 #define HC_SP_INDEX_NOT_USED                    15       // For debugging
46 #endif
47 /* */
48