xref: /linux/drivers/net/wireless/quantenna/qtnfmac/debug.h (revision 98f44cb0655cbef0850ba7ff4c8213fb1bf9b6a2)
1*98f44cb0SIgor Mitsyanko /*
2*98f44cb0SIgor Mitsyanko  * Copyright (c) 2015-2016 Quantenna Communications, Inc.
3*98f44cb0SIgor Mitsyanko  * All rights reserved.
4*98f44cb0SIgor Mitsyanko  *
5*98f44cb0SIgor Mitsyanko  * This program is free software; you can redistribute it and/or
6*98f44cb0SIgor Mitsyanko  * modify it under the terms of the GNU General Public License
7*98f44cb0SIgor Mitsyanko  * as published by the Free Software Foundation; either version 2
8*98f44cb0SIgor Mitsyanko  * of the License, or (at your option) any later version.
9*98f44cb0SIgor Mitsyanko  *
10*98f44cb0SIgor Mitsyanko  * This program is distributed in the hope that it will be useful,
11*98f44cb0SIgor Mitsyanko  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*98f44cb0SIgor Mitsyanko  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*98f44cb0SIgor Mitsyanko  * GNU General Public License for more details.
14*98f44cb0SIgor Mitsyanko  *
15*98f44cb0SIgor Mitsyanko  */
16*98f44cb0SIgor Mitsyanko 
17*98f44cb0SIgor Mitsyanko #ifndef _QTN_FMAC_DEBUG_H_
18*98f44cb0SIgor Mitsyanko #define _QTN_FMAC_DEBUG_H_
19*98f44cb0SIgor Mitsyanko 
20*98f44cb0SIgor Mitsyanko #include <linux/debugfs.h>
21*98f44cb0SIgor Mitsyanko 
22*98f44cb0SIgor Mitsyanko #include "core.h"
23*98f44cb0SIgor Mitsyanko #include "bus.h"
24*98f44cb0SIgor Mitsyanko 
25*98f44cb0SIgor Mitsyanko #ifdef CONFIG_DEBUG_FS
26*98f44cb0SIgor Mitsyanko 
27*98f44cb0SIgor Mitsyanko void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name);
28*98f44cb0SIgor Mitsyanko void qtnf_debugfs_remove(struct qtnf_bus *bus);
29*98f44cb0SIgor Mitsyanko void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
30*98f44cb0SIgor Mitsyanko 			    int (*fn)(struct seq_file *seq, void *data));
31*98f44cb0SIgor Mitsyanko 
32*98f44cb0SIgor Mitsyanko #else
33*98f44cb0SIgor Mitsyanko 
34*98f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name)
35*98f44cb0SIgor Mitsyanko {
36*98f44cb0SIgor Mitsyanko }
37*98f44cb0SIgor Mitsyanko 
38*98f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_remove(struct qtnf_bus *bus)
39*98f44cb0SIgor Mitsyanko {
40*98f44cb0SIgor Mitsyanko }
41*98f44cb0SIgor Mitsyanko 
42*98f44cb0SIgor Mitsyanko static inline void
43*98f44cb0SIgor Mitsyanko qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name,
44*98f44cb0SIgor Mitsyanko 		       int (*fn)(struct seq_file *seq, void *data))
45*98f44cb0SIgor Mitsyanko {
46*98f44cb0SIgor Mitsyanko }
47*98f44cb0SIgor Mitsyanko 
48*98f44cb0SIgor Mitsyanko #endif /* CONFIG_DEBUG_FS */
49*98f44cb0SIgor Mitsyanko 
50*98f44cb0SIgor Mitsyanko #endif /* _QTN_FMAC_DEBUG_H_ */
51