.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /*************************************************************************** |
---|
2 | 3 | * au88x0_cxtalk.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | ****************************************************************************/ |
---|
8 | 9 | |
---|
9 | 10 | /* |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
13 | | - * (at your option) any later version. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - * GNU Library General Public License for more details. |
---|
19 | | - * |
---|
20 | | - * You should have received a copy of the GNU General Public License |
---|
21 | | - * along with this program; if not, write to the Free Software |
---|
22 | | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
23 | 11 | */ |
---|
24 | 12 | |
---|
25 | 13 | #include "au88x0_xtalk.h" |
---|
.. | .. |
---|
29 | 17 | static short const sXtalkWideKLeftEq = 0x269C; |
---|
30 | 18 | static short const sXtalkWideKRightEq = 0x269C; |
---|
31 | 19 | static short const sXtalkWideKLeftXt = 0xF25E; |
---|
32 | | -static short const sXtalkWideKRightXt = 0xF25E; |
---|
| 20 | +static __maybe_unused short const sXtalkWideKRightXt = 0xF25E; |
---|
33 | 21 | static short const sXtalkWideShiftLeftEq = 1; |
---|
34 | 22 | static short const sXtalkWideShiftRightEq = 1; |
---|
35 | 23 | static short const sXtalkWideShiftLeftXt = 0; |
---|
36 | | -static short const sXtalkWideShiftRightXt = 0; |
---|
| 24 | +static __maybe_unused short const sXtalkWideShiftRightXt = 0; |
---|
37 | 25 | static unsigned short const wXtalkWideLeftDelay = 0xd; |
---|
38 | 26 | static unsigned short const wXtalkWideRightDelay = 0xd; |
---|
39 | 27 | static short const sXtalkNarrowKLeftEq = 0x468D; |
---|
40 | 28 | static short const sXtalkNarrowKRightEq = 0x468D; |
---|
41 | 29 | static short const sXtalkNarrowKLeftXt = 0xF82E; |
---|
42 | | -static short const sXtalkNarrowKRightXt = 0xF82E; |
---|
| 30 | +static __maybe_unused short const sXtalkNarrowKRightXt = 0xF82E; |
---|
43 | 31 | static short const sXtalkNarrowShiftLeftEq = 0x3; |
---|
44 | 32 | static short const sXtalkNarrowShiftRightEq = 0x3; |
---|
45 | 33 | static short const sXtalkNarrowShiftLeftXt = 0; |
---|
46 | | -static short const sXtalkNarrowShiftRightXt = 0; |
---|
| 34 | +static __maybe_unused short const sXtalkNarrowShiftRightXt = 0; |
---|
47 | 35 | static unsigned short const wXtalkNarrowLeftDelay = 0x7; |
---|
48 | 36 | static unsigned short const wXtalkNarrowRightDelay = 0x7; |
---|
49 | 37 | |
---|
50 | | -static xtalk_gains_t const asXtalkGainsDefault = { |
---|
| 38 | +static __maybe_unused xtalk_gains_t const asXtalkGainsDefault = { |
---|
51 | 39 | 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, |
---|
52 | 40 | 0x4000, 0x4000, 0x4000, 0x4000, 0x4000 |
---|
53 | 41 | }; |
---|
54 | 42 | |
---|
55 | | -static xtalk_gains_t const asXtalkGainsTest = { |
---|
| 43 | +static __maybe_unused xtalk_gains_t const asXtalkGainsTest = { |
---|
56 | 44 | 0x7fff, 0x8000, 0x0000, 0x0000, 0x0001, |
---|
57 | 45 | 0xffff, 0x4000, 0xc000, 0x0002, 0xfffe |
---|
58 | 46 | }; |
---|
59 | 47 | |
---|
60 | | -static xtalk_gains_t const asXtalkGains1Chan = { |
---|
| 48 | +static __maybe_unused xtalk_gains_t const asXtalkGains1Chan = { |
---|
61 | 49 | 0x7FFF, 0, 0, 0, 0, |
---|
62 | 50 | 0x7FFF, 0, 0, 0, 0, |
---|
63 | 51 | }; |
---|
.. | .. |
---|
76 | 64 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
77 | 65 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
---|
78 | 66 | }; |
---|
79 | | -static xtalk_dline_t const alXtalkDlineTest = { |
---|
| 67 | +static __maybe_unused xtalk_dline_t const alXtalkDlineTest = { |
---|
80 | 68 | 0x0000fc18, 0xfff03e8, 0x000186a0, 0xfffe7960, 1, 0xffffffff, 0, 0, |
---|
81 | 69 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
---|
82 | 70 | 0, 0, 0, 0, 0, 0, 0, 0 |
---|
.. | .. |
---|
86 | 74 | 0, 0, 0, 0 |
---|
87 | 75 | }; |
---|
88 | 76 | |
---|
89 | | -static xtalk_instate_t const asXtalkInStateTest = { |
---|
| 77 | +static __maybe_unused xtalk_instate_t const asXtalkInStateTest = { |
---|
90 | 78 | 0x0080, 0xff80, 0x0001, 0xffff |
---|
91 | 79 | }; |
---|
92 | 80 | |
---|
.. | .. |
---|
101 | 89 | static short const sDiamondKLeftEq = 0x401d; |
---|
102 | 90 | static short const sDiamondKRightEq = 0x401d; |
---|
103 | 91 | static short const sDiamondKLeftXt = 0xF90E; |
---|
104 | | -static short const sDiamondKRightXt = 0xF90E; |
---|
| 92 | +static __maybe_unused short const sDiamondKRightXt = 0xF90E; |
---|
105 | 93 | static short const sDiamondShiftLeftEq = 1; |
---|
106 | 94 | static short const sDiamondShiftRightEq = 1; |
---|
107 | 95 | static short const sDiamondShiftLeftXt = 0; |
---|
108 | | -static short const sDiamondShiftRightXt = 0; |
---|
| 96 | +static __maybe_unused short const sDiamondShiftRightXt = 0; |
---|
109 | 97 | static unsigned short const wDiamondLeftDelay = 0xb; |
---|
110 | 98 | static unsigned short const wDiamondRightDelay = 0xb; |
---|
111 | 99 | |
---|
.. | .. |
---|
130 | 118 | {0x77dc, 0xc79e, 0xffb8, 0x000a, 0}, |
---|
131 | 119 | {0, 0, 0, 0, 0} |
---|
132 | 120 | }; |
---|
133 | | -static xtalk_coefs_t const asXtalkWideCoefsRightXt = { |
---|
| 121 | +static __maybe_unused xtalk_coefs_t const asXtalkWideCoefsRightXt = { |
---|
134 | 122 | {0x55c6, 0xc97b, 0x005b, 0x0047, 0}, |
---|
135 | 123 | {0x6a60, 0xca20, 0xffc6, 0x0040, 0}, |
---|
136 | 124 | {0x6411, 0xd711, 0xfca1, 0x0190, 0}, |
---|
.. | .. |
---|
161 | 149 | {0, 0, 0, 0, 0} |
---|
162 | 150 | }; |
---|
163 | 151 | |
---|
164 | | -static xtalk_coefs_t const asXtalkNarrowCoefsRightXt = { |
---|
| 152 | +static __maybe_unused xtalk_coefs_t const asXtalkNarrowCoefsRightXt = { |
---|
165 | 153 | {0x3CB2, 0xDF49, 0xF6EA, 0x095B, 0}, |
---|
166 | 154 | {0x6777, 0xC915, 0xFEAF, 0x00B1, 0}, |
---|
167 | 155 | {0x7762, 0xC7D9, 0x025B, 0xFDA6, 0}, |
---|
.. | .. |
---|
184 | 172 | {0, 0, 0x0FA0, 0, 0}, |
---|
185 | 173 | {0, 0, 0x1180, 0, 0}, |
---|
186 | 174 | }; |
---|
187 | | -static xtalk_coefs_t const asXtalkCoefsNegPipe = { |
---|
| 175 | +static __maybe_unused xtalk_coefs_t const asXtalkCoefsNegPipe = { |
---|
188 | 176 | {0, 0, 0xF380, 0, 0}, |
---|
189 | 177 | {0, 0, 0xF380, 0, 0}, |
---|
190 | 178 | {0, 0, 0xF380, 0, 0}, |
---|
.. | .. |
---|
192 | 180 | {0, 0, 0xF200, 0, 0} |
---|
193 | 181 | }; |
---|
194 | 182 | |
---|
195 | | -static xtalk_coefs_t const asXtalkCoefsNumTest = { |
---|
| 183 | +static __maybe_unused xtalk_coefs_t const asXtalkCoefsNumTest = { |
---|
196 | 184 | {0, 0, 0xF380, 0x8000, 0x6D60}, |
---|
197 | 185 | {0, 0, 0, 0, 0}, |
---|
198 | 186 | {0, 0, 0, 0, 0}, |
---|
.. | .. |
---|
200 | 188 | {0, 0, 0, 0, 0} |
---|
201 | 189 | }; |
---|
202 | 190 | |
---|
203 | | -static xtalk_coefs_t const asXtalkCoefsDenTest = { |
---|
| 191 | +static __maybe_unused xtalk_coefs_t const asXtalkCoefsDenTest = { |
---|
204 | 192 | {0xC000, 0x2000, 0x4000, 0, 0}, |
---|
205 | 193 | {0, 0, 0, 0, 0}, |
---|
206 | 194 | {0, 0, 0, 0, 0}, |
---|
.. | .. |
---|
208 | 196 | {0, 0, 0, 0, 0} |
---|
209 | 197 | }; |
---|
210 | 198 | |
---|
211 | | -static xtalk_state_t const asXtalkOutStateTest = { |
---|
| 199 | +static __maybe_unused xtalk_state_t const asXtalkOutStateTest = { |
---|
212 | 200 | {0x7FFF, 0x0004, 0xFFFC, 0}, |
---|
213 | 201 | {0xFE00, 0x0008, 0xFFF8, 0x4000}, |
---|
214 | 202 | {0x0200, 0x0010, 0xFFF0, 0xC000}, |
---|
.. | .. |
---|
240 | 228 | {0, 0, 0, 0, 0} |
---|
241 | 229 | }; |
---|
242 | 230 | |
---|
243 | | -static xtalk_coefs_t const asDiamondCoefsRightXt = { |
---|
| 231 | +static __maybe_unused xtalk_coefs_t const asDiamondCoefsRightXt = { |
---|
244 | 232 | {0x3B50, 0xFE08, 0xF959, 0x0060, 0}, |
---|
245 | 233 | {0x9FCB, 0xD8F1, 0x00A2, 0x003A, 0}, |
---|
246 | 234 | {0, 0, 0, 0, 0}, |
---|