11849Swollman/* $NetBSD: au8522mod_qam256.h,v 1.1 2011/07/09 15:00:43 jmcneill Exp $ */
21849Swollman
31849Swollman/*-
41849Swollman * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
51849Swollman * All rights reserved.
61849Swollman *
71849Swollman * Redistribution and use in source and binary forms, with or without
81849Swollman * modification, are permitted provided that the following conditions
91849Swollman * are met:
101849Swollman * 1. Redistributions of source code must retain the above copyright
111849Swollman *    notice, this list of conditions and the following disclaimer.
121849Swollman * 2. Redistributions in binary form must reproduce the above copyright
131849Swollman *    notice, this list of conditions and the following disclaimer in the
141849Swollman *    documentation and/or other materials provided with the distribution.
151849Swollman *
161849Swollman * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
171849Swollman * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
181849Swollman * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191849Swollman * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
201849Swollman * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
211849Swollman * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
221849Swollman * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
231849Swollman * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
241849Swollman * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
251849Swollman * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261849Swollman * POSSIBILITY OF SUCH DAMAGE.
271849Swollman */
281849Swollman
291849Swollmanstatic const struct au8522_modulation_table au8522_modulation_qam256[] = {
301849Swollman	{ 0x80a3, 0x09 },
311849Swollman	{ 0x80a4, 0x00 },
321849Swollman	{ 0x8081, 0xc4 },
3392999Sobrien	{ 0x80a5, 0x40 },
3492999Sobrien	{ 0x80aa, 0x77 },
3592999Sobrien	{ 0x80ad, 0x77 },
3692999Sobrien	{ 0x80a6, 0x67 },
3792999Sobrien	{ 0x8262, 0x20 },
381849Swollman	{ 0x821c, 0x30 },
391849Swollman	{ 0x80b8, 0x3e },
401849Swollman	{ 0x80b9, 0xf0 },
411849Swollman	{ 0x80ba, 0x01 },
421849Swollman	{ 0x80bb, 0x18 },
43114313Speter	{ 0x80bc, 0x50 },
44114313Speter	{ 0x80bd, 0x00 },
45114313Speter	{ 0x80be, 0xea },
46114313Speter	{ 0x80bf, 0xef },
47114313Speter	{ 0x80c0, 0xfc },
48114313Speter	{ 0x80c1, 0xbd },
4915634Speter	{ 0x80c2, 0x1f },
50115279Speter	{ 0x80c3, 0xfc },
51115279Speter	{ 0x80c4, 0xdd },
52115279Speter	{ 0x80c5, 0xaf },
53115279Speter	{ 0x80c6, 0x00 },
54115279Speter	{ 0x80c7, 0x38 },
55115279Speter	{ 0x80c8, 0x30 },
56184547Speter	{ 0x80c9, 0x05 },
57217106Skib	{ 0x80ca, 0x4a },
58217106Skib	{ 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