1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2023 Hisilicon Limited.
6 #ifndef __HNS_ROCE_DEBUGFS_H
7 #define __HNS_ROCE_DEBUGFS_H
10 struct hns_debugfs_seqfile
{
11 int (*read
)(struct seq_file
*seq
, void *data
);
15 struct hns_sw_stat_debugfs
{
17 struct hns_debugfs_seqfile sw_stat
;
20 /* Debugfs for device */
21 struct hns_roce_dev_debugfs
{
23 struct hns_sw_stat_debugfs sw_stat_root
;
28 void hns_roce_init_debugfs(void);
29 void hns_roce_cleanup_debugfs(void);
30 void hns_roce_register_debugfs(struct hns_roce_dev
*hr_dev
);
31 void hns_roce_unregister_debugfs(struct hns_roce_dev
*hr_dev
);