diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h | 74 |
1 files changed, 6 insertions, 68 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h index ef52ed7abc69..6eade7c60c63 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.h | |||
@@ -100,68 +100,6 @@ do { \ | |||
100 | 100 | ||
101 | extern int brcmf_msg_level; | 101 | extern int brcmf_msg_level; |
102 | 102 | ||
103 | /* | ||
104 | * hold counter variables used in brcmfmac sdio driver. | ||
105 | */ | ||
106 | struct brcmf_sdio_count { | ||
107 | uint intrcount; /* Count of device interrupt callbacks */ | ||
108 | uint lastintrs; /* Count as of last watchdog timer */ | ||
109 | uint pollcnt; /* Count of active polls */ | ||
110 | uint regfails; /* Count of R_REG failures */ | ||
111 | uint tx_sderrs; /* Count of tx attempts with sd errors */ | ||
112 | uint fcqueued; /* Tx packets that got queued */ | ||
113 | uint rxrtx; /* Count of rtx requests (NAK to dongle) */ | ||
114 | uint rx_toolong; /* Receive frames too long to receive */ | ||
115 | uint rxc_errors; /* SDIO errors when reading control frames */ | ||
116 | uint rx_hdrfail; /* SDIO errors on header reads */ | ||
117 | uint rx_badhdr; /* Bad received headers (roosync?) */ | ||
118 | uint rx_badseq; /* Mismatched rx sequence number */ | ||
119 | uint fc_rcvd; /* Number of flow-control events received */ | ||
120 | uint fc_xoff; /* Number which turned on flow-control */ | ||
121 | uint fc_xon; /* Number which turned off flow-control */ | ||
122 | uint rxglomfail; /* Failed deglom attempts */ | ||
123 | uint rxglomframes; /* Number of glom frames (superframes) */ | ||
124 | uint rxglompkts; /* Number of packets from glom frames */ | ||
125 | uint f2rxhdrs; /* Number of header reads */ | ||
126 | uint f2rxdata; /* Number of frame data reads */ | ||
127 | uint f2txdata; /* Number of f2 frame writes */ | ||
128 | uint f1regdata; /* Number of f1 register accesses */ | ||
129 | uint tickcnt; /* Number of watchdog been schedule */ | ||
130 | ulong tx_ctlerrs; /* Err of sending ctrl frames */ | ||
131 | ulong tx_ctlpkts; /* Ctrl frames sent to dongle */ | ||
132 | ulong rx_ctlerrs; /* Err of processing rx ctrl frames */ | ||
133 | ulong rx_ctlpkts; /* Ctrl frames processed from dongle */ | ||
134 | ulong rx_readahead_cnt; /* packets where header read-ahead was used */ | ||
135 | }; | ||
136 | |||
137 | struct brcmf_fws_stats { | ||
138 | u32 tlv_parse_failed; | ||
139 | u32 tlv_invalid_type; | ||
140 | u32 header_only_pkt; | ||
141 | u32 header_pulls; | ||
142 | u32 pkt2bus; | ||
143 | u32 send_pkts[5]; | ||
144 | u32 requested_sent[5]; | ||
145 | u32 generic_error; | ||
146 | u32 mac_update_failed; | ||
147 | u32 mac_ps_update_failed; | ||
148 | u32 if_update_failed; | ||
149 | u32 packet_request_failed; | ||
150 | u32 credit_request_failed; | ||
151 | u32 rollback_success; | ||
152 | u32 rollback_failed; | ||
153 | u32 delayq_full_error; | ||
154 | u32 supprq_full_error; | ||
155 | u32 txs_indicate; | ||
156 | u32 txs_discard; | ||
157 | u32 txs_supp_core; | ||
158 | u32 txs_supp_ps; | ||
159 | u32 txs_tossed; | ||
160 | u32 txs_host_tossed; | ||
161 | u32 bus_flow_block; | ||
162 | u32 fws_flow_block; | ||
163 | }; | ||
164 | |||
165 | struct brcmf_pub; | 103 | struct brcmf_pub; |
166 | #ifdef DEBUG | 104 | #ifdef DEBUG |
167 | void brcmf_debugfs_init(void); | 105 | void brcmf_debugfs_init(void); |
@@ -169,10 +107,8 @@ void brcmf_debugfs_exit(void); | |||
169 | int brcmf_debugfs_attach(struct brcmf_pub *drvr); | 107 | int brcmf_debugfs_attach(struct brcmf_pub *drvr); |
170 | void brcmf_debugfs_detach(struct brcmf_pub *drvr); | 108 | void brcmf_debugfs_detach(struct brcmf_pub *drvr); |
171 | struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr); | 109 | struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr); |
172 | void brcmf_debugfs_create_sdio_count(struct brcmf_pub *drvr, | 110 | int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, |
173 | struct brcmf_sdio_count *sdcnt); | 111 | int (*read_fn)(struct seq_file *seq, void *data)); |
174 | void brcmf_debugfs_create_fws_stats(struct brcmf_pub *drvr, | ||
175 | struct brcmf_fws_stats *stats); | ||
176 | #else | 112 | #else |
177 | static inline void brcmf_debugfs_init(void) | 113 | static inline void brcmf_debugfs_init(void) |
178 | { | 114 | { |
@@ -187,9 +123,11 @@ static inline int brcmf_debugfs_attach(struct brcmf_pub *drvr) | |||
187 | static inline void brcmf_debugfs_detach(struct brcmf_pub *drvr) | 123 | static inline void brcmf_debugfs_detach(struct brcmf_pub *drvr) |
188 | { | 124 | { |
189 | } | 125 | } |
190 | static inline void brcmf_debugfs_create_fws_stats(struct brcmf_pub *drvr, | 126 | static inline |
191 | struct brcmf_fws_stats *stats) | 127 | int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, |
128 | int (*read_fn)(struct seq_file *seq, void *data)) | ||
192 | { | 129 | { |
130 | return 0; | ||
193 | } | 131 | } |
194 | #endif | 132 | #endif |
195 | 133 | ||