1 /* Generated by ./xlat/gen.sh from ./xlat/v4l2_control_id_bases.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(V4L2_CID_BASE) || (defined(HAVE_DECL_V4L2_CID_BASE) && HAVE_DECL_V4L2_CID_BASE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((V4L2_CID_BASE) == ((V4L2_CTRL_CLASS_USER | 0x900)), "V4L2_CID_BASE != (V4L2_CTRL_CLASS_USER | 0x900)");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define V4L2_CID_BASE (V4L2_CTRL_CLASS_USER | 0x900)
12 #endif
13 #if defined(V4L2_CID_USER_MEYE_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_MEYE_BASE) && HAVE_DECL_V4L2_CID_USER_MEYE_BASE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((V4L2_CID_USER_MEYE_BASE) == ((V4L2_CID_BASE | 0x1000)), "V4L2_CID_USER_MEYE_BASE != (V4L2_CID_BASE | 0x1000)");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define V4L2_CID_USER_MEYE_BASE (V4L2_CID_BASE | 0x1000)
19 #endif
20 #if defined(V4L2_CID_USER_BTTV_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_BTTV_BASE) && HAVE_DECL_V4L2_CID_USER_BTTV_BASE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((V4L2_CID_USER_BTTV_BASE) == ((V4L2_CID_BASE | 0x1010)), "V4L2_CID_USER_BTTV_BASE != (V4L2_CID_BASE | 0x1010)");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define V4L2_CID_USER_BTTV_BASE (V4L2_CID_BASE | 0x1010)
26 #endif
27 #if defined(V4L2_CID_USER_S2255_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_S2255_BASE) && HAVE_DECL_V4L2_CID_USER_S2255_BASE)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((V4L2_CID_USER_S2255_BASE) == ((V4L2_CID_BASE | 0x1030)), "V4L2_CID_USER_S2255_BASE != (V4L2_CID_BASE | 0x1030)");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define V4L2_CID_USER_S2255_BASE (V4L2_CID_BASE | 0x1030)
33 #endif
34 #if defined(V4L2_CID_USER_SI476X_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_SI476X_BASE) && HAVE_DECL_V4L2_CID_USER_SI476X_BASE)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((V4L2_CID_USER_SI476X_BASE) == ((V4L2_CID_BASE | 0x1040)), "V4L2_CID_USER_SI476X_BASE != (V4L2_CID_BASE | 0x1040)");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define V4L2_CID_USER_SI476X_BASE (V4L2_CID_BASE | 0x1040)
40 #endif
41 #if defined(V4L2_CID_USER_TI_VPE_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_TI_VPE_BASE) && HAVE_DECL_V4L2_CID_USER_TI_VPE_BASE)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((V4L2_CID_USER_TI_VPE_BASE) == ((V4L2_CID_BASE | 0x1050)), "V4L2_CID_USER_TI_VPE_BASE != (V4L2_CID_BASE | 0x1050)");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define V4L2_CID_USER_TI_VPE_BASE (V4L2_CID_BASE | 0x1050)
47 #endif
48 #if defined(V4L2_CID_USER_SAA7134_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_SAA7134_BASE) && HAVE_DECL_V4L2_CID_USER_SAA7134_BASE)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((V4L2_CID_USER_SAA7134_BASE) == ((V4L2_CID_BASE | 0x1060)), "V4L2_CID_USER_SAA7134_BASE != (V4L2_CID_BASE | 0x1060)");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define V4L2_CID_USER_SAA7134_BASE (V4L2_CID_BASE | 0x1060)
54 #endif
55 #if defined(V4L2_CID_USER_ADV7180_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_ADV7180_BASE) && HAVE_DECL_V4L2_CID_USER_ADV7180_BASE)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((V4L2_CID_USER_ADV7180_BASE) == ((V4L2_CID_BASE | 0x1070)), "V4L2_CID_USER_ADV7180_BASE != (V4L2_CID_BASE | 0x1070)");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define V4L2_CID_USER_ADV7180_BASE (V4L2_CID_BASE | 0x1070)
61 #endif
62 #if defined(V4L2_CID_USER_TC358743_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_TC358743_BASE) && HAVE_DECL_V4L2_CID_USER_TC358743_BASE)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((V4L2_CID_USER_TC358743_BASE) == ((V4L2_CID_BASE | 0x1080)), "V4L2_CID_USER_TC358743_BASE != (V4L2_CID_BASE | 0x1080)");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define V4L2_CID_USER_TC358743_BASE (V4L2_CID_BASE | 0x1080)
68 #endif
69 #if defined(V4L2_CID_USER_MAX217X_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_MAX217X_BASE) && HAVE_DECL_V4L2_CID_USER_MAX217X_BASE)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((V4L2_CID_USER_MAX217X_BASE) == ((V4L2_CID_BASE | 0x1090)), "V4L2_CID_USER_MAX217X_BASE != (V4L2_CID_BASE | 0x1090)");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define V4L2_CID_USER_MAX217X_BASE (V4L2_CID_BASE | 0x1090)
75 #endif
76 #ifndef STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
77 # define STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
78 # undef V4L2_CID_USER_IMX_BASE
79 #endif
80 #if defined(V4L2_CID_USER_IMX_BASE) || (defined(HAVE_DECL_V4L2_CID_USER_IMX_BASE) && HAVE_DECL_V4L2_CID_USER_IMX_BASE)
81 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
82 static_assert((V4L2_CID_USER_IMX_BASE) == ((V4L2_CID_BASE | 0x10b0)), "V4L2_CID_USER_IMX_BASE != (V4L2_CID_BASE | 0x10b0)");
83 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
84 #else
85 # define V4L2_CID_USER_IMX_BASE (V4L2_CID_BASE | 0x10b0)
86 #endif
87 #if defined(V4L2_CID_MPEG_BASE) || (defined(HAVE_DECL_V4L2_CID_MPEG_BASE) && HAVE_DECL_V4L2_CID_MPEG_BASE)
88 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
89 static_assert((V4L2_CID_MPEG_BASE) == ((V4L2_CTRL_CLASS_MPEG | 0x900)), "V4L2_CID_MPEG_BASE != (V4L2_CTRL_CLASS_MPEG | 0x900)");
90 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
91 #else
92 # define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)
93 #endif
94 #if defined(V4L2_CID_MPEG_CX2341X_BASE) || (defined(HAVE_DECL_V4L2_CID_MPEG_CX2341X_BASE) && HAVE_DECL_V4L2_CID_MPEG_CX2341X_BASE)
95 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
96 static_assert((V4L2_CID_MPEG_CX2341X_BASE) == ((V4L2_CTRL_CLASS_MPEG | 0x1000)), "V4L2_CID_MPEG_CX2341X_BASE != (V4L2_CTRL_CLASS_MPEG | 0x1000)");
97 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
98 #else
99 # define V4L2_CID_MPEG_CX2341X_BASE (V4L2_CTRL_CLASS_MPEG | 0x1000)
100 #endif
101 #if defined(V4L2_CID_MPEG_MFC51_BASE) || (defined(HAVE_DECL_V4L2_CID_MPEG_MFC51_BASE) && HAVE_DECL_V4L2_CID_MPEG_MFC51_BASE)
102 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
103 static_assert((V4L2_CID_MPEG_MFC51_BASE) == ((V4L2_CTRL_CLASS_MPEG | 0x1100)), "V4L2_CID_MPEG_MFC51_BASE != (V4L2_CTRL_CLASS_MPEG | 0x1100)");
104 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
105 #else
106 # define V4L2_CID_MPEG_MFC51_BASE (V4L2_CTRL_CLASS_MPEG | 0x1100)
107 #endif
108 #if defined(V4L2_CID_CAMERA_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_CAMERA_CLASS_BASE) && HAVE_DECL_V4L2_CID_CAMERA_CLASS_BASE)
109 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
110 static_assert((V4L2_CID_CAMERA_CLASS_BASE) == ((V4L2_CTRL_CLASS_CAMERA | 0x900)), "V4L2_CID_CAMERA_CLASS_BASE != (V4L2_CTRL_CLASS_CAMERA | 0x900)");
111 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
112 #else
113 # define V4L2_CID_CAMERA_CLASS_BASE (V4L2_CTRL_CLASS_CAMERA | 0x900)
114 #endif
115 #if defined(V4L2_CID_FM_TX_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_FM_TX_CLASS_BASE) && HAVE_DECL_V4L2_CID_FM_TX_CLASS_BASE)
116 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
117 static_assert((V4L2_CID_FM_TX_CLASS_BASE) == ((V4L2_CTRL_CLASS_FM_TX | 0x900)), "V4L2_CID_FM_TX_CLASS_BASE != (V4L2_CTRL_CLASS_FM_TX | 0x900)");
118 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
119 #else
120 # define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)
121 #endif
122 #if defined(V4L2_CID_FLASH_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_FLASH_CLASS_BASE) && HAVE_DECL_V4L2_CID_FLASH_CLASS_BASE)
123 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
124 static_assert((V4L2_CID_FLASH_CLASS_BASE) == ((V4L2_CTRL_CLASS_FLASH | 0x900)), "V4L2_CID_FLASH_CLASS_BASE != (V4L2_CTRL_CLASS_FLASH | 0x900)");
125 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
126 #else
127 # define V4L2_CID_FLASH_CLASS_BASE (V4L2_CTRL_CLASS_FLASH | 0x900)
128 #endif
129 #if defined(V4L2_CID_JPEG_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_JPEG_CLASS_BASE) && HAVE_DECL_V4L2_CID_JPEG_CLASS_BASE)
130 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
131 static_assert((V4L2_CID_JPEG_CLASS_BASE) == ((V4L2_CTRL_CLASS_JPEG | 0x900)), "V4L2_CID_JPEG_CLASS_BASE != (V4L2_CTRL_CLASS_JPEG | 0x900)");
132 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
133 #else
134 # define V4L2_CID_JPEG_CLASS_BASE (V4L2_CTRL_CLASS_JPEG | 0x900)
135 #endif
136 #if defined(V4L2_CID_IMAGE_SOURCE_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_IMAGE_SOURCE_CLASS_BASE) && HAVE_DECL_V4L2_CID_IMAGE_SOURCE_CLASS_BASE)
137 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
138 static_assert((V4L2_CID_IMAGE_SOURCE_CLASS_BASE) == ((V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900)), "V4L2_CID_IMAGE_SOURCE_CLASS_BASE != (V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900)");
139 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
140 #else
141 # define V4L2_CID_IMAGE_SOURCE_CLASS_BASE (V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900)
142 #endif
143 #if defined(V4L2_CID_IMAGE_PROC_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_IMAGE_PROC_CLASS_BASE) && HAVE_DECL_V4L2_CID_IMAGE_PROC_CLASS_BASE)
144 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
145 static_assert((V4L2_CID_IMAGE_PROC_CLASS_BASE) == ((V4L2_CTRL_CLASS_IMAGE_PROC | 0x900)), "V4L2_CID_IMAGE_PROC_CLASS_BASE != (V4L2_CTRL_CLASS_IMAGE_PROC | 0x900)");
146 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
147 #else
148 # define V4L2_CID_IMAGE_PROC_CLASS_BASE (V4L2_CTRL_CLASS_IMAGE_PROC | 0x900)
149 #endif
150 #if defined(V4L2_CID_DV_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_DV_CLASS_BASE) && HAVE_DECL_V4L2_CID_DV_CLASS_BASE)
151 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
152 static_assert((V4L2_CID_DV_CLASS_BASE) == ((V4L2_CTRL_CLASS_DV | 0x900)), "V4L2_CID_DV_CLASS_BASE != (V4L2_CTRL_CLASS_DV | 0x900)");
153 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
154 #else
155 # define V4L2_CID_DV_CLASS_BASE (V4L2_CTRL_CLASS_DV | 0x900)
156 #endif
157 #if defined(V4L2_CID_FM_RX_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_FM_RX_CLASS_BASE) && HAVE_DECL_V4L2_CID_FM_RX_CLASS_BASE)
158 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
159 static_assert((V4L2_CID_FM_RX_CLASS_BASE) == ((V4L2_CTRL_CLASS_FM_RX | 0x900)), "V4L2_CID_FM_RX_CLASS_BASE != (V4L2_CTRL_CLASS_FM_RX | 0x900)");
160 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
161 #else
162 # define V4L2_CID_FM_RX_CLASS_BASE (V4L2_CTRL_CLASS_FM_RX | 0x900)
163 #endif
164 #if defined(V4L2_CID_RF_TUNER_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_RF_TUNER_CLASS_BASE) && HAVE_DECL_V4L2_CID_RF_TUNER_CLASS_BASE)
165 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
166 static_assert((V4L2_CID_RF_TUNER_CLASS_BASE) == ((V4L2_CTRL_CLASS_RF_TUNER | 0x900)), "V4L2_CID_RF_TUNER_CLASS_BASE != (V4L2_CTRL_CLASS_RF_TUNER | 0x900)");
167 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
168 #else
169 # define V4L2_CID_RF_TUNER_CLASS_BASE (V4L2_CTRL_CLASS_RF_TUNER | 0x900)
170 #endif
171 #if defined(V4L2_CID_DETECT_CLASS_BASE) || (defined(HAVE_DECL_V4L2_CID_DETECT_CLASS_BASE) && HAVE_DECL_V4L2_CID_DETECT_CLASS_BASE)
172 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
173 static_assert((V4L2_CID_DETECT_CLASS_BASE) == ((V4L2_CTRL_CLASS_DETECT | 0x900)), "V4L2_CID_DETECT_CLASS_BASE != (V4L2_CTRL_CLASS_DETECT | 0x900)");
174 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
175 #else
176 # define V4L2_CID_DETECT_CLASS_BASE (V4L2_CTRL_CLASS_DETECT | 0x900)
177 #endif
178 
179 #ifndef XLAT_MACROS_ONLY
180 
181 # ifdef IN_MPERS
182 
183 extern const struct xlat v4l2_control_id_bases[];
184 
185 # else
186 
187 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
188 static
189 #  endif
190 const struct xlat v4l2_control_id_bases[] = {
191  XLAT(V4L2_CID_BASE),
192  XLAT(V4L2_CID_USER_MEYE_BASE),
193  XLAT(V4L2_CID_USER_BTTV_BASE),
194  XLAT(V4L2_CID_USER_S2255_BASE),
195  XLAT(V4L2_CID_USER_SI476X_BASE),
196  XLAT(V4L2_CID_USER_TI_VPE_BASE),
197  XLAT(V4L2_CID_USER_SAA7134_BASE),
198  XLAT(V4L2_CID_USER_ADV7180_BASE),
199  XLAT(V4L2_CID_USER_TC358743_BASE),
200  XLAT(V4L2_CID_USER_MAX217X_BASE),
201 #ifndef STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
202 # define STRACE_WORKAROUND_FOR_V4L2_CID_USER_IMX_BASE
203 /*
204 * Linux kernel commit v4.18-rc2-106-g421860b9d47053badce4b247576fa48df9ab4c48
205 * has changed the value of V4L2_CID_USER_IMX_BASE constant introduced
206 * by commit v4.13-rc1~141^2~121 because the old value was already used
207 * by V4L2_CID_USER_MAX217X_BASE.
208 * This is of course an ABI breakage that affects Linux kernels starting
209 * with 4.13 and up to 4.18, as well as their LTS derivatives.
210 * Since the imx driver didn't provide any public control ID definitions,
211 * it looks like the best way to handle this situation is to pretend that
212 * the old value of V4L2_CID_USER_IMX_BASE didn't exist.
213 */
214 # undef V4L2_CID_USER_IMX_BASE
215 #endif
216  XLAT(V4L2_CID_USER_IMX_BASE),
217  XLAT(V4L2_CID_MPEG_BASE),
218  XLAT(V4L2_CID_MPEG_CX2341X_BASE),
219  XLAT(V4L2_CID_MPEG_MFC51_BASE),
220  XLAT(V4L2_CID_CAMERA_CLASS_BASE),
221  XLAT(V4L2_CID_FM_TX_CLASS_BASE),
222  XLAT(V4L2_CID_FLASH_CLASS_BASE),
223  XLAT(V4L2_CID_JPEG_CLASS_BASE),
224  XLAT(V4L2_CID_IMAGE_SOURCE_CLASS_BASE),
225  XLAT(V4L2_CID_IMAGE_PROC_CLASS_BASE),
226  XLAT(V4L2_CID_DV_CLASS_BASE),
227  XLAT(V4L2_CID_FM_RX_CLASS_BASE),
228  XLAT(V4L2_CID_RF_TUNER_CLASS_BASE),
229  XLAT(V4L2_CID_DETECT_CLASS_BASE),
230  XLAT_END
231 };
232 
233 # endif /* !IN_MPERS */
234 
235 #endif /* !XLAT_MACROS_ONLY */
236