xref: /dpdk/drivers/net/bnxt/tf_core/v3/tfc_debug.h (revision 80317ff6adfde7f618a100098e068ad5512e8e22)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019-2021 Broadcom
3  * All rights reserved.
4  */
5 
6 #ifndef _TFC_DEBUG_H_
7 #define _TFC_DEBUG_H_
8 
9 /* #define EM_DEBUG */
10 /* #define ACT_DEBUG */
11 
12 int tfc_mpc_table_write_zero(struct tfc *tfcp,
13 			     uint8_t tsid,
14 			     enum cfa_dir dir,
15 			     uint32_t type,
16 			     uint32_t offset,
17 			     uint8_t words,
18 			     uint8_t *data);
19 
20 int tfc_act_show(struct tfc *tfcp, uint8_t tsid, enum cfa_dir dir);
21 int tfc_em_show(struct tfc *tfcp, uint8_t tsid, enum cfa_dir dir);
22 int tfc_mpc_table_invalidate(struct tfc *tfcp,
23 			     uint8_t tsid,
24 			     enum cfa_dir dir,
25 			     uint32_t type,
26 			     uint32_t offset,
27 			     uint32_t words);
28 #endif
29