1 | /* $NetBSD: au8522mod_8vsb.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 | |
29 | static const struct au8522_modulation_table au8522_modulation_8vsb[] = { |
30 | { 0x8090, 0x84 }, |
31 | { 0x4092, 0x11 }, |
32 | { 0x2005, 0x00 }, |
33 | { 0x8091, 0x80 }, |
34 | { 0x80a3, 0x0c }, |
35 | { 0x80a4, 0xe8 }, |
36 | { 0x8081, 0xc4 }, |
37 | { 0x80a5, 0x40 }, |
38 | { 0x80a7, 0x40 }, |
39 | { 0x80a6, 0x67 }, |
40 | { 0x8262, 0x20 }, |
41 | { 0x821c, 0x30 }, |
42 | { 0x80d8, 0x1a }, |
43 | { 0x8227, 0xa0 }, |
44 | { 0x8121, 0xff }, |
45 | { 0x80a8, 0xf0 }, |
46 | { 0x80a9, 0x05 }, |
47 | { 0x80aa, 0x77 }, |
48 | { 0x80ab, 0xf0 }, |
49 | { 0x80ac, 0x05 }, |
50 | { 0x80ad, 0x77 }, |
51 | { 0x80ae, 0x41 }, |
52 | { 0x80af, 0x66 }, |
53 | { 0x821b, 0xcc }, |
54 | { 0x821d, 0x80 }, |
55 | { 0x80a4, 0xe8 }, |
56 | { 0x8231, 0x13 }, |
57 | }; |
58 | |
59 | static const struct au8522_snr_table au8522_snr_8vsb[] = { |
60 | { 0, 270 }, |
61 | { 2, 250 }, |
62 | { 3, 240 }, |
63 | { 5, 230 }, |
64 | { 7, 220 }, |
65 | { 9, 210 }, |
66 | { 12, 200 }, |
67 | { 13, 195 }, |
68 | { 15, 190 }, |
69 | { 17, 185 }, |
70 | { 19, 180 }, |
71 | { 21, 175 }, |
72 | { 24, 170 }, |
73 | { 27, 165 }, |
74 | { 31, 160 }, |
75 | { 32, 158 }, |
76 | { 33, 156 }, |
77 | { 36, 152 }, |
78 | { 37, 150 }, |
79 | { 39, 148 }, |
80 | { 40, 146 }, |
81 | { 41, 144 }, |
82 | { 43, 142 }, |
83 | { 44, 140 }, |
84 | { 48, 135 }, |
85 | { 50, 130 }, |
86 | { 43, 142 }, |
87 | { 53, 125 }, |
88 | { 56, 120 }, |
89 | { 256, 115 }, |
90 | }; |
91 | |