1/* $NetBSD: au8522mod_qam256.h,v 1.2 2011/07/10 00:47:34 jmcneill Exp $ */
2
3/*-
4 * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 */
28
29static const struct au8522_modulation_table au8522_modulation_qam256[] = {
30 { 0x80a3, 0x09 },
31 { 0x80a4, 0x00 },
32 { 0x8081, 0xc4 },
33 { 0x80a5, 0x40 },
34 { 0x80aa, 0x77 },
35 { 0x80ad, 0x77 },
36 { 0x80a6, 0x67 },
37 { 0x8262, 0x20 },
38 { 0x821c, 0x30 },
39 { 0x80b8, 0x3e },
40 { 0x80b9, 0xf0 },
41 { 0x80ba, 0x01 },
42 { 0x80bb, 0x18 },
43 { 0x80bc, 0x50 },
44 { 0x80bd, 0x00 },
45 { 0x80be, 0xea },
46 { 0x80bf, 0xef },
47 { 0x80c0, 0xfc },
48 { 0x80c1, 0xbd },
49 { 0x80c2, 0x1f },
50 { 0x80c3, 0xfc },
51 { 0x80c4, 0xdd },
52 { 0x80c5, 0xaf },
53 { 0x80c6, 0x00 },
54 { 0x80c7, 0x38 },
55 { 0x80c8, 0x30 },
56 { 0x80c9, 0x05 },
57 { 0x80ca, 0x4a },
58 { 0x80cb, 0xd0 },
59 { 0x80cc, 0x01 },
60 { 0x80cd, 0xd9 },
61 { 0x80ce, 0x6f },
62 { 0x80cf, 0xf9 },
63 { 0x80d0, 0x70 },
64 { 0x80d1, 0xdf },
65 { 0x80d2, 0xf7 },
66 { 0x80d3, 0xc2 },
67 { 0x80d4, 0xdf },
68 { 0x80d5, 0x02 },
69 { 0x80d6, 0x9a },
70 { 0x80d7, 0xd0 },
71 { 0x8250, 0x0d },
72 { 0x8251, 0xcd },
73 { 0x8252, 0xe0 },
74 { 0x8253, 0x05 },
75 { 0x8254, 0xa7 },
76 { 0x8255, 0xff },
77 { 0x8256, 0xed },
78 { 0x8257, 0x5b },
79 { 0x8258, 0xae },
80 { 0x8259, 0xe6 },
81 { 0x825a, 0x3d },
82 { 0x825b, 0x0f },
83 { 0x825c, 0x0d },
84 { 0x825d, 0xea },
85 { 0x825e, 0xf2 },
86 { 0x825f, 0x51 },
87 { 0x8260, 0xf5 },
88 { 0x8261, 0x06 },
89 { 0x821a, 0x00 },
90 { 0x8546, 0x40 },
91 { 0x8210, 0x26 },
92 { 0x8211, 0xf6 },
93 { 0x8212, 0x84 },
94 { 0x8213, 0x02 },
95 { 0x8502, 0x01 },
96 { 0x8121, 0x04 },
97 { 0x8122, 0x04 },
98 { 0x852e, 0x10 },
99 { 0x80a4, 0xca },
100 { 0x80a7, 0x40 },
101 { 0x8526, 0x01 },
102};
103
104static const struct au8522_snr_table au8522_snr_qam256[] = {
105 { 16, 0 },
106 { 17, 400 },
107 { 18, 398 },
108 { 19, 396 },
109 { 20, 394 },
110 { 21, 392 },
111 { 22, 390 },
112 { 23, 388 },
113 { 24, 386 },
114 { 25, 384 },
115 { 26, 382 },
116 { 27, 380 },
117 { 28, 379 },
118 { 29, 378 },
119 { 30, 377 },
120 { 31, 376 },
121 { 32, 375 },
122 { 33, 374 },
123 { 34, 373 },
124 { 35, 372 },
125 { 36, 371 },
126 { 37, 370 },
127 { 38, 362 },
128 { 39, 354 },
129 { 40, 346 },
130 { 41, 338 },
131 { 42, 330 },
132 { 43, 328 },
133 { 44, 326 },
134 { 45, 324 },
135 { 46, 322 },
136 { 47, 320 },
137 { 48, 319 },
138 { 49, 318 },
139 { 50, 317 },
140 { 51, 316 },
141 { 52, 315 },
142 { 53, 314 },
143 { 54, 313 },
144 { 55, 312 },
145 { 56, 311 },
146 { 57, 310 },
147 { 58, 308 },
148 { 59, 306 },
149 { 60, 304 },
150 { 61, 302 },
151 { 62, 300 },
152 { 63, 298 },
153 { 65, 295 },
154 { 68, 294 },
155 { 70, 293 },
156 { 73, 292 },
157 { 76, 291 },
158 { 78, 290 },
159 { 79, 289 },
160 { 81, 288 },
161 { 82, 287 },
162 { 83, 286 },
163 { 84, 285 },
164 { 85, 284 },
165 { 86, 283 },
166 { 88, 282 },
167 { 89, 281 },
168 { 256, 280 },
169};
170