1
2
3
4#include "table.h"
5
6u32 rtl8192sephy_reg_2t2rarray[PHY_REG_2T2RARRAYLENGTH] = {
7 0x01c, 0x07000000,
8 0x800, 0x00040000,
9 0x804, 0x00008003,
10 0x808, 0x0000fc00,
11 0x80c, 0x0000000a,
12 0x810, 0x10005088,
13 0x814, 0x020c3d10,
14 0x818, 0x00200185,
15 0x81c, 0x00000000,
16 0x820, 0x01000000,
17 0x824, 0x00390004,
18 0x828, 0x01000000,
19 0x82c, 0x00390004,
20 0x830, 0x00000004,
21 0x834, 0x00690200,
22 0x838, 0x00000004,
23 0x83c, 0x00690200,
24 0x840, 0x00010000,
25 0x844, 0x00010000,
26 0x848, 0x00000000,
27 0x84c, 0x00000000,
28 0x850, 0x00000000,
29 0x854, 0x00000000,
30 0x858, 0x48484848,
31 0x85c, 0x65a965a9,
32 0x860, 0x0f7f0130,
33 0x864, 0x0f7f0130,
34 0x868, 0x0f7f0130,
35 0x86c, 0x0f7f0130,
36 0x870, 0x03000700,
37 0x874, 0x03000300,
38 0x878, 0x00020002,
39 0x87c, 0x004f0201,
40 0x880, 0xa8300ac1,
41 0x884, 0x00000058,
42 0x888, 0x00000008,
43 0x88c, 0x00000004,
44 0x890, 0x00000000,
45 0x894, 0xfffffffe,
46 0x898, 0x40302010,
47 0x89c, 0x00706050,
48 0x8b0, 0x00000000,
49 0x8e0, 0x00000000,
50 0x8e4, 0x00000000,
51 0xe00, 0x30333333,
52 0xe04, 0x2a2d2e2f,
53 0xe08, 0x00003232,
54 0xe10, 0x30333333,
55 0xe14, 0x2a2d2e2f,
56 0xe18, 0x30333333,
57 0xe1c, 0x2a2d2e2f,
58 0xe30, 0x01007c00,
59 0xe34, 0x01004800,
60 0xe38, 0x1000dc1f,
61 0xe3c, 0x10008c1f,
62 0xe40, 0x021400a0,
63 0xe44, 0x281600a0,
64 0xe48, 0xf8000001,
65 0xe4c, 0x00002910,
66 0xe50, 0x01007c00,
67 0xe54, 0x01004800,
68 0xe58, 0x1000dc1f,
69 0xe5c, 0x10008c1f,
70 0xe60, 0x021400a0,
71 0xe64, 0x281600a0,
72 0xe6c, 0x00002910,
73 0xe70, 0x31ed92fb,
74 0xe74, 0x361536fb,
75 0xe78, 0x361536fb,
76 0xe7c, 0x361536fb,
77 0xe80, 0x361536fb,
78 0xe84, 0x000d92fb,
79 0xe88, 0x000d92fb,
80 0xe8c, 0x31ed92fb,
81 0xed0, 0x31ed92fb,
82 0xed4, 0x31ed92fb,
83 0xed8, 0x000d92fb,
84 0xedc, 0x000d92fb,
85 0xee0, 0x000d92fb,
86 0xee4, 0x015e5448,
87 0xee8, 0x21555448,
88 0x900, 0x00000000,
89 0x904, 0x00000023,
90 0x908, 0x00000000,
91 0x90c, 0x01121313,
92 0xa00, 0x00d047c8,
93 0xa04, 0x80ff0008,
94 0xa08, 0x8ccd8300,
95 0xa0c, 0x2e62120f,
96 0xa10, 0x9500bb78,
97 0xa14, 0x11144028,
98 0xa18, 0x00881117,
99 0xa1c, 0x89140f00,
100 0xa20, 0x1a1b0000,
101 0xa24, 0x090e1317,
102 0xa28, 0x00000204,
103 0xa2c, 0x10d30000,
104 0xc00, 0x40071d40,
105 0xc04, 0x00a05633,
106 0xc08, 0x000000e4,
107 0xc0c, 0x6c6c6c6c,
108 0xc10, 0x08800000,
109 0xc14, 0x40000100,
110 0xc18, 0x08000000,
111 0xc1c, 0x40000100,
112 0xc20, 0x08000000,
113 0xc24, 0x40000100,
114 0xc28, 0x08000000,
115 0xc2c, 0x40000100,
116 0xc30, 0x6de9ac44,
117 0xc34, 0x469652cf,
118 0xc38, 0x49795994,
119 0xc3c, 0x0a979764,
120 0xc40, 0x1f7c403f,
121 0xc44, 0x000100b7,
122 0xc48, 0xec020000,
123 0xc4c, 0x007f037f,
124 0xc50, 0x69543420,
125 0xc54, 0x433c0094,
126 0xc58, 0x69543420,
127 0xc5c, 0x433c0094,
128 0xc60, 0x69543420,
129 0xc64, 0x433c0094,
130 0xc68, 0x69543420,
131 0xc6c, 0x433c0094,
132 0xc70, 0x2c7f000d,
133 0xc74, 0x0186155b,
134 0xc78, 0x0000001f,
135 0xc7c, 0x00b91612,
136 0xc80, 0x40000100,
137 0xc84, 0x20f60000,
138 0xc88, 0x20000080,
139 0xc8c, 0x20200000,
140 0xc90, 0x40000100,
141 0xc94, 0x00000000,
142 0xc98, 0x40000100,
143 0xc9c, 0x00000000,
144 0xca0, 0x00492492,
145 0xca4, 0x00000000,
146 0xca8, 0x00000000,
147 0xcac, 0x00000000,
148 0xcb0, 0x00000000,
149 0xcb4, 0x00000000,
150 0xcb8, 0x00000000,
151 0xcbc, 0x28000000,
152 0xcc0, 0x00000000,
153 0xcc4, 0x00000000,
154 0xcc8, 0x00000000,
155 0xccc, 0x00000000,
156 0xcd0, 0x00000000,
157 0xcd4, 0x00000000,
158 0xcd8, 0x64b22427,
159 0xcdc, 0x00766932,
160 0xce0, 0x00222222,
161 0xce4, 0x00000000,
162 0xce8, 0x37644302,
163 0xcec, 0x2f97d40c,
164 0xd00, 0x00000750,
165 0xd04, 0x00000403,
166 0xd08, 0x0000907f,
167 0xd0c, 0x00000001,
168 0xd10, 0xa0633333,
169 0xd14, 0x33333c63,
170 0xd18, 0x6a8f5b6b,
171 0xd1c, 0x00000000,
172 0xd20, 0x00000000,
173 0xd24, 0x00000000,
174 0xd28, 0x00000000,
175 0xd2c, 0xcc979975,
176 0xd30, 0x00000000,
177 0xd34, 0x00000000,
178 0xd38, 0x00000000,
179 0xd3c, 0x00027293,
180 0xd40, 0x00000000,
181 0xd44, 0x00000000,
182 0xd48, 0x00000000,
183 0xd50, 0x6437140a,
184 0xd54, 0x024dbd02,
185 0xd58, 0x00000000,
186 0xd5c, 0x30032064,
187 0xd60, 0x4653de68,
188 0xd64, 0x00518a3c,
189 0xd68, 0x00002101,
190 0xf14, 0x00000003,
191 0xf4c, 0x00000000,
192 0xf00, 0x00000300,
193};
194
195u32 rtl8192sephy_changeto_1t1rarray[PHY_CHANGETO_1T1RARRAYLENGTH] = {
196 0x844, 0xffffffff, 0x00010000,
197 0x804, 0x0000000f, 0x00000001,
198 0x824, 0x00f0000f, 0x00300004,
199 0x82c, 0x00f0000f, 0x00100002,
200 0x870, 0x04000000, 0x00000001,
201 0x864, 0x00000400, 0x00000000,
202 0x878, 0x000f000f, 0x00000002,
203 0xe74, 0x0f000000, 0x00000002,
204 0xe78, 0x0f000000, 0x00000002,
205 0xe7c, 0x0f000000, 0x00000002,
206 0xe80, 0x0f000000, 0x00000002,
207 0x90c, 0x000000ff, 0x00000011,
208 0xc04, 0x000000ff, 0x00000011,
209 0xd04, 0x0000000f, 0x00000001,
210 0x1f4, 0xffff0000, 0x00007777,
211 0x234, 0xf8000000, 0x0000000a,
212};
213
214u32 rtl8192sephy_changeto_1t2rarray[PHY_CHANGETO_1T2RARRAYLENGTH] = {
215 0x804, 0x0000000f, 0x00000003,
216 0x824, 0x00f0000f, 0x00300004,
217 0x82c, 0x00f0000f, 0x00300002,
218 0x870, 0x04000000, 0x00000001,
219 0x864, 0x00000400, 0x00000000,
220 0x878, 0x000f000f, 0x00000002,
221 0xe74, 0x0f000000, 0x00000002,
222 0xe78, 0x0f000000, 0x00000002,
223 0xe7c, 0x0f000000, 0x00000002,
224 0xe80, 0x0f000000, 0x00000002,
225 0x90c, 0x000000ff, 0x00000011,
226 0xc04, 0x000000ff, 0x00000033,
227 0xd04, 0x0000000f, 0x00000003,
228 0x1f4, 0xffff0000, 0x00007777,
229 0x234, 0xf8000000, 0x0000000a,
230};
231
232u32 rtl8192sephy_reg_array_pg[PHY_REG_ARRAY_PGLENGTH] = {
233 0xe00, 0xffffffff, 0x06090909,
234 0xe04, 0xffffffff, 0x00030406,
235 0xe08, 0x0000ff00, 0x00000000,
236 0xe10, 0xffffffff, 0x0a0c0d0e,
237 0xe14, 0xffffffff, 0x04070809,
238 0xe18, 0xffffffff, 0x0a0c0d0e,
239 0xe1c, 0xffffffff, 0x04070809,
240 0xe00, 0xffffffff, 0x04040404,
241 0xe04, 0xffffffff, 0x00020204,
242 0xe08, 0x0000ff00, 0x00000000,
243 0xe10, 0xffffffff, 0x02040404,
244 0xe14, 0xffffffff, 0x00000002,
245 0xe18, 0xffffffff, 0x02040404,
246 0xe1c, 0xffffffff, 0x00000002,
247 0xe00, 0xffffffff, 0x04040404,
248 0xe04, 0xffffffff, 0x00020204,
249 0xe08, 0x0000ff00, 0x00000000,
250 0xe10, 0xffffffff, 0x02040404,
251 0xe14, 0xffffffff, 0x00000002,
252 0xe18, 0xffffffff, 0x02040404,
253 0xe1c, 0xffffffff, 0x00000002,
254 0xe00, 0xffffffff, 0x02020202,
255 0xe04, 0xffffffff, 0x00020202,
256 0xe08, 0x0000ff00, 0x00000000,
257 0xe10, 0xffffffff, 0x02020202,
258 0xe14, 0xffffffff, 0x00000002,
259 0xe18, 0xffffffff, 0x02020202,
260 0xe1c, 0xffffffff, 0x00000002,
261};
262
263u32 rtl8192seradioa_1t_array[RADIOA_1T_ARRAYLENGTH] = {
264 0x000, 0x00030159,
265 0x001, 0x00030250,
266 0x002, 0x00010000,
267 0x010, 0x0008000f,
268 0x011, 0x000231fc,
269 0x010, 0x000c000f,
270 0x011, 0x0003f9f8,
271 0x010, 0x0002000f,
272 0x011, 0x00020101,
273 0x014, 0x0001093e,
274 0x014, 0x0009093e,
275 0x015, 0x0000f8f4,
276 0x017, 0x000f6500,
277 0x01a, 0x00013056,
278 0x01b, 0x00060000,
279 0x01c, 0x00000300,
280 0x01e, 0x00031059,
281 0x021, 0x00054000,
282 0x022, 0x0000083c,
283 0x023, 0x00001558,
284 0x024, 0x00000060,
285 0x025, 0x00022583,
286 0x026, 0x0000f200,
287 0x027, 0x000eacf1,
288 0x028, 0x0009bd54,
289 0x029, 0x00004582,
290 0x02a, 0x00000001,
291 0x02b, 0x00021334,
292 0x02a, 0x00000000,
293 0x02b, 0x0000000a,
294 0x02a, 0x00000001,
295 0x02b, 0x00000808,
296 0x02b, 0x00053333,
297 0x02c, 0x0000000c,
298 0x02a, 0x00000002,
299 0x02b, 0x00000808,
300 0x02b, 0x0005b333,
301 0x02c, 0x0000000d,
302 0x02a, 0x00000003,
303 0x02b, 0x00000808,
304 0x02b, 0x00063333,
305 0x02c, 0x0000000d,
306 0x02a, 0x00000004,
307 0x02b, 0x00000808,
308 0x02b, 0x0006b333,
309 0x02c, 0x0000000d,
310 0x02a, 0x00000005,
311 0x02b, 0x00000709,
312 0x02b, 0x00053333,
313 0x02c, 0x0000000d,
314 0x02a, 0x00000006,
315 0x02b, 0x00000709,
316 0x02b, 0x0005b333,
317 0x02c, 0x0000000d,
318 0x02a, 0x00000007,
319 0x02b, 0x00000709,
320 0x02b, 0x00063333,
321 0x02c, 0x0000000d,
322 0x02a, 0x00000008,
323 0x02b, 0x00000709,
324 0x02b, 0x0006b333,
325 0x02c, 0x0000000d,
326 0x02a, 0x00000009,
327 0x02b, 0x0000060a,
328 0x02b, 0x00053333,
329 0x02c, 0x0000000d,
330 0x02a, 0x0000000a,
331 0x02b, 0x0000060a,
332 0x02b, 0x0005b333,
333 0x02c, 0x0000000d,
334 0x02a, 0x0000000b,
335 0x02b, 0x0000060a,
336 0x02b, 0x00063333,
337 0x02c, 0x0000000d,
338 0x02a, 0x0000000c,
339 0x02b, 0x0000060a,
340 0x02b, 0x0006b333,
341 0x02c, 0x0000000d,
342 0x02a, 0x0000000d,
343 0x02b, 0x0000050b,
344 0x02b, 0x00053333,
345 0x02c, 0x0000000d,
346 0x02a, 0x0000000e,
347 0x02b, 0x0000050b,
348 0x02b, 0x00066623,
349 0x02c, 0x0000001a,
350 0x02a, 0x000e4000,
351 0x030, 0x00020000,
352 0x031, 0x000b9631,
353 0x032, 0x0000130d,
354 0x033, 0x00000187,
355 0x013, 0x00019e6c,
356 0x013, 0x00015e94,
357 0x000, 0x00010159,
358 0x018, 0x0000f401,
359 0x0fe, 0x00000000,
360 0x01e, 0x0003105b,
361 0x0fe, 0x00000000,
362 0x000, 0x00030159,
363 0x010, 0x0004000f,
364 0x011, 0x000203f9,
365};
366
367u32 rtl8192seradiob_array[RADIOB_ARRAYLENGTH] = {
368 0x000, 0x00030159,
369 0x001, 0x00001041,
370 0x002, 0x00011000,
371 0x005, 0x00080fc0,
372 0x007, 0x000fc803,
373 0x013, 0x00017cb0,
374 0x013, 0x00011cc0,
375 0x013, 0x0000dc60,
376 0x013, 0x00008c60,
377 0x013, 0x00004450,
378 0x013, 0x00000020,
379};
380
381u32 rtl8192seradiob_gm_array[RADIOB_GM_ARRAYLENGTH] = {
382 0x000, 0x00030159,
383 0x001, 0x00001041,
384 0x002, 0x00011000,
385 0x005, 0x00080fc0,
386 0x007, 0x000fc803,
387};
388
389u32 rtl8192semac_2t_array[MAC_2T_ARRAYLENGTH] = {
390 0x020, 0x00000035,
391 0x048, 0x0000000e,
392 0x049, 0x000000f0,
393 0x04a, 0x00000077,
394 0x04b, 0x00000083,
395 0x0b5, 0x00000021,
396 0x0dc, 0x000000ff,
397 0x0dd, 0x000000ff,
398 0x0de, 0x000000ff,
399 0x0df, 0x000000ff,
400 0x116, 0x00000000,
401 0x117, 0x00000000,
402 0x118, 0x00000000,
403 0x119, 0x00000000,
404 0x11a, 0x00000000,
405 0x11b, 0x00000000,
406 0x11c, 0x00000000,
407 0x11d, 0x00000000,
408 0x160, 0x0000000b,
409 0x161, 0x0000000b,
410 0x162, 0x0000000b,
411 0x163, 0x0000000b,
412 0x164, 0x0000000b,
413 0x165, 0x0000000b,
414 0x166, 0x0000000b,
415 0x167, 0x0000000b,
416 0x168, 0x0000000b,
417 0x169, 0x0000000b,
418 0x16a, 0x0000000b,
419 0x16b, 0x0000000b,
420 0x16c, 0x0000000b,
421 0x16d, 0x0000000b,
422 0x16e, 0x0000000b,
423 0x16f, 0x0000000b,
424 0x170, 0x0000000b,
425 0x171, 0x0000000b,
426 0x172, 0x0000000b,
427 0x173, 0x0000000b,
428 0x174, 0x0000000b,
429 0x175, 0x0000000b,
430 0x176, 0x0000000b,
431 0x177, 0x0000000b,
432 0x178, 0x0000000b,
433 0x179, 0x0000000b,
434 0x17a, 0x0000000b,
435 0x17b, 0x0000000b,
436 0x17c, 0x0000000b,
437 0x17d, 0x0000000b,
438 0x17e, 0x0000000b,
439 0x17f, 0x0000000b,
440 0x236, 0x0000000c,
441 0x503, 0x00000022,
442 0x560, 0x00000000,
443};
444
445u32 rtl8192seagctab_array[AGCTAB_ARRAYLENGTH] = {
446 0xc78, 0x7f000001,
447 0xc78, 0x7f010001,
448 0xc78, 0x7e020001,
449 0xc78, 0x7d030001,
450 0xc78, 0x7c040001,
451 0xc78, 0x7b050001,
452 0xc78, 0x7a060001,
453 0xc78, 0x79070001,
454 0xc78, 0x78080001,
455 0xc78, 0x77090001,
456 0xc78, 0x760a0001,
457 0xc78, 0x750b0001,
458 0xc78, 0x740c0001,
459 0xc78, 0x730d0001,
460 0xc78, 0x720e0001,
461 0xc78, 0x710f0001,
462 0xc78, 0x70100001,
463 0xc78, 0x6f110001,
464 0xc78, 0x6f120001,
465 0xc78, 0x6e130001,
466 0xc78, 0x6d140001,
467 0xc78, 0x6d150001,
468 0xc78, 0x6c160001,
469 0xc78, 0x6b170001,
470 0xc78, 0x6a180001,
471 0xc78, 0x6a190001,
472 0xc78, 0x691a0001,
473 0xc78, 0x681b0001,
474 0xc78, 0x671c0001,
475 0xc78, 0x661d0001,
476 0xc78, 0x651e0001,
477 0xc78, 0x641f0001,
478 0xc78, 0x63200001,
479 0xc78, 0x4c210001,
480 0xc78, 0x4b220001,
481 0xc78, 0x4a230001,
482 0xc78, 0x49240001,
483 0xc78, 0x48250001,
484 0xc78, 0x47260001,
485 0xc78, 0x46270001,
486 0xc78, 0x45280001,
487 0xc78, 0x44290001,
488 0xc78, 0x2c2a0001,
489 0xc78, 0x2b2b0001,
490 0xc78, 0x2a2c0001,
491 0xc78, 0x292d0001,
492 0xc78, 0x282e0001,
493 0xc78, 0x272f0001,
494 0xc78, 0x26300001,
495 0xc78, 0x25310001,
496 0xc78, 0x24320001,
497 0xc78, 0x23330001,
498 0xc78, 0x22340001,
499 0xc78, 0x09350001,
500 0xc78, 0x08360001,
501 0xc78, 0x07370001,
502 0xc78, 0x06380001,
503 0xc78, 0x05390001,
504 0xc78, 0x043a0001,
505 0xc78, 0x033b0001,
506 0xc78, 0x023c0001,
507 0xc78, 0x013d0001,
508 0xc78, 0x003e0001,
509 0xc78, 0x003f0001,
510 0xc78, 0x7f400001,
511 0xc78, 0x7f410001,
512 0xc78, 0x7e420001,
513 0xc78, 0x7d430001,
514 0xc78, 0x7c440001,
515 0xc78, 0x7b450001,
516 0xc78, 0x7a460001,
517 0xc78, 0x79470001,
518 0xc78, 0x78480001,
519 0xc78, 0x77490001,
520 0xc78, 0x764a0001,
521 0xc78, 0x754b0001,
522 0xc78, 0x744c0001,
523 0xc78, 0x734d0001,
524 0xc78, 0x724e0001,
525 0xc78, 0x714f0001,
526 0xc78, 0x70500001,
527 0xc78, 0x6f510001,
528 0xc78, 0x6f520001,
529 0xc78, 0x6e530001,
530 0xc78, 0x6d540001,
531 0xc78, 0x6d550001,
532 0xc78, 0x6c560001,
533 0xc78, 0x6b570001,
534 0xc78, 0x6a580001,
535 0xc78, 0x6a590001,
536 0xc78, 0x695a0001,
537 0xc78, 0x685b0001,
538 0xc78, 0x675c0001,
539 0xc78, 0x665d0001,
540 0xc78, 0x655e0001,
541 0xc78, 0x645f0001,
542 0xc78, 0x63600001,
543 0xc78, 0x4c610001,
544 0xc78, 0x4b620001,
545 0xc78, 0x4a630001,
546 0xc78, 0x49640001,
547 0xc78, 0x48650001,
548 0xc78, 0x47660001,
549 0xc78, 0x46670001,
550 0xc78, 0x45680001,
551 0xc78, 0x44690001,
552 0xc78, 0x2c6a0001,
553 0xc78, 0x2b6b0001,
554 0xc78, 0x2a6c0001,
555 0xc78, 0x296d0001,
556 0xc78, 0x286e0001,
557 0xc78, 0x276f0001,
558 0xc78, 0x26700001,
559 0xc78, 0x25710001,
560 0xc78, 0x24720001,
561 0xc78, 0x23730001,
562 0xc78, 0x22740001,
563 0xc78, 0x09750001,
564 0xc78, 0x08760001,
565 0xc78, 0x07770001,
566 0xc78, 0x06780001,
567 0xc78, 0x05790001,
568 0xc78, 0x047a0001,
569 0xc78, 0x037b0001,
570 0xc78, 0x027c0001,
571 0xc78, 0x017d0001,
572 0xc78, 0x007e0001,
573 0xc78, 0x007f0001,
574 0xc78, 0x3000001e,
575 0xc78, 0x3001001e,
576 0xc78, 0x3002001e,
577 0xc78, 0x3003001e,
578 0xc78, 0x3004001e,
579 0xc78, 0x3405001e,
580 0xc78, 0x3806001e,
581 0xc78, 0x3e07001e,
582 0xc78, 0x3e08001e,
583 0xc78, 0x4409001e,
584 0xc78, 0x460a001e,
585 0xc78, 0x480b001e,
586 0xc78, 0x480c001e,
587 0xc78, 0x4e0d001e,
588 0xc78, 0x560e001e,
589 0xc78, 0x5a0f001e,
590 0xc78, 0x5e10001e,
591 0xc78, 0x6211001e,
592 0xc78, 0x6c12001e,
593 0xc78, 0x7213001e,
594 0xc78, 0x7214001e,
595 0xc78, 0x7215001e,
596 0xc78, 0x7216001e,
597 0xc78, 0x7217001e,
598 0xc78, 0x7218001e,
599 0xc78, 0x7219001e,
600 0xc78, 0x721a001e,
601 0xc78, 0x721b001e,
602 0xc78, 0x721c001e,
603 0xc78, 0x721d001e,
604 0xc78, 0x721e001e,
605 0xc78, 0x721f001e,
606};
607
608