| 1 |
|
| 2 |
|
| 3 |
|
| 4 | #ifndef _IONIC_DEBUGFS_H_
|
| 5 | #define _IONIC_DEBUGFS_H_
|
| 6 |
|
| 7 | #include <linux/debugfs.h>
|
| 8 |
|
| 9 | #ifdef CONFIG_DEBUG_FS
|
| 10 |
|
| 11 | void ionic_debugfs_create(void);
|
| 12 | void ionic_debugfs_destroy(void);
|
| 13 | void ionic_debugfs_add_dev(struct ionic *ionic);
|
| 14 | void ionic_debugfs_del_dev(struct ionic *ionic);
|
| 15 | void ionic_debugfs_add_ident(struct ionic *ionic);
|
| 16 | void ionic_debugfs_add_sizes(struct ionic *ionic);
|
| 17 | void ionic_debugfs_add_lif(struct ionic_lif *lif);
|
| 18 | void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq);
|
| 19 | void ionic_debugfs_del_lif(struct ionic_lif *lif);
|
| 20 | void ionic_debugfs_del_qcq(struct ionic_qcq *qcq);
|
| 21 | #else
|
| 22 | static inline void ionic_debugfs_create(void) { }
|
| 23 | static inline void ionic_debugfs_destroy(void) { }
|
| 24 | static inline void ionic_debugfs_add_dev(struct ionic *ionic) { }
|
| 25 | static inline void ionic_debugfs_del_dev(struct ionic *ionic) { }
|
| 26 | static inline void ionic_debugfs_add_ident(struct ionic *ionic) { }
|
| 27 | static inline void ionic_debugfs_add_sizes(struct ionic *ionic) { }
|
| 28 | static inline void ionic_debugfs_add_lif(struct ionic_lif *lif) { }
|
| 29 | static inline void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) { }
|
| 30 | static inline void ionic_debugfs_del_lif(struct ionic_lif *lif) { }
|
| 31 | static inline void ionic_debugfs_del_qcq(struct ionic_qcq *qcq) { }
|
| 32 | #endif
|
| 33 |
|
| 34 | #endif
|