diff options
author | Arend van Spriel <arend@broadcom.com> | 2012-06-09 16:51:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-13 14:35:49 -0400 |
commit | d319a7cfd9d80a2e2359e978ba88991531312ee6 (patch) | |
tree | 77164556f82eaf773f9785207190ce50aa5a5bef /drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h | |
parent | 5e16e8ee3a14b59366d25f075926da3ca5d03d11 (diff) |
brcmfmac: add debugfs helper functions
This patch adds debugfs support to brcmfmac. It provide helper functions
to setup the debugfs folder structure for the driver, which has following
hierarchy:
<debugfs_mount>/brcmfmac/<dev_name>/
ie.: /sys/kernel/debug/brcmfmac/mmc0:0001:2/
The new source file provides functions to create and remove the two
folders and a function to retrieve the device-specific folder so files
can be created in it.
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h index a2c4576cf9ff..0efb226030a4 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h | |||
@@ -76,4 +76,27 @@ do { \ | |||
76 | 76 | ||
77 | extern int brcmf_msg_level; | 77 | extern int brcmf_msg_level; |
78 | 78 | ||
79 | struct brcmf_pub; | ||
80 | #ifdef DEBUG | ||
81 | void brcmf_debugfs_init(void); | ||
82 | void brcmf_debugfs_exit(void); | ||
83 | int brcmf_debugfs_attach(struct brcmf_pub *drvr); | ||
84 | void brcmf_debugfs_detach(struct brcmf_pub *drvr); | ||
85 | struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr); | ||
86 | #else | ||
87 | static inline void brcmf_debugfs_init(void) | ||
88 | { | ||
89 | } | ||
90 | static inline void brcmf_debugfs_exit(void) | ||
91 | { | ||
92 | } | ||
93 | static inline int brcmf_debugfs_attach(struct brcmf_pub *drvr) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
97 | static inline void brcmf_debugfs_detach(struct brcmf_pub *drvr) | ||
98 | { | ||
99 | } | ||
100 | #endif | ||
101 | |||
79 | #endif /* _BRCMF_DBG_H_ */ | 102 | #endif /* _BRCMF_DBG_H_ */ |