198f44cb0SIgor Mitsyanko /* 298f44cb0SIgor Mitsyanko * Copyright (c) 2015-2016 Quantenna Communications, Inc. 398f44cb0SIgor Mitsyanko * All rights reserved. 498f44cb0SIgor Mitsyanko * 598f44cb0SIgor Mitsyanko * This program is free software; you can redistribute it and/or 698f44cb0SIgor Mitsyanko * modify it under the terms of the GNU General Public License 798f44cb0SIgor Mitsyanko * as published by the Free Software Foundation; either version 2 898f44cb0SIgor Mitsyanko * of the License, or (at your option) any later version. 998f44cb0SIgor Mitsyanko * 1098f44cb0SIgor Mitsyanko * This program is distributed in the hope that it will be useful, 1198f44cb0SIgor Mitsyanko * but WITHOUT ANY WARRANTY; without even the implied warranty of 1298f44cb0SIgor Mitsyanko * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1398f44cb0SIgor Mitsyanko * GNU General Public License for more details. 1498f44cb0SIgor Mitsyanko * 1598f44cb0SIgor Mitsyanko */ 1698f44cb0SIgor Mitsyanko 1798f44cb0SIgor Mitsyanko #ifndef _QTN_FMAC_DEBUG_H_ 1898f44cb0SIgor Mitsyanko #define _QTN_FMAC_DEBUG_H_ 1998f44cb0SIgor Mitsyanko 2098f44cb0SIgor Mitsyanko #include <linux/debugfs.h> 2198f44cb0SIgor Mitsyanko 2298f44cb0SIgor Mitsyanko #include "core.h" 2398f44cb0SIgor Mitsyanko #include "bus.h" 2498f44cb0SIgor Mitsyanko 2598f44cb0SIgor Mitsyanko #ifdef CONFIG_DEBUG_FS 2698f44cb0SIgor Mitsyanko 2798f44cb0SIgor Mitsyanko void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name); 2898f44cb0SIgor Mitsyanko void qtnf_debugfs_remove(struct qtnf_bus *bus); 2998f44cb0SIgor Mitsyanko void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 3098f44cb0SIgor Mitsyanko int (*fn)(struct seq_file *seq, void *data)); 3198f44cb0SIgor Mitsyanko 3298f44cb0SIgor Mitsyanko #else 3398f44cb0SIgor Mitsyanko 3498f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name) 3598f44cb0SIgor Mitsyanko { 3698f44cb0SIgor Mitsyanko } 3798f44cb0SIgor Mitsyanko 3898f44cb0SIgor Mitsyanko static inline void qtnf_debugfs_remove(struct qtnf_bus *bus) 3998f44cb0SIgor Mitsyanko { 4098f44cb0SIgor Mitsyanko } 4198f44cb0SIgor Mitsyanko 4298f44cb0SIgor Mitsyanko static inline void 4398f44cb0SIgor Mitsyanko qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, 4498f44cb0SIgor Mitsyanko int (*fn)(struct seq_file *seq, void *data)) 4598f44cb0SIgor Mitsyanko { 4698f44cb0SIgor Mitsyanko } 4798f44cb0SIgor Mitsyanko 4898f44cb0SIgor Mitsyanko #endif /* CONFIG_DEBUG_FS */ 4998f44cb0SIgor Mitsyanko 5098f44cb0SIgor Mitsyanko #endif /* _QTN_FMAC_DEBUG_H_ */ 51