Lines Matching +full:0 +full:x6001
25 #define MBOX_DOWN_RX_START 0
39 #define INTR_MASK(pfvfs) ((pfvfs < 64) ? (BIT_ULL(pfvfs) - 1) : (~0ull))
46 #define MBOX_DIR_AFPF 0 /* AF replies to PF */
96 #define OTX2_MBOX_REQ_SIG (0xdead)
97 #define OTX2_MBOX_RSP_SIG (0xbeef)
99 #define OTX2_MBOX_VERSION (0x000a)
131 return otx2_mbox_alloc_msg_rsp(mbox, devid, size, 0); in otx2_mbox_alloc_msg()
137 #define MBOX_MSG_MASK 0xFFFF
138 #define MBOX_MSG_INVALID 0xFFFE
139 #define MBOX_MSG_MAX 0xFFFF
142 /* Generic mbox IDs (range 0x000 - 0x1FF) */ \
143 M(READY, 0x001, ready, msg_req, ready_msg_rsp) \
144 M(ATTACH_RESOURCES, 0x002, attach_resources, rsrc_attach, msg_rsp) \
145 M(DETACH_RESOURCES, 0x003, detach_resources, rsrc_detach, msg_rsp) \
146 M(FREE_RSRC_CNT, 0x004, free_rsrc_cnt, msg_req, free_rsrcs_rsp) \
147 M(MSIX_OFFSET, 0x005, msix_offset, msg_req, msix_offset_rsp) \
148 M(VF_FLR, 0x006, vf_flr, msg_req, msg_rsp) \
149 M(PTP_OP, 0x007, ptp_op, ptp_req, ptp_rsp) \
150 M(GET_HW_CAP, 0x008, get_hw_cap, msg_req, get_hw_cap_rsp) \
151 M(NDC_SYNC_OP, 0x009, ndc_sync_op, ndc_sync_op, msg_rsp) \
152 M(LMTST_TBL_SETUP, 0x00a, lmtst_tbl_setup, lmtst_tbl_setup_req, \
154 M(SET_VF_PERM, 0x00b, set_vf_perm, set_vf_perm, msg_rsp) \
155 M(PTP_GET_CAP, 0x00c, ptp_get_cap, msg_req, ptp_get_cap_rsp) \
156 M(GET_REP_CNT, 0x00d, get_rep_cnt, msg_req, get_rep_cnt_rsp) \
157 M(ESW_CFG, 0x00e, esw_cfg, esw_cfg_req, msg_rsp) \
158 M(REP_EVENT_NOTIFY, 0x00f, rep_event_notify, rep_event, msg_rsp) \
159 /* CGX mbox IDs (range 0x200 - 0x3FF) */ \
160 M(CGX_START_RXTX, 0x200, cgx_start_rxtx, msg_req, msg_rsp) \
161 M(CGX_STOP_RXTX, 0x201, cgx_stop_rxtx, msg_req, msg_rsp) \
162 M(CGX_STATS, 0x202, cgx_stats, msg_req, cgx_stats_rsp) \
163 M(CGX_MAC_ADDR_SET, 0x203, cgx_mac_addr_set, cgx_mac_addr_set_or_get, \
165 M(CGX_MAC_ADDR_GET, 0x204, cgx_mac_addr_get, cgx_mac_addr_set_or_get, \
167 M(CGX_PROMISC_ENABLE, 0x205, cgx_promisc_enable, msg_req, msg_rsp) \
168 M(CGX_PROMISC_DISABLE, 0x206, cgx_promisc_disable, msg_req, msg_rsp) \
169 M(CGX_START_LINKEVENTS, 0x207, cgx_start_linkevents, msg_req, msg_rsp) \
170 M(CGX_STOP_LINKEVENTS, 0x208, cgx_stop_linkevents, msg_req, msg_rsp) \
171 M(CGX_GET_LINKINFO, 0x209, cgx_get_linkinfo, msg_req, cgx_link_info_msg) \
172 M(CGX_INTLBK_ENABLE, 0x20A, cgx_intlbk_enable, msg_req, msg_rsp) \
173 M(CGX_INTLBK_DISABLE, 0x20B, cgx_intlbk_disable, msg_req, msg_rsp) \
174 M(CGX_PTP_RX_ENABLE, 0x20C, cgx_ptp_rx_enable, msg_req, msg_rsp) \
175 M(CGX_PTP_RX_DISABLE, 0x20D, cgx_ptp_rx_disable, msg_req, msg_rsp) \
176 M(CGX_CFG_PAUSE_FRM, 0x20E, cgx_cfg_pause_frm, cgx_pause_frm_cfg, \
178 M(CGX_FW_DATA_GET, 0x20F, cgx_get_aux_link_info, msg_req, cgx_fw_data) \
179 M(CGX_FEC_SET, 0x210, cgx_set_fec_param, fec_mode, fec_mode) \
180 M(CGX_MAC_ADDR_ADD, 0x211, cgx_mac_addr_add, cgx_mac_addr_add_req, \
182 M(CGX_MAC_ADDR_DEL, 0x212, cgx_mac_addr_del, cgx_mac_addr_del_req, \
184 M(CGX_MAC_MAX_ENTRIES_GET, 0x213, cgx_mac_max_entries_get, msg_req, \
186 M(CGX_FEC_STATS, 0x217, cgx_fec_stats, msg_req, cgx_fec_stats_rsp) \
187 M(CGX_SET_LINK_MODE, 0x218, cgx_set_link_mode, cgx_set_link_mode_req,\
189 M(CGX_GET_PHY_FEC_STATS, 0x219, cgx_get_phy_fec_stats, msg_req, msg_rsp) \
190 M(CGX_STATS_RST, 0x21A, cgx_stats_rst, msg_req, msg_rsp) \
191 M(CGX_FEATURES_GET, 0x21B, cgx_features_get, msg_req, \
193 M(RPM_STATS, 0x21C, rpm_stats, msg_req, rpm_stats_rsp) \
194 M(CGX_MAC_ADDR_RESET, 0x21D, cgx_mac_addr_reset, cgx_mac_addr_reset_req, \
196 M(CGX_MAC_ADDR_UPDATE, 0x21E, cgx_mac_addr_update, cgx_mac_addr_update_req, \
198 M(CGX_PRIO_FLOW_CTRL_CFG, 0x21F, cgx_prio_flow_ctrl_cfg, cgx_pfc_cfg, \
200 /* NPA mbox IDs (range 0x400 - 0x5FF) */ \
201 M(NPA_LF_ALLOC, 0x400, npa_lf_alloc, \
203 M(NPA_LF_FREE, 0x401, npa_lf_free, msg_req, msg_rsp) \
204 M(NPA_AQ_ENQ, 0x402, npa_aq_enq, npa_aq_enq_req, npa_aq_enq_rsp) \
205 M(NPA_HWCTX_DISABLE, 0x403, npa_hwctx_disable, hwctx_disable_req, msg_rsp)\
206 /* SSO/SSOW mbox IDs (range 0x600 - 0x7FF) */ \
207 /* TIM mbox IDs (range 0x800 - 0x9FF) */ \
208 /* CPT mbox IDs (range 0xA00 - 0xBFF) */ \
209 M(CPT_LF_ALLOC, 0xA00, cpt_lf_alloc, cpt_lf_alloc_req_msg, \
211 M(CPT_LF_FREE, 0xA01, cpt_lf_free, msg_req, msg_rsp) \
212 M(CPT_RD_WR_REGISTER, 0xA02, cpt_rd_wr_register, cpt_rd_wr_reg_msg, \
214 M(CPT_INLINE_IPSEC_CFG, 0xA04, cpt_inline_ipsec_cfg, \
216 M(CPT_STATS, 0xA05, cpt_sts, cpt_sts_req, cpt_sts_rsp) \
217 M(CPT_RXC_TIME_CFG, 0xA06, cpt_rxc_time_cfg, cpt_rxc_time_cfg_req, \
219 M(CPT_CTX_CACHE_SYNC, 0xA07, cpt_ctx_cache_sync, msg_req, msg_rsp) \
220 M(CPT_LF_RESET, 0xA08, cpt_lf_reset, cpt_lf_rst_req, msg_rsp) \
221 M(CPT_FLT_ENG_INFO, 0xA09, cpt_flt_eng_info, cpt_flt_eng_info_req, \
223 /* SDP mbox IDs (range 0x1000 - 0x11FF) */ \
224 M(SET_SDP_CHAN_INFO, 0x1000, set_sdp_chan_info, sdp_chan_info_msg, msg_rsp) \
225 M(GET_SDP_CHAN_INFO, 0x1001, get_sdp_chan_info, msg_req, sdp_get_chan_info_msg) \
226 /* NPC mbox IDs (range 0x6000 - 0x7FFF) */ \
227 M(NPC_MCAM_ALLOC_ENTRY, 0x6000, npc_mcam_alloc_entry, npc_mcam_alloc_entry_req,\
229 M(NPC_MCAM_FREE_ENTRY, 0x6001, npc_mcam_free_entry, \
231 M(NPC_MCAM_WRITE_ENTRY, 0x6002, npc_mcam_write_entry, \
233 M(NPC_MCAM_ENA_ENTRY, 0x6003, npc_mcam_ena_entry, \
235 M(NPC_MCAM_DIS_ENTRY, 0x6004, npc_mcam_dis_entry, \
237 M(NPC_MCAM_SHIFT_ENTRY, 0x6005, npc_mcam_shift_entry, npc_mcam_shift_entry_req,\
239 M(NPC_MCAM_ALLOC_COUNTER, 0x6006, npc_mcam_alloc_counter, \
242 M(NPC_MCAM_FREE_COUNTER, 0x6007, npc_mcam_free_counter, \
244 M(NPC_MCAM_UNMAP_COUNTER, 0x6008, npc_mcam_unmap_counter, \
246 M(NPC_MCAM_CLEAR_COUNTER, 0x6009, npc_mcam_clear_counter, \
248 M(NPC_MCAM_COUNTER_STATS, 0x600a, npc_mcam_counter_stats, \
251 M(NPC_MCAM_ALLOC_AND_WRITE_ENTRY, 0x600b, npc_mcam_alloc_and_write_entry, \
254 M(NPC_GET_KEX_CFG, 0x600c, npc_get_kex_cfg, \
256 M(NPC_INSTALL_FLOW, 0x600d, npc_install_flow, \
258 M(NPC_DELETE_FLOW, 0x600e, npc_delete_flow, \
260 M(NPC_MCAM_READ_ENTRY, 0x600f, npc_mcam_read_entry, \
263 M(NPC_SET_PKIND, 0x6010, npc_set_pkind, \
265 M(NPC_MCAM_READ_BASE_RULE, 0x6011, npc_read_base_steer_rule, \
267 M(NPC_MCAM_GET_STATS, 0x6012, npc_mcam_entry_stats, \
270 M(NPC_GET_FIELD_HASH_INFO, 0x6013, npc_get_field_hash_info, \
273 M(NPC_GET_FIELD_STATUS, 0x6014, npc_get_field_status, \
276 /* NIX mbox IDs (range 0x8000 - 0xFFFF) */ \
277 M(NIX_LF_ALLOC, 0x8000, nix_lf_alloc, \
279 M(NIX_LF_FREE, 0x8001, nix_lf_free, nix_lf_free_req, msg_rsp) \
280 M(NIX_AQ_ENQ, 0x8002, nix_aq_enq, nix_aq_enq_req, nix_aq_enq_rsp) \
281 M(NIX_HWCTX_DISABLE, 0x8003, nix_hwctx_disable, \
283 M(NIX_TXSCH_ALLOC, 0x8004, nix_txsch_alloc, \
285 M(NIX_TXSCH_FREE, 0x8005, nix_txsch_free, nix_txsch_free_req, msg_rsp) \
286 M(NIX_TXSCHQ_CFG, 0x8006, nix_txschq_cfg, nix_txschq_config, \
288 M(NIX_STATS_RST, 0x8007, nix_stats_rst, msg_req, msg_rsp) \
289 M(NIX_VTAG_CFG, 0x8008, nix_vtag_cfg, nix_vtag_config, \
291 M(NIX_RSS_FLOWKEY_CFG, 0x8009, nix_rss_flowkey_cfg, \
294 M(NIX_SET_MAC_ADDR, 0x800a, nix_set_mac_addr, nix_set_mac_addr, msg_rsp) \
295 M(NIX_SET_RX_MODE, 0x800b, nix_set_rx_mode, nix_rx_mode, msg_rsp) \
296 M(NIX_SET_HW_FRS, 0x800c, nix_set_hw_frs, nix_frs_cfg, msg_rsp) \
297 M(NIX_LF_START_RX, 0x800d, nix_lf_start_rx, msg_req, msg_rsp) \
298 M(NIX_LF_STOP_RX, 0x800e, nix_lf_stop_rx, msg_req, msg_rsp) \
299 M(NIX_MARK_FORMAT_CFG, 0x800f, nix_mark_format_cfg, \
302 M(NIX_SET_RX_CFG, 0x8010, nix_set_rx_cfg, nix_rx_cfg, msg_rsp) \
303 M(NIX_LSO_FORMAT_CFG, 0x8011, nix_lso_format_cfg, \
306 M(NIX_LF_PTP_TX_ENABLE, 0x8013, nix_lf_ptp_tx_enable, msg_req, msg_rsp) \
307 M(NIX_LF_PTP_TX_DISABLE, 0x8014, nix_lf_ptp_tx_disable, msg_req, msg_rsp) \
308 M(NIX_BP_ENABLE, 0x8016, nix_bp_enable, nix_bp_cfg_req, \
310 M(NIX_BP_DISABLE, 0x8017, nix_bp_disable, nix_bp_cfg_req, msg_rsp) \
311 M(NIX_GET_MAC_ADDR, 0x8018, nix_get_mac_addr, msg_req, nix_get_mac_addr_rsp) \
312 M(NIX_INLINE_IPSEC_CFG, 0x8019, nix_inline_ipsec_cfg, \
314 M(NIX_INLINE_IPSEC_LF_CFG, 0x801a, nix_inline_ipsec_lf_cfg, \
316 M(NIX_CN10K_AQ_ENQ, 0x801b, nix_cn10k_aq_enq, nix_cn10k_aq_enq_req, \
318 M(NIX_GET_HW_INFO, 0x801c, nix_get_hw_info, msg_req, nix_hw_info) \
319 M(NIX_BANDPROF_ALLOC, 0x801d, nix_bandprof_alloc, nix_bandprof_alloc_req, \
321 M(NIX_BANDPROF_FREE, 0x801e, nix_bandprof_free, nix_bandprof_free_req, \
323 M(NIX_BANDPROF_GET_HWINFO, 0x801f, nix_bandprof_get_hwinfo, msg_req, \
325 M(NIX_CPT_BP_ENABLE, 0x8020, nix_cpt_bp_enable, nix_bp_cfg_req, \
327 M(NIX_CPT_BP_DISABLE, 0x8021, nix_cpt_bp_disable, nix_bp_cfg_req, \
329 M(NIX_READ_INLINE_IPSEC_CFG, 0x8023, nix_read_inline_ipsec_cfg, \
331 M(NIX_MCAST_GRP_CREATE, 0x802b, nix_mcast_grp_create, nix_mcast_grp_create_req, \
333 M(NIX_MCAST_GRP_DESTROY, 0x802c, nix_mcast_grp_destroy, nix_mcast_grp_destroy_req, \
335 M(NIX_MCAST_GRP_UPDATE, 0x802d, nix_mcast_grp_update, \
338 M(NIX_LF_STATS, 0x802e, nix_lf_stats, nix_stats_req, nix_stats_rsp) \
339 /* MCS mbox IDs (range 0xA000 - 0xBFFF) */ \
340 M(MCS_ALLOC_RESOURCES, 0xa000, mcs_alloc_resources, mcs_alloc_rsrc_req, \
342 M(MCS_FREE_RESOURCES, 0xa001, mcs_free_resources, mcs_free_rsrc_req, msg_rsp) \
343 M(MCS_FLOWID_ENTRY_WRITE, 0xa002, mcs_flowid_entry_write, mcs_flowid_entry_write_req, \
345 M(MCS_SECY_PLCY_WRITE, 0xa003, mcs_secy_plcy_write, mcs_secy_plcy_write_req, \
347 M(MCS_RX_SC_CAM_WRITE, 0xa004, mcs_rx_sc_cam_write, mcs_rx_sc_cam_write_req, \
349 M(MCS_SA_PLCY_WRITE, 0xa005, mcs_sa_plcy_write, mcs_sa_plcy_write_req, \
351 M(MCS_TX_SC_SA_MAP_WRITE, 0xa006, mcs_tx_sc_sa_map_write, mcs_tx_sc_sa_map, \
353 M(MCS_RX_SC_SA_MAP_WRITE, 0xa007, mcs_rx_sc_sa_map_write, mcs_rx_sc_sa_map, \
355 M(MCS_FLOWID_ENA_ENTRY, 0xa008, mcs_flowid_ena_entry, mcs_flowid_ena_dis_entry, \
357 M(MCS_PN_TABLE_WRITE, 0xa009, mcs_pn_table_write, mcs_pn_table_write_req, \
359 M(MCS_SET_ACTIVE_LMAC, 0xa00a, mcs_set_active_lmac, mcs_set_active_lmac, \
361 M(MCS_GET_HW_INFO, 0xa00b, mcs_get_hw_info, msg_req, mcs_hw_info) \
362 M(MCS_GET_FLOWID_STATS, 0xa00c, mcs_get_flowid_stats, mcs_stats_req, \
364 M(MCS_GET_SECY_STATS, 0xa00d, mcs_get_secy_stats, mcs_stats_req, \
366 M(MCS_GET_SC_STATS, 0xa00e, mcs_get_sc_stats, mcs_stats_req, mcs_sc_stats) \
367 M(MCS_GET_SA_STATS, 0xa00f, mcs_get_sa_stats, mcs_stats_req, mcs_sa_stats) \
368 M(MCS_GET_PORT_STATS, 0xa010, mcs_get_port_stats, mcs_stats_req, \
370 M(MCS_CLEAR_STATS, 0xa011, mcs_clear_stats, mcs_clear_stats, msg_rsp) \
371 M(MCS_INTR_CFG, 0xa012, mcs_intr_cfg, mcs_intr_cfg, msg_rsp) \
372 M(MCS_SET_LMAC_MODE, 0xa013, mcs_set_lmac_mode, mcs_set_lmac_mode, msg_rsp) \
373 M(MCS_SET_PN_THRESHOLD, 0xa014, mcs_set_pn_threshold, mcs_set_pn_threshold, \
375 M(MCS_ALLOC_CTRL_PKT_RULE, 0xa015, mcs_alloc_ctrl_pkt_rule, \
378 M(MCS_FREE_CTRL_PKT_RULE, 0xa016, mcs_free_ctrl_pkt_rule, \
380 M(MCS_CTRL_PKT_RULE_WRITE, 0xa017, mcs_ctrl_pkt_rule_write, \
382 M(MCS_PORT_RESET, 0xa018, mcs_port_reset, mcs_port_reset_req, msg_rsp) \
383 M(MCS_PORT_CFG_SET, 0xa019, mcs_port_cfg_set, mcs_port_cfg_set_req, msg_rsp)\
384 M(MCS_PORT_CFG_GET, 0xa020, mcs_port_cfg_get, mcs_port_cfg_get_req, \
386 M(MCS_CUSTOM_TAG_CFG_GET, 0xa021, mcs_custom_tag_cfg_get, \
390 /* Messages initiated by AF (range 0xC00 - 0xEFF) */
392 M(CGX_LINK_EVENT, 0xC00, cgx_link_event, cgx_link_info_msg, msg_rsp)
395 M(CPT_INST_LMTST, 0xD00, cpt_inst_lmtst, cpt_inst_lmtst_req, msg_rsp)
398 M(MCS_INTR_NOTIFY, 0xE00, mcs_intr_notify, mcs_intr_info, msg_rsp)
401 M(REP_EVENT_UP_NOTIFY, 0xEF0, rep_event_up_notify, rep_event, msg_rsp) \
415 #define RVU_DEFAULT_PF_FUNC 0xFFFF
470 int cpt_blkaddr; /* BLKADDR_CPT0/BLKADDR_CPT1 or 0 for BLKADDR_CPT0 */
508 #define MSIX_VECTOR_INVALID 0xFFFF
602 uint64_t fec:2; /* FEC type if enabled else 0 */
616 /* set = 0 if the request is to fetch pause frames config */
717 #define RVU_LMAC_FEAT_FC BIT_ULL(0) /* pause frames */
756 #define OTX2_PRIV_FLAGS_DEFAULT BIT_ULL(0)
759 #define PKIND_TX BIT_ULL(0)
816 /* Mask data when op == WRITE (1=write, 0=don't write) */
909 u64 rx_cfg; /* See NIX_AF_LF(0..127)_RX_CFG */
911 #define NIX_LF_RSS_TAG_LSB_AS_ADDER BIT_ULL(0)
938 #define NIX_LF_DISABLE_FLOWS BIT_ULL(0)
1041 #define TXSCHQ_FREE_ALL BIT_ULL(0)
1060 /* All 0's => overwrite with new value */
1066 /* '0' for 4 octet VTAG, '1' for 8 octet VTAG */
1068 /* cfg_type is '0' for tx vlan cfg
1073 /* valid when cfg_type is '0' */
1079 * when free_vtag0 & free_vtag1 are '0's.
1087 * both cfg_vtag0 & cfg_vtag1 are '0's,
1099 * when cfg_vtag0 & cfg_vtag1 are '0's.
1113 /* rx vtag type index, valid values are in 0..7 range */
1134 #define NIX_FLOW_KEY_TYPE_L3_L4_MASK (~(0xf << 28))
1139 #define NIX_FLOW_KEY_TYPE_PORT BIT(0)
1201 #define NIX_RX_MODE_UCAST BIT(0)
1210 #define NIX_RX_OL3_VERIFY BIT(0)
1214 #define NIX_RX_CSUM_OL4_VERIFY BIT(0)
1244 /* bpid_per_chan = 0 assigns single bp id for range of channels */
1258 #define NIX_MCAST_INGRESS 0
1282 * it to '1'. Otherwise keep it to '0'
1294 #define NIX_RX_RQ 0
1302 #define NIX_MCAST_OP_ADD_ENTRY 0
1304 /* Destination type. 0:Receive queue, 1:RSS*/
1308 * it to '1'. Otherwise keep it to '0'
1430 #define NPC_MCAM_ENTRY_INVALID 0xFFFF
1431 #define NPC_MCAM_INVALID_MAP 0xFFFF
1454 #define NPC_MCAM_ANY_PRIO 0
1566 u64 rx_keyx_cfg; /* NPC_AF_INTF(0)_KEX_CFG */
1573 /* NPC_AF_KEX_LDATA(0..1)_FLAGS_CFG */
1575 /* NPC_AF_INTF(0..1)_LID(0..7)_LT(0..15)_LD(0..1)_CFG */
1577 /* NPC_AF_INTF(0..1)_LDATA(0..1)_FLAGS(0..15)_CFG */
1585 #define PTP_CAP_HW_ATOMIC_UPDATE BIT_ULL(0)
1615 #define RVU_EVENT_PORT_STATE BIT_ULL(0)
1656 #define OTX2_FLOWER_MASK_MPLS_TTL GENMASK(7, 0)
1676 u8 append; /* overwrite(0) or append(1) flow to default rule? */
1753 /* NPC_AF_INTF(0..1)_HASH(0..1)_MASK(0..1) */
1755 /* NPC_AF_INTF(0..1)_HASH(0..1)_RESULT_CTRL */
1760 PTP_OP_ADJFINE = 0,
1800 #define RESET_VF_PERM BIT_ULL(0)
1858 #define CPT_INLINE_INBOUND 0
2108 u8 an; /* value range 0-3, sc_id + an used as index SA_MEM_MAP */
2151 u8 mode; /* 1:Bypass 0:Operational */
2365 #define MCS_FLOWID_STATS 0
2379 #define MCS_CPM_RX_SECTAG_V_EQ1_INT BIT_ULL(0)