Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2013 Eugene Krasnikov <k.eugene.e@gmail.com>
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
0011  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
0013  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
0014  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 
0017 #ifndef _WCN36XX_DEBUG_H_
0018 #define _WCN36XX_DEBUG_H_
0019 
0020 #include <linux/kernel.h>
0021 
0022 #define WCN36xx_MAX_DUMP_ARGS   5
0023 
0024 #ifdef CONFIG_WCN36XX_DEBUGFS
0025 struct wcn36xx_dfs_file {
0026     struct dentry *dentry;
0027     u32 value;
0028 };
0029 
0030 struct wcn36xx_dfs_entry {
0031     struct dentry *rootdir;
0032     struct wcn36xx_dfs_file file_bmps_switcher;
0033     struct wcn36xx_dfs_file file_dump;
0034     struct wcn36xx_dfs_file file_firmware_feat_caps;
0035 };
0036 
0037 void wcn36xx_debugfs_init(struct wcn36xx *wcn);
0038 void wcn36xx_debugfs_exit(struct wcn36xx *wcn);
0039 
0040 #else
0041 static inline void wcn36xx_debugfs_init(struct wcn36xx *wcn)
0042 {
0043 }
0044 static inline void wcn36xx_debugfs_exit(struct wcn36xx *wcn)
0045 {
0046 }
0047 
0048 #endif /* CONFIG_WCN36XX_DEBUGFS */
0049 
0050 #endif  /* _WCN36XX_DEBUG_H_ */