Merge tag 'armsoc-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / drivers / staging / rtl8188eu / include / rtw_debug.h
CommitLineData
475b922e
LF
1/******************************************************************************
2 *
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17 *
18 *
19 ******************************************************************************/
20#ifndef __RTW_DEBUG_H__
21#define __RTW_DEBUG_H__
22
23#include <osdep_service.h>
24#include <drv_types.h>
25
fdc95374 26#define DRIVERVERSION "v4.1.4_6773.20130222"
475b922e
LF
27#define _drv_always_ 1
28#define _drv_emerg_ 2
29#define _drv_alert_ 3
30#define _drv_crit_ 4
31#define _drv_err_ 5
32#define _drv_warning_ 6
33#define _drv_notice_ 7
34#define _drv_info_ 8
35#define _drv_debug_ 9
36
37
38#define _module_rtl871x_xmit_c_ BIT(0)
39#define _module_xmit_osdep_c_ BIT(1)
40#define _module_rtl871x_recv_c_ BIT(2)
41#define _module_recv_osdep_c_ BIT(3)
42#define _module_rtl871x_mlme_c_ BIT(4)
43#define _module_mlme_osdep_c_ BIT(5)
44#define _module_rtl871x_sta_mgt_c_ BIT(6)
45#define _module_rtl871x_cmd_c_ BIT(7)
46#define _module_cmd_osdep_c_ BIT(8)
47#define _module_rtl871x_io_c_ BIT(9)
48#define _module_io_osdep_c_ BIT(10)
49#define _module_os_intfs_c_ BIT(11)
50#define _module_rtl871x_security_c_ BIT(12)
51#define _module_rtl871x_eeprom_c_ BIT(13)
52#define _module_hal_init_c_ BIT(14)
53#define _module_hci_hal_init_c_ BIT(15)
54#define _module_rtl871x_ioctl_c_ BIT(16)
55#define _module_rtl871x_ioctl_set_c_ BIT(17)
56#define _module_rtl871x_ioctl_query_c_ BIT(18)
57#define _module_rtl871x_pwrctrl_c_ BIT(19)
58#define _module_hci_intfs_c_ BIT(20)
59#define _module_hci_ops_c_ BIT(21)
60#define _module_osdep_service_c_ BIT(22)
61#define _module_mp_ BIT(23)
62#define _module_hci_ops_os_c_ BIT(24)
63#define _module_rtl871x_ioctl_os_c BIT(25)
64#define _module_rtl8712_cmd_c_ BIT(26)
65#define _module_rtl8192c_xmit_c_ BIT(27)
66#define _module_hal_xmit_c_ BIT(28)
67#define _module_efuse_ BIT(29)
68#define _module_rtl8712_recv_c_ BIT(30)
69#define _module_rtl8712_led_c_ BIT(31)
70
71#define DRIVER_PREFIX "R8188EU: "
72
73extern u32 GlobalDebugLevel;
74
75#define DBG_88E_LEVEL(_level, fmt, arg...) \
76 do { \
77 if (_level <= GlobalDebugLevel) \
78 pr_info(DRIVER_PREFIX"ERROR " fmt, ##arg); \
79 } while (0)
80
81#define DBG_88E(...) \
82 do { \
83 if (_drv_err_ <= GlobalDebugLevel) \
84 pr_info(DRIVER_PREFIX __VA_ARGS__); \
85 } while (0)
86
87#define MSG_88E(...) \
88 do { \
89 if (_drv_err_ <= GlobalDebugLevel) \
90 pr_info(DRIVER_PREFIX __VA_ARGS__); \
91 } while (0)
92
93#define RT_TRACE(_comp, _level, fmt) \
94 do { \
95 if (_level <= GlobalDebugLevel) { \
96 pr_info("%s [0x%08x,%d]", DRIVER_PREFIX, \
97 (unsigned int)_comp, _level); \
98 pr_info fmt; \
99 } \
100 } while (0)
101
475b922e
LF
102#define RT_PRINT_DATA(_comp, _level, _titlestring, _hexdata, _hexdatalen)\
103 do { \
104 if (_level <= GlobalDebugLevel) { \
105 int __i; \
106 u8 *ptr = (u8 *)_hexdata; \
107 pr_info("%s", DRIVER_PREFIX); \
108 pr_info(_titlestring); \
7be921a2 109 for (__i = 0; __i < (int)_hexdatalen; __i++) { \
475b922e
LF
110 pr_info("%02X%s", ptr[__i], \
111 (((__i + 1) % 4) == 0) ? \
112 " " : " "); \
113 if (((__i + 1) % 16) == 0) \
114 printk("\n"); \
115 } \
116 printk("\n"); \
117 } \
118 } while (0)
119
120int proc_get_drv_version(char *page, char **start,
121 off_t offset, int count,
122 int *eof, void *data);
123
124int proc_get_write_reg(char *page, char **start,
125 off_t offset, int count,
126 int *eof, void *data);
127
128int proc_set_write_reg(struct file *file, const char __user *buffer,
129 unsigned long count, void *data);
130int proc_get_read_reg(char *page, char **start,
131 off_t offset, int count,
132 int *eof, void *data);
133
134int proc_set_read_reg(struct file *file, const char __user *buffer,
135 unsigned long count, void *data);
136
137int proc_get_fwstate(char *page, char **start,
138 off_t offset, int count,
139 int *eof, void *data);
140int proc_get_sec_info(char *page, char **start,
141 off_t offset, int count,
142 int *eof, void *data);
143int proc_get_mlmext_state(char *page, char **start,
144 off_t offset, int count,
145 int *eof, void *data);
146
147int proc_get_qos_option(char *page, char **start,
148 off_t offset, int count,
149 int *eof, void *data);
150int proc_get_ht_option(char *page, char **start,
151 off_t offset, int count,
152 int *eof, void *data);
153int proc_get_rf_info(char *page, char **start,
154 off_t offset, int count,
155 int *eof, void *data);
156int proc_get_ap_info(char *page, char **start,
157 off_t offset, int count,
158 int *eof, void *data);
159
160int proc_get_adapter_state(char *page, char **start,
161 off_t offset, int count,
162 int *eof, void *data);
163
164int proc_get_trx_info(char *page, char **start,
165 off_t offset, int count,
166 int *eof, void *data);
167
168int proc_get_mac_reg_dump1(char *page, char **start,
169 off_t offset, int count,
170 int *eof, void *data);
171
172int proc_get_mac_reg_dump2(char *page, char **start,
173 off_t offset, int count,
174 int *eof, void *data);
175
176int proc_get_mac_reg_dump3(char *page, char **start,
177 off_t offset, int count,
178 int *eof, void *data);
179
180int proc_get_bb_reg_dump1(char *page, char **start,
181 off_t offset, int count,
182 int *eof, void *data);
183
184int proc_get_bb_reg_dump2(char *page, char **start,
185 off_t offset, int count,
186 int *eof, void *data);
187
188int proc_get_bb_reg_dump3(char *page, char **start,
189 off_t offset, int count,
190 int *eof, void *data);
191
192int proc_get_rf_reg_dump1(char *page, char **start,
193 off_t offset, int count,
194 int *eof, void *data);
195
196int proc_get_rf_reg_dump2(char *page, char **start,
197 off_t offset, int count,
198 int *eof, void *data);
199
200int proc_get_rf_reg_dump3(char *page, char **start,
201 off_t offset, int count,
202 int *eof, void *data);
203
204int proc_get_rf_reg_dump4(char *page, char **start,
205 off_t offset, int count,
206 int *eof, void *data);
207
208#ifdef CONFIG_88EU_AP_MODE
209
210int proc_get_all_sta_info(char *page, char **start,
211 off_t offset, int count,
212 int *eof, void *data);
213
214#endif
215
216int proc_get_best_channel(char *page, char **start,
217 off_t offset, int count,
218 int *eof, void *data);
219
220int proc_get_rx_signal(char *page, char **start,
221 off_t offset, int count,
222 int *eof, void *data);
223
224int proc_set_rx_signal(struct file *file, const char __user *buffer,
225 unsigned long count, void *data);
226
227int proc_get_ht_enable(char *page, char **start,
228 off_t offset, int count,
229 int *eof, void *data);
230
231int proc_set_ht_enable(struct file *file, const char __user *buffer,
232 unsigned long count, void *data);
233
234int proc_get_cbw40_enable(char *page, char **start,
235 off_t offset, int count,
236 int *eof, void *data);
237
238int proc_set_cbw40_enable(struct file *file, const char __user *buffer,
239 unsigned long count, void *data);
240
241int proc_get_ampdu_enable(char *page, char **start,
242 off_t offset, int count,
243 int *eof, void *data);
244
245int proc_set_ampdu_enable(struct file *file, const char __user *buffer,
246 unsigned long count, void *data);
247
248int proc_get_rx_stbc(char *page, char **start,
249 off_t offset, int count,
250 int *eof, void *data);
251
252int proc_set_rx_stbc(struct file *file, const char __user *buffer,
253 unsigned long count, void *data);
254
255int proc_get_two_path_rssi(char *page, char **start,
256 off_t offset, int count,
257 int *eof, void *data);
258
259int proc_get_rssi_disp(char *page, char **start,
260 off_t offset, int count,
261 int *eof, void *data);
262
263int proc_set_rssi_disp(struct file *file, const char __user *buffer,
264 unsigned long count, void *data);
265
475b922e 266#endif /* __RTW_DEBUG_H__ */
This page took 0.282636 seconds and 5 git commands to generate.