1*ff233cb5SSergey Matyukevich /* SPDX-License-Identifier: GPL-2.0+ */ 2*ff233cb5SSergey Matyukevich /* Copyright (c) 2015-2016 Quantenna Communications. All rights reserved. */ 398f44cb0SIgor Mitsyanko 498f44cb0SIgor Mitsyanko #ifndef _QTN_FMAC_DEBUG_H_ 598f44cb0SIgor Mitsyanko #define _QTN_FMAC_DEBUG_H_ 698f44cb0SIgor Mitsyanko 798f44cb0SIgor Mitsyanko #include <linux/debugfs.h> 898f44cb0SIgor Mitsyanko 998f44cb0SIgor Mitsyanko #include "core.h" 1098f44cb0SIgor Mitsyanko #include "bus.h" 1198f44cb0SIgor Mitsyanko 1298f44cb0SIgor Mitsyanko #ifdef CONFIG_DEBUG_FS 1398f44cb0SIgor Mitsyanko 1498f44cb0SIgor Mitsyanko void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name); 1598f44cb0SIgor Mitsyanko void qtnf_debugfs_remove(struct qtnf_bus *bus); 1698f44cb0SIgor Mitsyanko void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 1798f44cb0SIgor Mitsyanko int (*fn)(struct seq_file *seq, void *data)); 1898f44cb0SIgor Mitsyanko 1998f44cb0SIgor Mitsyanko #else 2098f44cb0SIgor Mitsyanko 2198f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name) 2298f44cb0SIgor Mitsyanko { 2398f44cb0SIgor Mitsyanko } 2498f44cb0SIgor Mitsyanko 2598f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_remove(struct qtnf_bus *bus) 2698f44cb0SIgor Mitsyanko { 2798f44cb0SIgor Mitsyanko } 2898f44cb0SIgor Mitsyanko 2998f44cb0SIgor Mitsyanko static inline void 3098f44cb0SIgor Mitsyanko qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 3198f44cb0SIgor Mitsyanko int (*fn)(struct seq_file *seq, void *data)) 3298f44cb0SIgor Mitsyanko { 3398f44cb0SIgor Mitsyanko } 3498f44cb0SIgor Mitsyanko 3598f44cb0SIgor Mitsyanko #endif /* CONFIG_DEBUG_FS */ 3698f44cb0SIgor Mitsyanko 3798f44cb0SIgor Mitsyanko #endif /* _QTN_FMAC_DEBUG_H_ */ 38