18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (c) 2013 Eugene Krasnikov <k.eugene.e@gmail.com>
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
58c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
68c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
98c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
108c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
118c2ecf20Sopenharmony_ci * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
128c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
138c2ecf20Sopenharmony_ci * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
148c2ecf20Sopenharmony_ci * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#ifndef _WCN36XX_DEBUG_H_
188c2ecf20Sopenharmony_ci#define _WCN36XX_DEBUG_H_
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#include <linux/kernel.h>
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define WCN36xx_MAX_DUMP_ARGS	5
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#ifdef CONFIG_WCN36XX_DEBUGFS
258c2ecf20Sopenharmony_cistruct wcn36xx_dfs_file {
268c2ecf20Sopenharmony_ci	struct dentry *dentry;
278c2ecf20Sopenharmony_ci	u32 value;
288c2ecf20Sopenharmony_ci};
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_cistruct wcn36xx_dfs_entry {
318c2ecf20Sopenharmony_ci	struct dentry *rootdir;
328c2ecf20Sopenharmony_ci	struct wcn36xx_dfs_file file_bmps_switcher;
338c2ecf20Sopenharmony_ci	struct wcn36xx_dfs_file file_dump;
348c2ecf20Sopenharmony_ci};
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_civoid wcn36xx_debugfs_init(struct wcn36xx *wcn);
378c2ecf20Sopenharmony_civoid wcn36xx_debugfs_exit(struct wcn36xx *wcn);
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#else
408c2ecf20Sopenharmony_cistatic inline void wcn36xx_debugfs_init(struct wcn36xx *wcn)
418c2ecf20Sopenharmony_ci{
428c2ecf20Sopenharmony_ci}
438c2ecf20Sopenharmony_cistatic inline void wcn36xx_debugfs_exit(struct wcn36xx *wcn)
448c2ecf20Sopenharmony_ci{
458c2ecf20Sopenharmony_ci}
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci#endif /* CONFIG_WCN36XX_DEBUGFS */
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#endif	/* _WCN36XX_DEBUG_H_ */
50