Lines Matching +full:0 +full:x2184
54 { USB_DEVICE(0x0404, 0x034C) }, /* NCR Retail IO Box */
55 { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */
56 { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */
57 { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
58 { USB_DEVICE(0x0489, 0xE003) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
59 { USB_DEVICE(0x0745, 0x1000) }, /* CipherLab USB CCD Barcode Scanner 1000 */
60 …{ USB_DEVICE(0x0846, 0x1100) }, /* NetGear Managed Switch M4100 series, M5300 series, M7100 series…
61 { USB_DEVICE(0x08e6, 0x5501) }, /* Gemalto Prox-PU/CU contactless smartcard reader */
62 { USB_DEVICE(0x08FD, 0x000A) }, /* Digianswer A/S , ZigBee/802.15.4 MAC Device */
63 { USB_DEVICE(0x0908, 0x01FF) }, /* Siemens RUGGEDCOM USB Serial Console */
64 { USB_DEVICE(0x0988, 0x0578) }, /* Teraoka AD2000 */
65 { USB_DEVICE(0x0B00, 0x3070) }, /* Ingenico 3070 */
66 { USB_DEVICE(0x0BED, 0x1100) }, /* MEI (TM) Cashflow-SC Bill/Voucher Acceptor */
67 { USB_DEVICE(0x0BED, 0x1101) }, /* MEI series 2000 Combo Acceptor */
68 { USB_DEVICE(0x0FCF, 0x1003) }, /* Dynastream ANT development board */
69 { USB_DEVICE(0x0FCF, 0x1004) }, /* Dynastream ANT2USB */
70 { USB_DEVICE(0x0FCF, 0x1006) }, /* Dynastream ANT development board */
71 { USB_DEVICE(0x0FDE, 0xCA05) }, /* OWL Wireless Electricity Monitor CM-160 */
72 { USB_DEVICE(0x106F, 0x0003) }, /* CPI / Money Controls Bulk Coin Recycler */
73 { USB_DEVICE(0x10A6, 0xAA26) }, /* Knock-off DCU-11 cable */
74 { USB_DEVICE(0x10AB, 0x10C5) }, /* Siemens MC60 Cable */
75 { USB_DEVICE(0x10B5, 0xAC70) }, /* Nokia CA-42 USB */
76 { USB_DEVICE(0x10C4, 0x0F91) }, /* Vstabi */
77 { USB_DEVICE(0x10C4, 0x1101) }, /* Arkham Technology DS101 Bus Monitor */
78 { USB_DEVICE(0x10C4, 0x1601) }, /* Arkham Technology DS101 Adapter */
79 { USB_DEVICE(0x10C4, 0x800A) }, /* SPORTident BSM7-D-USB main station */
80 { USB_DEVICE(0x10C4, 0x803B) }, /* Pololu USB-serial converter */
81 { USB_DEVICE(0x10C4, 0x8044) }, /* Cygnal Debug Adapter */
82 { USB_DEVICE(0x10C4, 0x804E) }, /* Software Bisque Paramount ME build-in converter */
83 { USB_DEVICE(0x10C4, 0x8053) }, /* Enfora EDG1228 */
84 { USB_DEVICE(0x10C4, 0x8054) }, /* Enfora GSM2228 */
85 { USB_DEVICE(0x10C4, 0x8056) }, /* Lorenz Messtechnik devices */
86 { USB_DEVICE(0x10C4, 0x8066) }, /* Argussoft In-System Programmer */
87 { USB_DEVICE(0x10C4, 0x806F) }, /* IMS USB to RS422 Converter Cable */
88 { USB_DEVICE(0x10C4, 0x807A) }, /* Crumb128 board */
89 { USB_DEVICE(0x10C4, 0x80C4) }, /* Cygnal Integrated Products, Inc., Optris infrared thermometer */
90 { USB_DEVICE(0x10C4, 0x80CA) }, /* Degree Controls Inc */
91 { USB_DEVICE(0x10C4, 0x80DD) }, /* Tracient RFID */
92 { USB_DEVICE(0x10C4, 0x80F6) }, /* Suunto sports instrument */
93 { USB_DEVICE(0x10C4, 0x8115) }, /* Arygon NFC/Mifare Reader */
94 { USB_DEVICE(0x10C4, 0x813D) }, /* Burnside Telecom Deskmobile */
95 { USB_DEVICE(0x10C4, 0x813F) }, /* Tams Master Easy Control */
96 { USB_DEVICE(0x10C4, 0x814A) }, /* West Mountain Radio RIGblaster P&P */
97 { USB_DEVICE(0x10C4, 0x814B) }, /* West Mountain Radio RIGtalk */
98 { USB_DEVICE(0x2405, 0x0003) }, /* West Mountain Radio RIGblaster Advantage */
99 { USB_DEVICE(0x10C4, 0x8156) }, /* B&G H3000 link cable */
100 { USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */
101 { USB_DEVICE(0x10C4, 0x815F) }, /* Timewave HamLinkUSB */
102 { USB_DEVICE(0x10C4, 0x817C) }, /* CESINEL MEDCAL N Power Quality Monitor */
103 { USB_DEVICE(0x10C4, 0x817D) }, /* CESINEL MEDCAL NT Power Quality Monitor */
104 { USB_DEVICE(0x10C4, 0x817E) }, /* CESINEL MEDCAL S Power Quality Monitor */
105 { USB_DEVICE(0x10C4, 0x818B) }, /* AVIT Research USB to TTL */
106 { USB_DEVICE(0x10C4, 0x819F) }, /* MJS USB Toslink Switcher */
107 { USB_DEVICE(0x10C4, 0x81A6) }, /* ThinkOptics WavIt */
108 { USB_DEVICE(0x10C4, 0x81A9) }, /* Multiplex RC Interface */
109 { USB_DEVICE(0x10C4, 0x81AC) }, /* MSD Dash Hawk */
110 { USB_DEVICE(0x10C4, 0x81AD) }, /* INSYS USB Modem */
111 { USB_DEVICE(0x10C4, 0x81C8) }, /* Lipowsky Industrie Elektronik GmbH, Baby-JTAG */
112 { USB_DEVICE(0x10C4, 0x81D7) }, /* IAI Corp. RCB-CV-USB USB to RS485 Adaptor */
113 { USB_DEVICE(0x10C4, 0x81E2) }, /* Lipowsky Industrie Elektronik GmbH, Baby-LIN */
114 { USB_DEVICE(0x10C4, 0x81E7) }, /* Aerocomm Radio */
115 { USB_DEVICE(0x10C4, 0x81E8) }, /* Zephyr Bioharness */
116 { USB_DEVICE(0x10C4, 0x81F2) }, /* C1007 HF band RFID controller */
117 { USB_DEVICE(0x10C4, 0x8218) }, /* Lipowsky Industrie Elektronik GmbH, HARP-1 */
118 { USB_DEVICE(0x10C4, 0x822B) }, /* Modem EDGE(GSM) Comander 2 */
119 …{ USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration mo…
120 { USB_DEVICE(0x10C4, 0x8281) }, /* Nanotec Plug & Drive */
121 { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */
122 { USB_DEVICE(0x10C4, 0x82EF) }, /* CESINEL FALCO 6105 AC Power Supply */
123 { USB_DEVICE(0x10C4, 0x82F1) }, /* CESINEL MEDCAL EFD Earth Fault Detector */
124 { USB_DEVICE(0x10C4, 0x82F2) }, /* CESINEL MEDCAL ST Network Analyzer */
125 { USB_DEVICE(0x10C4, 0x82F4) }, /* Starizona MicroTouch */
126 { USB_DEVICE(0x10C4, 0x82F9) }, /* Procyon AVS */
127 { USB_DEVICE(0x10C4, 0x8341) }, /* Siemens MC35PU GPRS Modem */
128 { USB_DEVICE(0x10C4, 0x8382) }, /* Cygnal Integrated Products, Inc. */
129 { USB_DEVICE(0x10C4, 0x83A8) }, /* Amber Wireless AMB2560 */
130 { USB_DEVICE(0x10C4, 0x83AA) }, /* Mark-10 Digital Force Gauge */
131 { USB_DEVICE(0x10C4, 0x83D8) }, /* DekTec DTA Plus VHF/UHF Booster/Attenuator */
132 { USB_DEVICE(0x10C4, 0x8411) }, /* Kyocera GPS Module */
133 { USB_DEVICE(0x10C4, 0x8414) }, /* Decagon USB Cable Adapter */
134 { USB_DEVICE(0x10C4, 0x8418) }, /* IRZ Automation Teleport SG-10 GSM/GPRS Modem */
135 { USB_DEVICE(0x10C4, 0x846E) }, /* BEI USB Sensor Interface (VCP) */
136 { USB_DEVICE(0x10C4, 0x8470) }, /* Juniper Networks BX Series System Console */
137 { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */
138 { USB_DEVICE(0x10C4, 0x84B6) }, /* Starizona Hyperion */
139 { USB_DEVICE(0x10C4, 0x851E) }, /* CESINEL MEDCAL PT Network Analyzer */
140 { USB_DEVICE(0x10C4, 0x85A7) }, /* LifeScan OneTouch Verio IQ */
141 { USB_DEVICE(0x10C4, 0x85B8) }, /* CESINEL ReCon T Energy Logger */
142 { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */
143 { USB_DEVICE(0x10C4, 0x85EB) }, /* AC-Services CIS-IBUS */
144 { USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */
145 { USB_DEVICE(0x10C4, 0x8664) }, /* AC-Services CAN-IF */
146 { USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */
147 { USB_DEVICE(0x10C4, 0x8856) }, /* CEL EM357 ZigBee USB Stick - LR */
148 { USB_DEVICE(0x10C4, 0x8857) }, /* CEL EM357 ZigBee USB Stick */
149 { USB_DEVICE(0x10C4, 0x88A4) }, /* MMB Networks ZigBee USB Device */
150 { USB_DEVICE(0x10C4, 0x88A5) }, /* Planet Innovation Ingeni ZigBee USB Device */
151 { USB_DEVICE(0x10C4, 0x88D8) }, /* Acuity Brands nLight Air Adapter */
152 { USB_DEVICE(0x10C4, 0x88FB) }, /* CESINEL MEDCAL STII Network Analyzer */
153 { USB_DEVICE(0x10C4, 0x8938) }, /* CESINEL MEDCAL S II Network Analyzer */
154 { USB_DEVICE(0x10C4, 0x8946) }, /* Ketra N1 Wireless Interface */
155 { USB_DEVICE(0x10C4, 0x8962) }, /* Brim Brothers charging dock */
156 { USB_DEVICE(0x10C4, 0x8977) }, /* CEL MeshWorks DevKit Device */
157 { USB_DEVICE(0x10C4, 0x8998) }, /* KCF Technologies PRN */
158 { USB_DEVICE(0x10C4, 0x89A4) }, /* CESINEL FTBC Flexible Thyristor Bridge Controller */
159 { USB_DEVICE(0x10C4, 0x89FB) }, /* Qivicon ZigBee USB Radio Stick */
160 { USB_DEVICE(0x10C4, 0x8A2A) }, /* HubZ dual ZigBee and Z-Wave dongle */
161 { USB_DEVICE(0x10C4, 0x8A5B) }, /* CEL EM3588 ZigBee USB Stick */
162 { USB_DEVICE(0x10C4, 0x8A5E) }, /* CEL EM3588 ZigBee USB Stick Long Range */
163 { USB_DEVICE(0x10C4, 0x8B34) }, /* Qivicon ZigBee USB Radio Stick */
164 { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
165 { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */
166 { USB_DEVICE(0x10C4, 0xEA63) }, /* Silicon Labs Windows Update (CP2101-4/CP2102N) */
167 { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */
168 { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */
169 { USB_DEVICE(0x10C4, 0xEA7A) }, /* Silicon Labs Windows Update (CP2105) */
170 { USB_DEVICE(0x10C4, 0xEA7B) }, /* Silicon Labs Windows Update (CP2108) */
171 { USB_DEVICE(0x10C4, 0xF001) }, /* Elan Digital Systems USBscope50 */
172 { USB_DEVICE(0x10C4, 0xF002) }, /* Elan Digital Systems USBwave12 */
173 { USB_DEVICE(0x10C4, 0xF003) }, /* Elan Digital Systems USBpulse100 */
174 { USB_DEVICE(0x10C4, 0xF004) }, /* Elan Digital Systems USBcount50 */
175 { USB_DEVICE(0x10C5, 0xEA61) }, /* Silicon Labs MobiData GPRS USB Modem */
176 { USB_DEVICE(0x10CE, 0xEA6A) }, /* Silicon Labs MobiData GPRS USB Modem 100EU */
177 { USB_DEVICE(0x12B8, 0xEC60) }, /* Link G4 ECU */
178 { USB_DEVICE(0x12B8, 0xEC62) }, /* Link G4+ ECU */
179 { USB_DEVICE(0x13AD, 0x9999) }, /* Baltech card reader */
180 { USB_DEVICE(0x1555, 0x0004) }, /* Owen AC4 USB-RS485 Converter */
181 { USB_DEVICE(0x155A, 0x1006) }, /* ELDAT Easywave RX09 */
182 { USB_DEVICE(0x166A, 0x0201) }, /* Clipsal 5500PACA C-Bus Pascal Automation Controller */
183 { USB_DEVICE(0x166A, 0x0301) }, /* Clipsal 5800PC C-Bus Wireless PC Interface */
184 { USB_DEVICE(0x166A, 0x0303) }, /* Clipsal 5500PCU C-Bus USB interface */
185 { USB_DEVICE(0x166A, 0x0304) }, /* Clipsal 5000CT2 C-Bus Black and White Touchscreen */
186 { USB_DEVICE(0x166A, 0x0305) }, /* Clipsal C-5000CT2 C-Bus Spectrum Colour Touchscreen */
187 { USB_DEVICE(0x166A, 0x0401) }, /* Clipsal L51xx C-Bus Architectural Dimmer */
188 { USB_DEVICE(0x166A, 0x0101) }, /* Clipsal 5560884 C-Bus Multi-room Audio Matrix Switcher */
189 { USB_DEVICE(0x16C0, 0x09B0) }, /* Lunatico Seletek */
190 { USB_DEVICE(0x16C0, 0x09B1) }, /* Lunatico Seletek */
191 { USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */
192 { USB_DEVICE(0x16DC, 0x0010) }, /* W-IE-NE-R Plein & Baus GmbH PL512 Power Supply */
193 …{ USB_DEVICE(0x16DC, 0x0011) }, /* W-IE-NE-R Plein & Baus GmbH RCM Remote Control for MARATON Powe…
194 { USB_DEVICE(0x16DC, 0x0012) }, /* W-IE-NE-R Plein & Baus GmbH MPOD Multi Channel Power Supply */
195 …{ USB_DEVICE(0x16DC, 0x0015) }, /* W-IE-NE-R Plein & Baus GmbH CML Control, Monitoring and Data Lo…
196 { USB_DEVICE(0x17A8, 0x0001) }, /* Kamstrup Optical Eye/3-wire */
197 { USB_DEVICE(0x17A8, 0x0005) }, /* Kamstrup M-Bus Master MultiPort 250D */
198 { USB_DEVICE(0x17A8, 0x0101) }, /* Kamstrup 868 MHz wM-Bus C-Mode Meter Reader (Int Ant) */
199 { USB_DEVICE(0x17A8, 0x0102) }, /* Kamstrup 868 MHz wM-Bus C-Mode Meter Reader (Ext Ant) */
200 { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */
201 { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */
202 { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */
203 { USB_DEVICE(0x18EF, 0xE025) }, /* ELV Marble Sound Board 1 */
204 { USB_DEVICE(0x18EF, 0xE030) }, /* ELV ALC 8xxx Battery Charger */
205 { USB_DEVICE(0x18EF, 0xE032) }, /* ELV TFD500 Data Logger */
206 { USB_DEVICE(0x1901, 0x0190) }, /* GE B850 CP2105 Recorder interface */
207 { USB_DEVICE(0x1901, 0x0193) }, /* GE B650 CP2104 PMC interface */
208 { USB_DEVICE(0x1901, 0x0194) }, /* GE Healthcare Remote Alarm Box */
209 { USB_DEVICE(0x1901, 0x0195) }, /* GE B850/B650/B450 CP2104 DP UART interface */
210 { USB_DEVICE(0x1901, 0x0196) }, /* GE B850 CP2105 DP UART interface */
211 { USB_DEVICE(0x1901, 0x0197) }, /* GE CS1000 M.2 Key E serial interface */
212 { USB_DEVICE(0x1901, 0x0198) }, /* GE CS1000 Display serial interface */
213 { USB_DEVICE(0x199B, 0xBA30) }, /* LORD WSDA-200-USB */
214 { USB_DEVICE(0x19CF, 0x3000) }, /* Parrot NMEA GPS Flight Recorder */
215 { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */
216 { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */
217 { USB_DEVICE(0x1BA4, 0x0002) }, /* Silicon Labs 358x factory default */
218 { USB_DEVICE(0x1BE3, 0x07A6) }, /* WAGO 750-923 USB Service Cable */
219 { USB_DEVICE(0x1D6F, 0x0010) }, /* Seluxit ApS RF Dongle */
220 { USB_DEVICE(0x1E29, 0x0102) }, /* Festo CPX-USB */
221 { USB_DEVICE(0x1E29, 0x0501) }, /* Festo CMSP */
222 { USB_DEVICE(0x1FB9, 0x0100) }, /* Lake Shore Model 121 Current Source */
223 { USB_DEVICE(0x1FB9, 0x0200) }, /* Lake Shore Model 218A Temperature Monitor */
224 { USB_DEVICE(0x1FB9, 0x0201) }, /* Lake Shore Model 219 Temperature Monitor */
225 { USB_DEVICE(0x1FB9, 0x0202) }, /* Lake Shore Model 233 Temperature Transmitter */
226 { USB_DEVICE(0x1FB9, 0x0203) }, /* Lake Shore Model 235 Temperature Transmitter */
227 { USB_DEVICE(0x1FB9, 0x0300) }, /* Lake Shore Model 335 Temperature Controller */
228 { USB_DEVICE(0x1FB9, 0x0301) }, /* Lake Shore Model 336 Temperature Controller */
229 { USB_DEVICE(0x1FB9, 0x0302) }, /* Lake Shore Model 350 Temperature Controller */
230 { USB_DEVICE(0x1FB9, 0x0303) }, /* Lake Shore Model 371 AC Bridge */
231 { USB_DEVICE(0x1FB9, 0x0400) }, /* Lake Shore Model 411 Handheld Gaussmeter */
232 { USB_DEVICE(0x1FB9, 0x0401) }, /* Lake Shore Model 425 Gaussmeter */
233 { USB_DEVICE(0x1FB9, 0x0402) }, /* Lake Shore Model 455A Gaussmeter */
234 { USB_DEVICE(0x1FB9, 0x0403) }, /* Lake Shore Model 475A Gaussmeter */
235 { USB_DEVICE(0x1FB9, 0x0404) }, /* Lake Shore Model 465 Three Axis Gaussmeter */
236 { USB_DEVICE(0x1FB9, 0x0600) }, /* Lake Shore Model 625A Superconducting MPS */
237 { USB_DEVICE(0x1FB9, 0x0601) }, /* Lake Shore Model 642A Magnet Power Supply */
238 { USB_DEVICE(0x1FB9, 0x0602) }, /* Lake Shore Model 648 Magnet Power Supply */
239 { USB_DEVICE(0x1FB9, 0x0700) }, /* Lake Shore Model 737 VSM Controller */
240 { USB_DEVICE(0x1FB9, 0x0701) }, /* Lake Shore Model 776 Hall Matrix */
241 { USB_DEVICE(0x2184, 0x0030) }, /* GW Instek GDM-834x Digital Multimeter */
242 { USB_DEVICE(0x2626, 0xEA60) }, /* Aruba Networks 7xxx USB Serial Console */
243 { USB_DEVICE(0x3195, 0xF190) }, /* Link Instruments MSO-19 */
244 { USB_DEVICE(0x3195, 0xF280) }, /* Link Instruments MSO-28 */
245 { USB_DEVICE(0x3195, 0xF281) }, /* Link Instruments MSO-28 */
246 { USB_DEVICE(0x3923, 0x7A0B) }, /* National Instruments USB Serial Console */
247 { USB_DEVICE(0x413C, 0x9500) }, /* DW700 GPS USB interface */
324 #define REQTYPE_HOST_TO_INTERFACE 0x41
325 #define REQTYPE_INTERFACE_TO_HOST 0xc1
326 #define REQTYPE_HOST_TO_DEVICE 0x40
327 #define REQTYPE_DEVICE_TO_HOST 0xc0
330 #define CP210X_IFC_ENABLE 0x00
331 #define CP210X_SET_BAUDDIV 0x01
332 #define CP210X_GET_BAUDDIV 0x02
333 #define CP210X_SET_LINE_CTL 0x03
334 #define CP210X_GET_LINE_CTL 0x04
335 #define CP210X_SET_BREAK 0x05
336 #define CP210X_IMM_CHAR 0x06
337 #define CP210X_SET_MHS 0x07
338 #define CP210X_GET_MDMSTS 0x08
339 #define CP210X_SET_XON 0x09
340 #define CP210X_SET_XOFF 0x0A
341 #define CP210X_SET_EVENTMASK 0x0B
342 #define CP210X_GET_EVENTMASK 0x0C
343 #define CP210X_SET_CHAR 0x0D
344 #define CP210X_GET_CHARS 0x0E
345 #define CP210X_GET_PROPS 0x0F
346 #define CP210X_GET_COMM_STATUS 0x10
347 #define CP210X_RESET 0x11
348 #define CP210X_PURGE 0x12
349 #define CP210X_SET_FLOW 0x13
350 #define CP210X_GET_FLOW 0x14
351 #define CP210X_EMBED_EVENTS 0x15
352 #define CP210X_GET_EVENTSTATE 0x16
353 #define CP210X_SET_CHARS 0x19
354 #define CP210X_GET_BAUDRATE 0x1D
355 #define CP210X_SET_BAUDRATE 0x1E
356 #define CP210X_VENDOR_SPECIFIC 0xFF
359 #define UART_ENABLE 0x0001
360 #define UART_DISABLE 0x0000
363 #define BAUD_RATE_GEN_FREQ 0x384000
366 #define BITS_DATA_MASK 0X0f00
367 #define BITS_DATA_5 0X0500
368 #define BITS_DATA_6 0X0600
369 #define BITS_DATA_7 0X0700
370 #define BITS_DATA_8 0X0800
371 #define BITS_DATA_9 0X0900
373 #define BITS_PARITY_MASK 0x00f0
374 #define BITS_PARITY_NONE 0x0000
375 #define BITS_PARITY_ODD 0x0010
376 #define BITS_PARITY_EVEN 0x0020
377 #define BITS_PARITY_MARK 0x0030
378 #define BITS_PARITY_SPACE 0x0040
380 #define BITS_STOP_MASK 0x000f
381 #define BITS_STOP_1 0x0000
382 #define BITS_STOP_1_5 0x0001
383 #define BITS_STOP_2 0x0002
386 #define BREAK_ON 0x0001
387 #define BREAK_OFF 0x0000
390 #define CONTROL_DTR 0x0001
391 #define CONTROL_RTS 0x0002
392 #define CONTROL_CTS 0x0010
393 #define CONTROL_DSR 0x0020
394 #define CONTROL_RING 0x0040
395 #define CONTROL_DCD 0x0080
396 #define CONTROL_WRITE_DTR 0x0100
397 #define CONTROL_WRITE_RTS 0x0200
410 #define CP210X_GET_FW_VER 0x000E
411 #define CP210X_READ_2NCONFIG 0x000E
412 #define CP210X_GET_FW_VER_2N 0x0010
413 #define CP210X_READ_LATCH 0x00C2
414 #define CP210X_GET_PARTNUM 0x370B
415 #define CP210X_GET_PORTCONFIG 0x370C
416 #define CP210X_GET_DEVICEMODE 0x3711
417 #define CP210X_WRITE_LATCH 0x37E1
420 #define CP210X_PARTNUM_CP2101 0x01
421 #define CP210X_PARTNUM_CP2102 0x02
422 #define CP210X_PARTNUM_CP2103 0x03
423 #define CP210X_PARTNUM_CP2104 0x04
424 #define CP210X_PARTNUM_CP2105 0x05
425 #define CP210X_PARTNUM_CP2108 0x08
426 #define CP210X_PARTNUM_CP2102N_QFN28 0x20
427 #define CP210X_PARTNUM_CP2102N_QFN24 0x21
428 #define CP210X_PARTNUM_CP2102N_QFN20 0x22
429 #define CP210X_PARTNUM_UNKNOWN 0xFF
431 /* CP210X_GET_COMM_STATUS returns these 0x13 bytes */
445 * bit 0 or bit 2 clears the transmit queue and 1 or 3 receive.
448 #define PURGE_ALL 0x000f
451 #define CP210X_ESCCHAR 0xec
459 /* CP210X_GET_FLOW/CP210X_SET_FLOW read/write these 0x10 bytes */
468 #define CP210X_SERIAL_DTR_MASK GENMASK(1, 0)
469 #define CP210X_SERIAL_DTR_INACTIVE (0 << 0)
470 #define CP210X_SERIAL_DTR_ACTIVE (1 << 0)
471 #define CP210X_SERIAL_DTR_FLOW_CTL (2 << 0)
478 #define CP210X_SERIAL_AUTO_TRANSMIT BIT(0)
484 #define CP210X_SERIAL_RTS_INACTIVE (0 << 6)
489 /* CP210X_VENDOR_SPECIFIC, CP210X_GET_DEVICEMODE call reads these 0x2 bytes. */
495 #define CP210X_PIN_MODE_MODEM 0
496 #define CP210X_PIN_MODE_GPIO BIT(0)
499 * CP210X_VENDOR_SPECIFIC, CP210X_GET_PORTCONFIG call reads these 0xf bytes
514 * CP210X_VENDOR_SPECIFIC, CP210X_GET_PORTCONFIG call reads these 0xd bytes
537 #define CP2105_GPIO0_TXLED_MODE BIT(0)
542 #define CP2104_GPIO0_TXLED_MODE BIT(0)
567 * CP210X_VENDOR_SPECIFIC, CP210X_GET_PORTCONFIG call reads these 0x49 bytes
581 #define CP2108_EF_IFC_GPIO_TXLED 0x01
582 #define CP2108_EF_IFC_GPIO_RXLED 0x02
583 #define CP2108_EF_IFC_GPIO_RS485 0x04
584 #define CP2108_EF_IFC_GPIO_RS485_LOGIC 0x08
585 #define CP2108_EF_IFC_GPIO_CLOCK 0x10
586 #define CP2108_EF_IFC_DYNAMIC_SUSPEND 0x40
601 * CP210X_VENDOR_SPECIFIC, CP210X_WRITE_LATCH call writes these 0x02 bytes
610 * CP210X_VENDOR_SPECIFIC, CP210X_WRITE_LATCH call writes these 0x04 bytes
642 result = usb_control_msg_recv(serial->dev, 0, req, in cp210x_read_reg_block()
643 REQTYPE_INTERFACE_TO_HOST, 0, in cp210x_read_reg_block()
647 dev_err(&port->dev, "failed get req 0x%x size %d status: %d\n", in cp210x_read_reg_block()
652 return 0; in cp210x_read_reg_block()
672 result = usb_control_msg_recv(serial->dev, 0, CP210X_VENDOR_SPECIFIC, in cp210x_read_vendor_block()
677 "failed to get vendor val 0x%04x size %d: %d\n", val, in cp210x_read_vendor_block()
682 return 0; in cp210x_read_vendor_block()
695 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_u16_reg()
697 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg()
699 if (result < 0) { in cp210x_write_u16_reg()
700 dev_err(&port->dev, "failed set request 0x%x status: %d\n", in cp210x_write_u16_reg()
718 result = usb_control_msg_send(serial->dev, 0, req, in cp210x_write_reg_block()
719 REQTYPE_HOST_TO_INTERFACE, 0, in cp210x_write_reg_block()
723 dev_err(&port->dev, "failed set req 0x%x size %d status: %d\n", in cp210x_write_reg_block()
728 return 0; in cp210x_write_reg_block()
753 result = usb_control_msg_send(serial->dev, 0, CP210X_VENDOR_SPECIFIC, in cp210x_write_vendor_block()
758 "failed to set vendor val 0x%04x size %d: %d\n", val, in cp210x_write_vendor_block()
763 return 0; in cp210x_write_vendor_block()
785 return 0; in cp210x_open()
824 tty_insert_flip_char(&port->port, 0, TTY_OVERRUN); in cp210x_process_lsr()
841 case 0: in cp210x_process_char()
856 dev_err(&port->dev, "malformed event 0x%02x\n", *ch); in cp210x_process_char()
866 dev_dbg(&port->dev, "%s - lsr = 0x%02x, data = 0x%02x\n", in cp210x_process_char()
872 dev_dbg(&port->dev, "%s - lsr = 0x%02x\n", __func__, *ch); in cp210x_process_char()
878 dev_dbg(&port->dev, "%s - msr = 0x%02x\n", __func__, *ch); in cp210x_process_char()
899 for (i = 0; i < urb->actual_length; i++, ch++) { in cp210x_process_read_urb()
924 result = usb_control_msg_recv(serial->dev, 0, CP210X_GET_COMM_STATUS, in cp210x_get_tx_queue_byte_count()
925 REQTYPE_INTERFACE_TO_HOST, 0, in cp210x_get_tx_queue_byte_count()
935 return 0; in cp210x_get_tx_queue_byte_count()
994 for (i = 0; i < ARRAY_SIZE(cp210x_an205_table1); ++i) { in cp210x_get_an205_rate()
1105 ret = cp210x_write_u16_reg(port, CP210X_EMBED_EVENTS, 0); in cp210x_disable_event_mode()
1157 memset(&chars, 0, sizeof(chars)); in cp210x_set_flow_control()
1220 dev_dbg(&port->dev, "%s - ctrl = 0x%02x, flow = 0x%02x\n", __func__, in cp210x_set_flow_control()
1256 bits = 0; in cp210x_set_termios()
1322 u16 control = 0; in cp210x_tiocmset_port()
1376 dev_dbg(&port->dev, "%s - ctrl = 0x%02x, flow = 0x%02x\n", in cp210x_tiocmset_port()
1382 dev_dbg(&port->dev, "%s - control = 0x%04x\n", __func__, control); in cp210x_tiocmset_port()
1395 cp210x_tiocmset_port(port, TIOCM_DTR | TIOCM_RTS, 0); in cp210x_dtr_rts()
1397 cp210x_tiocmset_port(port, 0, TIOCM_DTR | TIOCM_RTS); in cp210x_dtr_rts()
1410 result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0) in cp210x_tiocmget()
1411 |((control & CONTROL_RTS) ? TIOCM_RTS : 0) in cp210x_tiocmget()
1412 |((control & CONTROL_CTS) ? TIOCM_CTS : 0) in cp210x_tiocmget()
1413 |((control & CONTROL_DSR) ? TIOCM_DSR : 0) in cp210x_tiocmget()
1414 |((control & CONTROL_RING)? TIOCM_RI : 0) in cp210x_tiocmget()
1415 |((control & CONTROL_DCD) ? TIOCM_CD : 0); in cp210x_tiocmget()
1417 dev_dbg(&port->dev, "%s - control = 0x%02x\n", __func__, control); in cp210x_tiocmget()
1427 if (break_state == 0) in cp210x_break_ctl()
1465 mask = 0; in cp210x_gpio_get()
1471 if (result < 0) in cp210x_gpio_get()
1492 state = 0; in cp210x_gpio_set()
1520 usb_sndctrlpipe(serial->dev, 0), in cp210x_gpio_set()
1525 NULL, 0, USB_CTRL_SET_TIMEOUT); in cp210x_gpio_set()
1531 if (result < 0) { in cp210x_gpio_set()
1564 return 0; in cp210x_gpio_direction_input()
1576 return 0; in cp210x_gpio_direction_output()
1589 return 0; in cp210x_gpio_set_config()
1593 return 0; in cp210x_gpio_set_config()
1613 return 0; in cp210x_gpio_init_valid_mask()
1635 if (result < 0) in cp2105_gpioconf_init()
1641 if (result < 0) in cp2105_gpioconf_init()
1645 if (intf_num == 0) { in cp2105_gpioconf_init()
1650 priv->gpio_altfunc = 0xff; in cp2105_gpioconf_init()
1651 return 0; in cp2105_gpioconf_init()
1663 priv->gpio_altfunc = 0xff; in cp2105_gpioconf_init()
1664 return 0; in cp2105_gpioconf_init()
1676 if (iface_config & CP2105_GPIO0_TXLED_MODE) /* GPIO 0 */ in cp2105_gpioconf_init()
1677 priv->gpio_altfunc |= BIT(0); in cp2105_gpioconf_init()
1683 priv->gpio_input = 0; in cp2105_gpioconf_init()
1685 return 0; in cp2105_gpioconf_init()
1700 if (result < 0) in cp2104_gpioconf_init()
1714 if (iface_config & CP2104_GPIO0_TXLED_MODE) /* GPIO 0 */ in cp2104_gpioconf_init()
1715 priv->gpio_altfunc |= BIT(0); in cp2104_gpioconf_init()
1726 for (i = 0; i < priv->gc.ngpio; ++i) { in cp2104_gpioconf_init()
1735 return 0; in cp2104_gpioconf_init()
1749 if (result < 0) in cp2108_gpio_init()
1762 * Alternate functions of GPIO0 to GPIO3 are determine by enhancedfxn_ifc[0] in cp2108_gpio_init()
1766 for (i = 0; i < 4; i++) { in cp2108_gpio_init()
1781 for (i = 0; i < priv->gc.ngpio; ++i) { in cp2108_gpio_init()
1790 return 0; in cp2108_gpio_init()
1796 const u16 config_size = 0x02a6; in cp2102n_gpioconf_init()
1822 if (result < 0) { in cp2102n_gpioconf_init()
1835 if (config_version != 0x01) in cp2102n_gpioconf_init()
1844 gpio_latch = (gpio_rst_latch >> 3) & 0x0f; in cp2102n_gpioconf_init()
1846 /* 0 indicates open-drain mode, 1 is push-pull */ in cp2102n_gpioconf_init()
1847 priv->gpio_pushpull = (gpio_pushpull >> 3) & 0x0f; in cp2102n_gpioconf_init()
1849 /* 0 indicates GPIO mode, 1 is alternate function */ in cp2102n_gpioconf_init()
1852 if (gpio_ctrl & CP2102N_QFN20_GPIO0_CLK_MODE) /* GPIO 0 */ in cp2102n_gpioconf_init()
1853 priv->gpio_altfunc |= BIT(0); in cp2102n_gpioconf_init()
1861 priv->gpio_altfunc = (gpio_ctrl >> 2) & 0x0f; in cp2102n_gpioconf_init()
1885 for (i = 0; i < priv->gc.ngpio; ++i) { in cp2102n_gpioconf_init()
1894 return 0; in cp2102n_gpioconf_init()
1912 * once for interface 0. in cp210x_gpio_init()
1914 if (cp210x_interface_num(serial) != 0) in cp210x_gpio_init()
1915 return 0; in cp210x_gpio_init()
1924 return 0; in cp210x_gpio_init()
1927 if (result < 0) in cp210x_gpio_init()
1964 return 0; in cp210x_gpio_init()
1988 return 0; in cp210x_port_probe()
2022 if (cp210x_interface_num(serial) == 0) { in cp210x_init_max_speed()
2061 ret = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp2102_determine_quirks()
2063 CP210X_GET_PARTNUM, 0, buf, 2, USB_CTRL_GET_TIMEOUT); in cp2102_determine_quirks()
2085 ver[0], ver[1], ver[2]); in cp210x_get_fw_version()
2087 priv->fw_version = ver[0] << 16 | ver[1] << 8 | ver[2]; in cp210x_get_fw_version()
2089 return 0; in cp210x_get_fw_version()
2100 if (ret < 0) { in cp210x_determine_type()
2107 dev_dbg(&serial->interface->dev, "partnum = 0x%02x\n", priv->partnum); in cp210x_determine_type()
2123 if (priv->fw_version <= 0x10004) in cp210x_determine_type()
2146 if (result < 0) { in cp210x_attach()
2151 return 0; in cp210x_attach()