1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (c) 2023 Hisilicon Limited.
4 */
5
6#ifndef __HNS_ROCE_DEBUGFS_H
7#define __HNS_ROCE_DEBUGFS_H
8
9/* debugfs seqfile */
10struct hns_debugfs_seqfile {
11	int (*read)(struct seq_file *seq, void *data);
12	void *data;
13};
14
15struct hns_sw_stat_debugfs {
16	struct dentry *root;
17	struct hns_debugfs_seqfile sw_stat;
18};
19
20/* Debugfs for device */
21struct hns_roce_dev_debugfs {
22	struct dentry *root;
23	struct hns_sw_stat_debugfs sw_stat_root;
24};
25
26struct hns_roce_dev;
27
28void hns_roce_init_debugfs(void);
29void hns_roce_cleanup_debugfs(void);
30void hns_roce_register_debugfs(struct hns_roce_dev *hr_dev);
31void hns_roce_unregister_debugfs(struct hns_roce_dev *hr_dev);
32
33#endif
34