]>
Commit | Line | Data |
---|---|---|
5d8c55f9 BV |
1 | /* |
2 | * This file is part of the libsigrok project. | |
3 | * | |
4 | * Copyright (C) 2014 Bert Vermeulen <bert@biot.com> | |
5 | * | |
6 | * This program is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 3 of the License, or | |
9 | * (at your option) any later version. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, | |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | * GNU General Public License for more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License | |
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
c1aae900 | 20 | #include <libsigrok/libsigrok.h> |
5d8c55f9 BV |
21 | #include "libsigrok-internal.h" |
22 | ||
23 | /** @cond PRIVATE */ | |
24 | #ifdef HAVE_HW_AGILENT_DMM | |
25 | extern SR_PRIV struct sr_dev_driver agdmm_driver_info; | |
26 | #endif | |
27 | #ifdef HAVE_HW_APPA_55II | |
28 | extern SR_PRIV struct sr_dev_driver appa_55ii_driver_info; | |
29 | #endif | |
30 | #ifdef HAVE_HW_ASIX_SIGMA | |
31 | extern SR_PRIV struct sr_dev_driver asix_sigma_driver_info; | |
32 | #endif | |
33 | #ifdef HAVE_HW_ATTEN_PPS3XXX | |
34 | extern SR_PRIV struct sr_dev_driver atten_pps3203_driver_info; | |
35 | #endif | |
dfaee1de BG |
36 | #ifdef HAVE_HW_BAYLIBRE_ACME |
37 | extern SR_PRIV struct sr_dev_driver baylibre_acme_driver_info; | |
38 | #endif | |
bb993797 KA |
39 | #ifdef HAVE_HW_BEAGLELOGIC |
40 | extern SR_PRIV struct sr_dev_driver beaglelogic_driver_info; | |
41 | #endif | |
5d8c55f9 BV |
42 | #ifdef HAVE_HW_BRYMEN_BM86X |
43 | extern SR_PRIV struct sr_dev_driver brymen_bm86x_driver_info; | |
44 | #endif | |
45 | #ifdef HAVE_HW_BRYMEN_DMM | |
46 | extern SR_PRIV struct sr_dev_driver brymen_bm857_driver_info; | |
47 | #endif | |
48 | #ifdef HAVE_HW_CEM_DT_885X | |
49 | extern SR_PRIV struct sr_dev_driver cem_dt_885x_driver_info; | |
50 | #endif | |
51 | #ifdef HAVE_HW_CENTER_3XX | |
52 | extern SR_PRIV struct sr_dev_driver center_309_driver_info; | |
53 | extern SR_PRIV struct sr_dev_driver voltcraft_k204_driver_info; | |
54 | #endif | |
55 | #ifdef HAVE_HW_CHRONOVU_LA | |
56 | extern SR_PRIV struct sr_dev_driver chronovu_la_driver_info; | |
57 | #endif | |
58 | #ifdef HAVE_HW_COLEAD_SLM | |
59 | extern SR_PRIV struct sr_dev_driver colead_slm_driver_info; | |
60 | #endif | |
61 | #ifdef HAVE_HW_CONRAD_DIGI_35_CPU | |
62 | extern SR_PRIV struct sr_dev_driver conrad_digi_35_cpu_driver_info; | |
63 | #endif | |
64 | #ifdef HAVE_HW_DEMO | |
65 | extern SR_PRIV struct sr_dev_driver demo_driver_info; | |
66 | #endif | |
b5089195 JH |
67 | #ifdef HAVE_HW_DEREE_DE5000 |
68 | extern SR_PRIV struct sr_dev_driver deree_de5000_driver_info; | |
69 | #endif | |
5d8c55f9 BV |
70 | #ifdef HAVE_HW_FLUKE_DMM |
71 | extern SR_PRIV struct sr_dev_driver flukedmm_driver_info; | |
72 | #endif | |
73 | #ifdef HAVE_HW_FX2LAFW | |
74 | extern SR_PRIV struct sr_dev_driver fx2lafw_driver_info; | |
75 | #endif | |
76 | #ifdef HAVE_HW_GMC_MH_1X_2X | |
77 | extern SR_PRIV struct sr_dev_driver gmc_mh_1x_2x_rs232_driver_info; | |
78 | extern SR_PRIV struct sr_dev_driver gmc_mh_2x_bd232_driver_info; | |
79 | #endif | |
80 | #ifdef HAVE_HW_HAMEG_HMO | |
81 | extern SR_PRIV struct sr_dev_driver hameg_hmo_driver_info; | |
82 | #endif | |
83 | #ifdef HAVE_HW_HANTEK_DSO | |
84 | extern SR_PRIV struct sr_dev_driver hantek_dso_driver_info; | |
85 | #endif | |
86 | #ifdef HAVE_HW_IKALOGIC_SCANALOGIC2 | |
87 | extern SR_PRIV struct sr_dev_driver ikalogic_scanalogic2_driver_info; | |
88 | #endif | |
89 | #ifdef HAVE_HW_IKALOGIC_SCANAPLUS | |
90 | extern SR_PRIV struct sr_dev_driver ikalogic_scanaplus_driver_info; | |
91 | #endif | |
92 | #ifdef HAVE_HW_KECHENG_KC_330B | |
93 | extern SR_PRIV struct sr_dev_driver kecheng_kc_330b_driver_info; | |
94 | #endif | |
95 | #ifdef HAVE_HW_LASCAR_EL_USB | |
96 | extern SR_PRIV struct sr_dev_driver lascar_el_usb_driver_info; | |
97 | #endif | |
98 | #ifdef HAVE_HW_LINK_MSO19 | |
99 | extern SR_PRIV struct sr_dev_driver link_mso19_driver_info; | |
100 | #endif | |
101 | #ifdef HAVE_HW_MANSON_HCS_3XXX | |
102 | extern SR_PRIV struct sr_dev_driver manson_hcs_3xxx_driver_info; | |
103 | #endif | |
e1ccfb19 AJ |
104 | #ifdef HAVE_HW_MAYNUO_M97 |
105 | extern SR_PRIV struct sr_dev_driver maynuo_m97_driver_info; | |
106 | #endif | |
5d8c55f9 BV |
107 | #ifdef HAVE_HW_MIC_985XX |
108 | extern SR_PRIV struct sr_dev_driver mic_98581_driver_info; | |
109 | extern SR_PRIV struct sr_dev_driver mic_98583_driver_info; | |
110 | #endif | |
111 | #ifdef HAVE_HW_MOTECH_LPS_30X | |
112 | extern SR_PRIV struct sr_dev_driver motech_lps_301_driver_info; | |
113 | #endif | |
114 | #ifdef HAVE_HW_NORMA_DMM | |
115 | extern SR_PRIV struct sr_dev_driver norma_dmm_driver_info; | |
116 | extern SR_PRIV struct sr_dev_driver siemens_b102x_driver_info; | |
117 | #endif | |
118 | #ifdef HAVE_HW_OPENBENCH_LOGIC_SNIFFER | |
119 | extern SR_PRIV struct sr_dev_driver ols_driver_info; | |
120 | #endif | |
4bd80e12 | 121 | #ifdef HAVE_HW_PIPISTRELLO_OLS |
122 | extern SR_PRIV struct sr_dev_driver p_ols_driver_info; | |
123 | #endif | |
5d8c55f9 BV |
124 | #ifdef HAVE_HW_RIGOL_DS |
125 | extern SR_PRIV struct sr_dev_driver rigol_ds_driver_info; | |
126 | #endif | |
127 | #ifdef HAVE_HW_SALEAE_LOGIC16 | |
128 | extern SR_PRIV struct sr_dev_driver saleae_logic16_driver_info; | |
129 | #endif | |
ca1a7cb5 BV |
130 | #ifdef HAVE_HW_SCPI_PPS |
131 | extern SR_PRIV struct sr_dev_driver scpi_pps_driver_info; | |
132 | #endif | |
5d8c55f9 | 133 | #ifdef HAVE_HW_SERIAL_DMM |
bcbef5ed | 134 | extern SR_PRIV struct sr_dev_driver *serial_dmm_drivers[]; |
5d8c55f9 BV |
135 | #endif |
136 | #ifdef HAVE_HW_SYSCLK_LWLA | |
137 | extern SR_PRIV struct sr_dev_driver sysclk_lwla_driver_info; | |
138 | #endif | |
139 | #ifdef HAVE_HW_TELEINFO | |
140 | extern SR_PRIV struct sr_dev_driver teleinfo_driver_info; | |
141 | #endif | |
142 | #ifdef HAVE_HW_TESTO | |
143 | extern SR_PRIV struct sr_dev_driver testo_driver_info; | |
144 | #endif | |
145 | #ifdef HAVE_HW_TONDAJ_SL_814 | |
146 | extern SR_PRIV struct sr_dev_driver tondaj_sl_814_driver_info; | |
147 | #endif | |
148 | #ifdef HAVE_HW_UNI_T_DMM | |
f0540611 | 149 | extern SR_PRIV struct sr_dev_driver *uni_t_dmm_drivers[]; |
5d8c55f9 BV |
150 | #endif |
151 | #ifdef HAVE_HW_UNI_T_UT32X | |
152 | extern SR_PRIV struct sr_dev_driver uni_t_ut32x_driver_info; | |
153 | #endif | |
154 | #ifdef HAVE_HW_VICTOR_DMM | |
155 | extern SR_PRIV struct sr_dev_driver victor_dmm_driver_info; | |
156 | #endif | |
10763937 SA |
157 | #ifdef HAVE_HW_YOKOGAWA_DLM |
158 | extern SR_PRIV struct sr_dev_driver yokogawa_dlm_driver_info; | |
159 | #endif | |
5d8c55f9 BV |
160 | #ifdef HAVE_HW_ZEROPLUS_LOGIC_CUBE |
161 | extern SR_PRIV struct sr_dev_driver zeroplus_logic_cube_driver_info; | |
162 | #endif | |
163 | ||
9e60a31f ML |
164 | #define DRVS struct sr_dev_driver *[] |
165 | ||
166 | SR_PRIV struct sr_dev_driver **drivers_lists[] = { | |
5d8c55f9 | 167 | #ifdef HAVE_HW_AGILENT_DMM |
9e60a31f | 168 | (DRVS) {&agdmm_driver_info, NULL}, |
5d8c55f9 BV |
169 | #endif |
170 | #ifdef HAVE_HW_APPA_55II | |
9e60a31f | 171 | (DRVS) {&appa_55ii_driver_info, NULL}, |
5d8c55f9 BV |
172 | #endif |
173 | #ifdef HAVE_HW_ASIX_SIGMA | |
9e60a31f | 174 | (DRVS) {&asix_sigma_driver_info, NULL}, |
5d8c55f9 BV |
175 | #endif |
176 | #ifdef HAVE_HW_ATTEN_PPS3XXX | |
9e60a31f | 177 | (DRVS) {&atten_pps3203_driver_info, NULL}, |
5d8c55f9 | 178 | #endif |
dfaee1de | 179 | #ifdef HAVE_HW_BAYLIBRE_ACME |
9e60a31f | 180 | (DRVS) {&baylibre_acme_driver_info, NULL}, |
dfaee1de | 181 | #endif |
bb993797 | 182 | #ifdef HAVE_HW_BEAGLELOGIC |
9e60a31f | 183 | (DRVS) {&beaglelogic_driver_info, NULL}, |
bb993797 | 184 | #endif |
5d8c55f9 | 185 | #ifdef HAVE_HW_BRYMEN_BM86X |
9e60a31f | 186 | (DRVS) {&brymen_bm86x_driver_info, NULL}, |
5d8c55f9 BV |
187 | #endif |
188 | #ifdef HAVE_HW_BRYMEN_DMM | |
9e60a31f | 189 | (DRVS) {&brymen_bm857_driver_info, NULL}, |
5d8c55f9 BV |
190 | #endif |
191 | #ifdef HAVE_HW_CEM_DT_885X | |
9e60a31f | 192 | (DRVS) {&cem_dt_885x_driver_info, NULL}, |
5d8c55f9 BV |
193 | #endif |
194 | #ifdef HAVE_HW_CENTER_3XX | |
9e60a31f ML |
195 | (DRVS) { |
196 | ¢er_309_driver_info, | |
197 | &voltcraft_k204_driver_info, | |
1a863916 UH |
198 | NULL |
199 | }, | |
5d8c55f9 BV |
200 | #endif |
201 | #ifdef HAVE_HW_CHRONOVU_LA | |
9e60a31f | 202 | (DRVS) {&chronovu_la_driver_info, NULL}, |
5d8c55f9 BV |
203 | #endif |
204 | #ifdef HAVE_HW_COLEAD_SLM | |
9e60a31f | 205 | (DRVS) {&colead_slm_driver_info, NULL}, |
5d8c55f9 BV |
206 | #endif |
207 | #ifdef HAVE_HW_CONRAD_DIGI_35_CPU | |
9e60a31f | 208 | (DRVS) {&conrad_digi_35_cpu_driver_info, NULL}, |
5d8c55f9 BV |
209 | #endif |
210 | #ifdef HAVE_HW_DEMO | |
9e60a31f | 211 | (DRVS) {&demo_driver_info, NULL}, |
5d8c55f9 | 212 | #endif |
b5089195 | 213 | #ifdef HAVE_HW_DEREE_DE5000 |
9e60a31f | 214 | (DRVS) {&deree_de5000_driver_info, NULL}, |
b5089195 | 215 | #endif |
5d8c55f9 | 216 | #ifdef HAVE_HW_FLUKE_DMM |
9e60a31f | 217 | (DRVS) {&flukedmm_driver_info, NULL}, |
5d8c55f9 BV |
218 | #endif |
219 | #ifdef HAVE_HW_FX2LAFW | |
9e60a31f | 220 | (DRVS) {&fx2lafw_driver_info, NULL}, |
5d8c55f9 BV |
221 | #endif |
222 | #ifdef HAVE_HW_GMC_MH_1X_2X | |
9e60a31f ML |
223 | (DRVS) { |
224 | &gmc_mh_1x_2x_rs232_driver_info, | |
225 | &gmc_mh_2x_bd232_driver_info, | |
1a863916 UH |
226 | NULL |
227 | }, | |
5d8c55f9 BV |
228 | #endif |
229 | #ifdef HAVE_HW_HAMEG_HMO | |
9e60a31f | 230 | (DRVS) {&hameg_hmo_driver_info, NULL}, |
5d8c55f9 BV |
231 | #endif |
232 | #ifdef HAVE_HW_HANTEK_DSO | |
9e60a31f | 233 | (DRVS) {&hantek_dso_driver_info, NULL}, |
5d8c55f9 BV |
234 | #endif |
235 | #ifdef HAVE_HW_IKALOGIC_SCANALOGIC2 | |
9e60a31f | 236 | (DRVS) {&ikalogic_scanalogic2_driver_info, NULL}, |
5d8c55f9 BV |
237 | #endif |
238 | #ifdef HAVE_HW_IKALOGIC_SCANAPLUS | |
9e60a31f | 239 | (DRVS) {&ikalogic_scanaplus_driver_info, NULL}, |
5d8c55f9 BV |
240 | #endif |
241 | #ifdef HAVE_HW_KECHENG_KC_330B | |
9e60a31f | 242 | (DRVS) {&kecheng_kc_330b_driver_info, NULL}, |
5d8c55f9 BV |
243 | #endif |
244 | #ifdef HAVE_HW_LASCAR_EL_USB | |
9e60a31f | 245 | (DRVS) {&lascar_el_usb_driver_info, NULL}, |
5d8c55f9 BV |
246 | #endif |
247 | #ifdef HAVE_HW_LINK_MSO19 | |
9e60a31f | 248 | (DRVS) {&link_mso19_driver_info, NULL}, |
5d8c55f9 BV |
249 | #endif |
250 | #ifdef HAVE_HW_MANSON_HCS_3XXX | |
9e60a31f | 251 | (DRVS) {&manson_hcs_3xxx_driver_info, NULL}, |
5d8c55f9 | 252 | #endif |
e1ccfb19 AJ |
253 | #ifdef HAVE_HW_MAYNUO_M97 |
254 | (DRVS) {&maynuo_m97_driver_info, NULL}, | |
255 | #endif | |
5d8c55f9 | 256 | #ifdef HAVE_HW_MIC_985XX |
9e60a31f ML |
257 | (DRVS) { |
258 | &mic_98581_driver_info, | |
259 | &mic_98583_driver_info, | |
1a863916 UH |
260 | NULL |
261 | }, | |
5d8c55f9 BV |
262 | #endif |
263 | #ifdef HAVE_HW_MOTECH_LPS_30X | |
9e60a31f | 264 | (DRVS) {&motech_lps_301_driver_info, NULL}, |
5d8c55f9 BV |
265 | #endif |
266 | #ifdef HAVE_HW_NORMA_DMM | |
9e60a31f ML |
267 | (DRVS) { |
268 | &norma_dmm_driver_info, | |
269 | &siemens_b102x_driver_info, | |
1a863916 UH |
270 | NULL |
271 | }, | |
5d8c55f9 BV |
272 | #endif |
273 | #ifdef HAVE_HW_OPENBENCH_LOGIC_SNIFFER | |
9e60a31f | 274 | (DRVS) {&ols_driver_info, NULL}, |
5d8c55f9 | 275 | #endif |
4bd80e12 | 276 | #ifdef HAVE_HW_PIPISTRELLO_OLS |
9e60a31f | 277 | (DRVS) {&p_ols_driver_info, NULL}, |
4bd80e12 | 278 | #endif |
5d8c55f9 | 279 | #ifdef HAVE_HW_RIGOL_DS |
9e60a31f | 280 | (DRVS) {&rigol_ds_driver_info, NULL}, |
5d8c55f9 BV |
281 | #endif |
282 | #ifdef HAVE_HW_SALEAE_LOGIC16 | |
9e60a31f | 283 | (DRVS) {&saleae_logic16_driver_info, NULL}, |
5d8c55f9 | 284 | #endif |
ca1a7cb5 | 285 | #ifdef HAVE_HW_SCPI_PPS |
9e60a31f | 286 | (DRVS) {&scpi_pps_driver_info, NULL}, |
ca1a7cb5 | 287 | #endif |
5d8c55f9 | 288 | #ifdef HAVE_HW_SERIAL_DMM |
bcbef5ed | 289 | serial_dmm_drivers, |
5d8c55f9 BV |
290 | #endif |
291 | #ifdef HAVE_HW_SYSCLK_LWLA | |
9e60a31f | 292 | (DRVS) {&sysclk_lwla_driver_info, NULL}, |
5d8c55f9 BV |
293 | #endif |
294 | #ifdef HAVE_HW_TELEINFO | |
9e60a31f | 295 | (DRVS) {&teleinfo_driver_info, NULL}, |
5d8c55f9 BV |
296 | #endif |
297 | #ifdef HAVE_HW_TESTO | |
9e60a31f | 298 | (DRVS) {&testo_driver_info, NULL}, |
5d8c55f9 BV |
299 | #endif |
300 | #ifdef HAVE_HW_TONDAJ_SL_814 | |
9e60a31f | 301 | (DRVS) {&tondaj_sl_814_driver_info, NULL}, |
5d8c55f9 BV |
302 | #endif |
303 | #ifdef HAVE_HW_UNI_T_DMM | |
f0540611 | 304 | uni_t_dmm_drivers, |
5d8c55f9 BV |
305 | #endif |
306 | #ifdef HAVE_HW_UNI_T_UT32X | |
9e60a31f | 307 | (DRVS) {&uni_t_ut32x_driver_info, NULL}, |
5d8c55f9 BV |
308 | #endif |
309 | #ifdef HAVE_HW_VICTOR_DMM | |
9e60a31f | 310 | (DRVS) {&victor_dmm_driver_info, NULL}, |
5d8c55f9 | 311 | #endif |
10763937 | 312 | #ifdef HAVE_HW_YOKOGAWA_DLM |
9e60a31f | 313 | (DRVS) {&yokogawa_dlm_driver_info, NULL}, |
10763937 | 314 | #endif |
5d8c55f9 | 315 | #ifdef HAVE_HW_ZEROPLUS_LOGIC_CUBE |
9e60a31f | 316 | (DRVS) {&zeroplus_logic_cube_driver_info, NULL}, |
5d8c55f9 BV |
317 | #endif |
318 | NULL, | |
319 | }; | |
320 | /** @endcond */ |