18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright(c) 2017 - 2019 Pensando Systems, Inc */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _IONIC_DEBUGFS_H_
58c2ecf20Sopenharmony_ci#define _IONIC_DEBUGFS_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/debugfs.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_FS
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_civoid ionic_debugfs_create(void);
128c2ecf20Sopenharmony_civoid ionic_debugfs_destroy(void);
138c2ecf20Sopenharmony_civoid ionic_debugfs_add_dev(struct ionic *ionic);
148c2ecf20Sopenharmony_civoid ionic_debugfs_del_dev(struct ionic *ionic);
158c2ecf20Sopenharmony_civoid ionic_debugfs_add_ident(struct ionic *ionic);
168c2ecf20Sopenharmony_civoid ionic_debugfs_add_sizes(struct ionic *ionic);
178c2ecf20Sopenharmony_civoid ionic_debugfs_add_lif(struct ionic_lif *lif);
188c2ecf20Sopenharmony_civoid ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq);
198c2ecf20Sopenharmony_civoid ionic_debugfs_del_lif(struct ionic_lif *lif);
208c2ecf20Sopenharmony_civoid ionic_debugfs_del_qcq(struct ionic_qcq *qcq);
218c2ecf20Sopenharmony_ci#else
228c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_create(void) { }
238c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_destroy(void) { }
248c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_add_dev(struct ionic *ionic) { }
258c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_del_dev(struct ionic *ionic) { }
268c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_add_ident(struct ionic *ionic) { }
278c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_add_sizes(struct ionic *ionic) { }
288c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_add_lif(struct ionic_lif *lif) { }
298c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq) { }
308c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_del_lif(struct ionic_lif *lif) { }
318c2ecf20Sopenharmony_cistatic inline void ionic_debugfs_del_qcq(struct ionic_qcq *qcq) { }
328c2ecf20Sopenharmony_ci#endif
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif /* _IONIC_DEBUGFS_H_ */
35