1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Huawei HiNIC PCI Express Linux driver
3 * Copyright(c) 2017 Huawei Technologies Co., Ltd
6 #ifndef HINIC_DEBUGFS_H
7 #define HINIC_DEBUGFS_H
11 #define TBL_ID_FUNC_CFG_SM_NODE 11
12 #define TBL_ID_FUNC_CFG_SM_INST 1
14 #define HINIC_FUNCTION_CONFIGURE_TABLE_SIZE 64
15 #define HINIC_FUNCTION_CONFIGURE_TABLE 1
17 struct hinic_cmd_lt_rd
{
24 unsigned char entry_size
;
26 unsigned int lt_index
;
29 unsigned char data
[100];
32 struct tag_sml_funcfg_tbl
{
48 u32 fast_recycled_mode
:1;
82 int hinic_sq_debug_add(struct hinic_dev
*dev
, u16 sq_id
);
84 void hinic_sq_debug_rem(struct hinic_sq
*sq
);
86 int hinic_rq_debug_add(struct hinic_dev
*dev
, u16 rq_id
);
88 void hinic_rq_debug_rem(struct hinic_rq
*rq
);
90 int hinic_func_table_debug_add(struct hinic_dev
*dev
);
92 void hinic_func_table_debug_rem(struct hinic_dev
*dev
);
94 void hinic_sq_dbgfs_init(struct hinic_dev
*nic_dev
);
96 void hinic_sq_dbgfs_uninit(struct hinic_dev
*nic_dev
);
98 void hinic_rq_dbgfs_init(struct hinic_dev
*nic_dev
);
100 void hinic_rq_dbgfs_uninit(struct hinic_dev
*nic_dev
);
102 void hinic_func_tbl_dbgfs_init(struct hinic_dev
*nic_dev
);
104 void hinic_func_tbl_dbgfs_uninit(struct hinic_dev
*nic_dev
);
106 void hinic_dbg_init(struct hinic_dev
*nic_dev
);
108 void hinic_dbg_uninit(struct hinic_dev
*nic_dev
);
110 void hinic_dbg_register_debugfs(const char *debugfs_dir_name
);
112 void hinic_dbg_unregister_debugfs(void);