18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _QTN_FMAC_DEBUG_H_
58c2ecf20Sopenharmony_ci#define _QTN_FMAC_DEBUG_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/debugfs.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "core.h"
108c2ecf20Sopenharmony_ci#include "bus.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_FS
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_civoid qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
158c2ecf20Sopenharmony_civoid qtnf_debugfs_remove(struct qtnf_bus *bus);
168c2ecf20Sopenharmony_civoid qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
178c2ecf20Sopenharmony_ci			    int (*fn)(struct seq_file *seq, void *data));
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#else
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cistatic inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistatic inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci}
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_cistatic inline void
308c2ecf20Sopenharmony_ciqtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
318c2ecf20Sopenharmony_ci		       int (*fn)(struct seq_file *seq, void *data))
328c2ecf20Sopenharmony_ci{
338c2ecf20Sopenharmony_ci}
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif /* CONFIG_DEBUG_FS */
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#endif /* _QTN_FMAC_DEBUG_H_ */
38