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
16 struct hinic_cmd_lt_rd {
23 unsigned char entry_size;
25 unsigned int lt_index;
28 unsigned char data[100];
31 struct tag_sml_funcfg_tbl {
47 u32 fast_recycled_mode :1;
81 int hinic_sq_debug_add(struct hinic_dev *dev, u16 sq_id);
83 void hinic_sq_debug_rem(struct hinic_sq *sq);
85 int hinic_rq_debug_add(struct hinic_dev *dev, u16 rq_id);
87 void hinic_rq_debug_rem(struct hinic_rq *rq);
89 int hinic_func_table_debug_add(struct hinic_dev *dev);
91 void hinic_func_table_debug_rem(struct hinic_dev *dev);
93 void hinic_sq_dbgfs_init(struct hinic_dev *nic_dev);
95 void hinic_sq_dbgfs_uninit(struct hinic_dev *nic_dev);
97 void hinic_rq_dbgfs_init(struct hinic_dev *nic_dev);
99 void hinic_rq_dbgfs_uninit(struct hinic_dev *nic_dev);
101 void hinic_func_tbl_dbgfs_init(struct hinic_dev *nic_dev);
103 void hinic_func_tbl_dbgfs_uninit(struct hinic_dev *nic_dev);
105 void hinic_dbg_init(struct hinic_dev *nic_dev);
107 void hinic_dbg_uninit(struct hinic_dev *nic_dev);
109 void hinic_dbg_register_debugfs(const char *debugfs_dir_name);
111 void hinic_dbg_unregister_debugfs(void);