Lines Matching +full:0 +full:xf003

58 	{ USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */
59 { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */
60 { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
61 { USB_DEVICE(0x0489, 0xE003) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
62 { USB_DEVICE(0x0745, 0x1000) }, /* CipherLab USB CCD Barcode Scanner 1000 */
63 …{ USB_DEVICE(0x0846, 0x1100) }, /* NetGear Managed Switch M4100 series, M5300 series, M7100 series…
64 { USB_DEVICE(0x08e6, 0x5501) }, /* Gemalto Prox-PU/CU contactless smartcard reader */
65 { USB_DEVICE(0x08FD, 0x000A) }, /* Digianswer A/S , ZigBee/802.15.4 MAC Device */
66 { USB_DEVICE(0x0908, 0x01FF) }, /* Siemens RUGGEDCOM USB Serial Console */
67 { USB_DEVICE(0x0B00, 0x3070) }, /* Ingenico 3070 */
68 { USB_DEVICE(0x0BED, 0x1100) }, /* MEI (TM) Cashflow-SC Bill/Voucher Acceptor */
69 { USB_DEVICE(0x0BED, 0x1101) }, /* MEI series 2000 Combo Acceptor */
70 { USB_DEVICE(0x0FCF, 0x1003) }, /* Dynastream ANT development board */
71 { USB_DEVICE(0x0FCF, 0x1004) }, /* Dynastream ANT2USB */
72 { USB_DEVICE(0x0FCF, 0x1006) }, /* Dynastream ANT development board */
73 { USB_DEVICE(0x0FDE, 0xCA05) }, /* OWL Wireless Electricity Monitor CM-160 */
74 { USB_DEVICE(0x10A6, 0xAA26) }, /* Knock-off DCU-11 cable */
75 { USB_DEVICE(0x10AB, 0x10C5) }, /* Siemens MC60 Cable */
76 { USB_DEVICE(0x10B5, 0xAC70) }, /* Nokia CA-42 USB */
77 { USB_DEVICE(0x10C4, 0x0F91) }, /* Vstabi */
78 { USB_DEVICE(0x10C4, 0x1101) }, /* Arkham Technology DS101 Bus Monitor */
79 { USB_DEVICE(0x10C4, 0x1601) }, /* Arkham Technology DS101 Adapter */
80 { USB_DEVICE(0x10C4, 0x800A) }, /* SPORTident BSM7-D-USB main station */
81 { USB_DEVICE(0x10C4, 0x803B) }, /* Pololu USB-serial converter */
82 { USB_DEVICE(0x10C4, 0x8044) }, /* Cygnal Debug Adapter */
83 { USB_DEVICE(0x10C4, 0x804E) }, /* Software Bisque Paramount ME build-in converter */
84 { USB_DEVICE(0x10C4, 0x8053) }, /* Enfora EDG1228 */
85 { USB_DEVICE(0x10C4, 0x8054) }, /* Enfora GSM2228 */
86 { USB_DEVICE(0x10C4, 0x8056) }, /* Lorenz Messtechnik devices */
87 { USB_DEVICE(0x10C4, 0x8066) }, /* Argussoft In-System Programmer */
88 { USB_DEVICE(0x10C4, 0x806F) }, /* IMS USB to RS422 Converter Cable */
89 { USB_DEVICE(0x10C4, 0x807A) }, /* Crumb128 board */
90 { USB_DEVICE(0x10C4, 0x80C4) }, /* Cygnal Integrated Products, Inc., Optris infrared thermometer */
91 { USB_DEVICE(0x10C4, 0x80CA) }, /* Degree Controls Inc */
92 { USB_DEVICE(0x10C4, 0x80DD) }, /* Tracient RFID */
93 { USB_DEVICE(0x10C4, 0x80F6) }, /* Suunto sports instrument */
94 { USB_DEVICE(0x10C4, 0x8115) }, /* Arygon NFC/Mifare Reader */
95 { USB_DEVICE(0x10C4, 0x813D) }, /* Burnside Telecom Deskmobile */
96 { USB_DEVICE(0x10C4, 0x813F) }, /* Tams Master Easy Control */
97 { USB_DEVICE(0x10C4, 0x814A) }, /* West Mountain Radio RIGblaster P&P */
98 { USB_DEVICE(0x10C4, 0x814B) }, /* West Mountain Radio RIGtalk */
99 { USB_DEVICE(0x2405, 0x0003) }, /* West Mountain Radio RIGblaster Advantage */
100 { USB_DEVICE(0x10C4, 0x8156) }, /* B&G H3000 link cable */
101 { USB_DEVICE(0x10C4, 0x815E) }, /* Helicomm IP-Link 1220-DVM */
102 { USB_DEVICE(0x10C4, 0x815F) }, /* Timewave HamLinkUSB */
103 { USB_DEVICE(0x10C4, 0x817C) }, /* CESINEL MEDCAL N Power Quality Monitor */
104 { USB_DEVICE(0x10C4, 0x817D) }, /* CESINEL MEDCAL NT Power Quality Monitor */
105 { USB_DEVICE(0x10C4, 0x817E) }, /* CESINEL MEDCAL S Power Quality Monitor */
106 { USB_DEVICE(0x10C4, 0x818B) }, /* AVIT Research USB to TTL */
107 { USB_DEVICE(0x10C4, 0x819F) }, /* MJS USB Toslink Switcher */
108 { USB_DEVICE(0x10C4, 0x81A6) }, /* ThinkOptics WavIt */
109 { USB_DEVICE(0x10C4, 0x81A9) }, /* Multiplex RC Interface */
110 { USB_DEVICE(0x10C4, 0x81AC) }, /* MSD Dash Hawk */
111 { USB_DEVICE(0x10C4, 0x81AD) }, /* INSYS USB Modem */
112 { USB_DEVICE(0x10C4, 0x81C8) }, /* Lipowsky Industrie Elektronik GmbH, Baby-JTAG */
113 { USB_DEVICE(0x10C4, 0x81D7) }, /* IAI Corp. RCB-CV-USB USB to RS485 Adaptor */
114 { USB_DEVICE(0x10C4, 0x81E2) }, /* Lipowsky Industrie Elektronik GmbH, Baby-LIN */
115 { USB_DEVICE(0x10C4, 0x81E7) }, /* Aerocomm Radio */
116 { USB_DEVICE(0x10C4, 0x81E8) }, /* Zephyr Bioharness */
117 { USB_DEVICE(0x10C4, 0x81F2) }, /* C1007 HF band RFID controller */
118 { USB_DEVICE(0x10C4, 0x8218) }, /* Lipowsky Industrie Elektronik GmbH, HARP-1 */
119 { USB_DEVICE(0x10C4, 0x822B) }, /* Modem EDGE(GSM) Comander 2 */
120 …{ USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration mo…
121 { USB_DEVICE(0x10C4, 0x8281) }, /* Nanotec Plug & Drive */
122 { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */
123 { USB_DEVICE(0x10C4, 0x82EF) }, /* CESINEL FALCO 6105 AC Power Supply */
124 { USB_DEVICE(0x10C4, 0x82F1) }, /* CESINEL MEDCAL EFD Earth Fault Detector */
125 { USB_DEVICE(0x10C4, 0x82F2) }, /* CESINEL MEDCAL ST Network Analyzer */
126 { USB_DEVICE(0x10C4, 0x82F4) }, /* Starizona MicroTouch */
127 { USB_DEVICE(0x10C4, 0x82F9) }, /* Procyon AVS */
128 { USB_DEVICE(0x10C4, 0x8341) }, /* Siemens MC35PU GPRS Modem */
129 { USB_DEVICE(0x10C4, 0x8382) }, /* Cygnal Integrated Products, Inc. */
130 { USB_DEVICE(0x10C4, 0x83A8) }, /* Amber Wireless AMB2560 */
131 { USB_DEVICE(0x10C4, 0x83AA) }, /* Mark-10 Digital Force Gauge */
132 { USB_DEVICE(0x10C4, 0x83D8) }, /* DekTec DTA Plus VHF/UHF Booster/Attenuator */
133 { USB_DEVICE(0x10C4, 0x8411) }, /* Kyocera GPS Module */
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, 0x88FB) }, /* CESINEL MEDCAL STII Network Analyzer */
152 { USB_DEVICE(0x10C4, 0x8938) }, /* CESINEL MEDCAL S II Network Analyzer */
153 { USB_DEVICE(0x10C4, 0x8946) }, /* Ketra N1 Wireless Interface */
154 { USB_DEVICE(0x10C4, 0x8962) }, /* Brim Brothers charging dock */
155 { USB_DEVICE(0x10C4, 0x8977) }, /* CEL MeshWorks DevKit Device */
156 { USB_DEVICE(0x10C4, 0x8998) }, /* KCF Technologies PRN */
157 { USB_DEVICE(0x10C4, 0x89A4) }, /* CESINEL FTBC Flexible Thyristor Bridge Controller */
158 { USB_DEVICE(0x10C4, 0x89FB) }, /* Qivicon ZigBee USB Radio Stick */
159 { USB_DEVICE(0x10C4, 0x8A2A) }, /* HubZ dual ZigBee and Z-Wave dongle */
160 { USB_DEVICE(0x10C4, 0x8A5E) }, /* CEL EM3588 ZigBee USB Stick Long Range */
161 { USB_DEVICE(0x10C4, 0x8B34) }, /* Qivicon ZigBee USB Radio Stick */
162 { USB_DEVICE(0x10C4, 0xEA60) }, /* Silicon Labs factory default */
163 { USB_DEVICE(0x10C4, 0xEA61) }, /* Silicon Labs factory default */
164 { USB_DEVICE(0x10C4, 0xEA63) }, /* Silicon Labs Windows Update (CP2101-4/CP2102N) */
165 { USB_DEVICE(0x10C4, 0xEA70) }, /* Silicon Labs factory default */
166 { USB_DEVICE(0x10C4, 0xEA71) }, /* Infinity GPS-MIC-1 Radio Monophone */
167 { USB_DEVICE(0x10C4, 0xEA7A) }, /* Silicon Labs Windows Update (CP2105) */
168 { USB_DEVICE(0x10C4, 0xEA7B) }, /* Silicon Labs Windows Update (CP2108) */
169 { USB_DEVICE(0x10C4, 0xF001) }, /* Elan Digital Systems USBscope50 */
170 { USB_DEVICE(0x10C4, 0xF002) }, /* Elan Digital Systems USBwave12 */
171 { USB_DEVICE(0x10C4, 0xF003) }, /* Elan Digital Systems USBpulse100 */
172 { USB_DEVICE(0x10C4, 0xF004) }, /* Elan Digital Systems USBcount50 */
173 { USB_DEVICE(0x10C5, 0xEA61) }, /* Silicon Labs MobiData GPRS USB Modem */
174 { USB_DEVICE(0x10CE, 0xEA6A) }, /* Silicon Labs MobiData GPRS USB Modem 100EU */
175 { USB_DEVICE(0x12B8, 0xEC60) }, /* Link G4 ECU */
176 { USB_DEVICE(0x12B8, 0xEC62) }, /* Link G4+ ECU */
177 { USB_DEVICE(0x13AD, 0x9999) }, /* Baltech card reader */
178 { USB_DEVICE(0x1555, 0x0004) }, /* Owen AC4 USB-RS485 Converter */
179 { USB_DEVICE(0x155A, 0x1006) }, /* ELDAT Easywave RX09 */
180 { USB_DEVICE(0x166A, 0x0201) }, /* Clipsal 5500PACA C-Bus Pascal Automation Controller */
181 { USB_DEVICE(0x166A, 0x0301) }, /* Clipsal 5800PC C-Bus Wireless PC Interface */
182 { USB_DEVICE(0x166A, 0x0303) }, /* Clipsal 5500PCU C-Bus USB interface */
183 { USB_DEVICE(0x166A, 0x0304) }, /* Clipsal 5000CT2 C-Bus Black and White Touchscreen */
184 { USB_DEVICE(0x166A, 0x0305) }, /* Clipsal C-5000CT2 C-Bus Spectrum Colour Touchscreen */
185 { USB_DEVICE(0x166A, 0x0401) }, /* Clipsal L51xx C-Bus Architectural Dimmer */
186 { USB_DEVICE(0x166A, 0x0101) }, /* Clipsal 5560884 C-Bus Multi-room Audio Matrix Switcher */
187 { USB_DEVICE(0x16C0, 0x09B0) }, /* Lunatico Seletek */
188 { USB_DEVICE(0x16C0, 0x09B1) }, /* Lunatico Seletek */
189 { USB_DEVICE(0x16D6, 0x0001) }, /* Jablotron serial interface */
190 { USB_DEVICE(0x16DC, 0x0010) }, /* W-IE-NE-R Plein & Baus GmbH PL512 Power Supply */
191 …{ USB_DEVICE(0x16DC, 0x0011) }, /* W-IE-NE-R Plein & Baus GmbH RCM Remote Control for MARATON Powe…
192 { USB_DEVICE(0x16DC, 0x0012) }, /* W-IE-NE-R Plein & Baus GmbH MPOD Multi Channel Power Supply */
193 …{ USB_DEVICE(0x16DC, 0x0015) }, /* W-IE-NE-R Plein & Baus GmbH CML Control, Monitoring and Data Lo…
194 { USB_DEVICE(0x17A8, 0x0001) }, /* Kamstrup Optical Eye/3-wire */
195 { USB_DEVICE(0x17A8, 0x0005) }, /* Kamstrup M-Bus Master MultiPort 250D */
196 { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */
197 { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */
198 { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */
199 { USB_DEVICE(0x18EF, 0xE025) }, /* ELV Marble Sound Board 1 */
200 { USB_DEVICE(0x18EF, 0xE030) }, /* ELV ALC 8xxx Battery Charger */
201 { USB_DEVICE(0x18EF, 0xE032) }, /* ELV TFD500 Data Logger */
202 { USB_DEVICE(0x1901, 0x0190) }, /* GE B850 CP2105 Recorder interface */
203 { USB_DEVICE(0x1901, 0x0193) }, /* GE B650 CP2104 PMC interface */
204 { USB_DEVICE(0x1901, 0x0194) }, /* GE Healthcare Remote Alarm Box */
205 { USB_DEVICE(0x1901, 0x0195) }, /* GE B850/B650/B450 CP2104 DP UART interface */
206 { USB_DEVICE(0x1901, 0x0196) }, /* GE B850 CP2105 DP UART interface */
207 { USB_DEVICE(0x19CF, 0x3000) }, /* Parrot NMEA GPS Flight Recorder */
208 { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */
209 { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */
210 { USB_DEVICE(0x1BA4, 0x0002) }, /* Silicon Labs 358x factory default */
211 { USB_DEVICE(0x1BE3, 0x07A6) }, /* WAGO 750-923 USB Service Cable */
212 { USB_DEVICE(0x1D6F, 0x0010) }, /* Seluxit ApS RF Dongle */
213 { USB_DEVICE(0x1E29, 0x0102) }, /* Festo CPX-USB */
214 { USB_DEVICE(0x1E29, 0x0501) }, /* Festo CMSP */
215 { USB_DEVICE(0x1FB9, 0x0100) }, /* Lake Shore Model 121 Current Source */
216 { USB_DEVICE(0x1FB9, 0x0200) }, /* Lake Shore Model 218A Temperature Monitor */
217 { USB_DEVICE(0x1FB9, 0x0201) }, /* Lake Shore Model 219 Temperature Monitor */
218 { USB_DEVICE(0x1FB9, 0x0202) }, /* Lake Shore Model 233 Temperature Transmitter */
219 { USB_DEVICE(0x1FB9, 0x0203) }, /* Lake Shore Model 235 Temperature Transmitter */
220 { USB_DEVICE(0x1FB9, 0x0300) }, /* Lake Shore Model 335 Temperature Controller */
221 { USB_DEVICE(0x1FB9, 0x0301) }, /* Lake Shore Model 336 Temperature Controller */
222 { USB_DEVICE(0x1FB9, 0x0302) }, /* Lake Shore Model 350 Temperature Controller */
223 { USB_DEVICE(0x1FB9, 0x0303) }, /* Lake Shore Model 371 AC Bridge */
224 { USB_DEVICE(0x1FB9, 0x0400) }, /* Lake Shore Model 411 Handheld Gaussmeter */
225 { USB_DEVICE(0x1FB9, 0x0401) }, /* Lake Shore Model 425 Gaussmeter */
226 { USB_DEVICE(0x1FB9, 0x0402) }, /* Lake Shore Model 455A Gaussmeter */
227 { USB_DEVICE(0x1FB9, 0x0403) }, /* Lake Shore Model 475A Gaussmeter */
228 { USB_DEVICE(0x1FB9, 0x0404) }, /* Lake Shore Model 465 Three Axis Gaussmeter */
229 { USB_DEVICE(0x1FB9, 0x0600) }, /* Lake Shore Model 625A Superconducting MPS */
230 { USB_DEVICE(0x1FB9, 0x0601) }, /* Lake Shore Model 642A Magnet Power Supply */
231 { USB_DEVICE(0x1FB9, 0x0602) }, /* Lake Shore Model 648 Magnet Power Supply */
232 { USB_DEVICE(0x1FB9, 0x0700) }, /* Lake Shore Model 737 VSM Controller */
233 { USB_DEVICE(0x1FB9, 0x0701) }, /* Lake Shore Model 776 Hall Matrix */
234 { USB_DEVICE(0x2626, 0xEA60) }, /* Aruba Networks 7xxx USB Serial Console */
235 { USB_DEVICE(0x3195, 0xF190) }, /* Link Instruments MSO-19 */
236 { USB_DEVICE(0x3195, 0xF280) }, /* Link Instruments MSO-28 */
237 { USB_DEVICE(0x3195, 0xF281) }, /* Link Instruments MSO-28 */
238 { USB_DEVICE(0x3923, 0x7A0B) }, /* National Instruments USB Serial Console */
239 { USB_DEVICE(0x413C, 0x9500) }, /* DW700 GPS USB interface */
309 #define REQTYPE_HOST_TO_INTERFACE 0x41
310 #define REQTYPE_INTERFACE_TO_HOST 0xc1
311 #define REQTYPE_HOST_TO_DEVICE 0x40
312 #define REQTYPE_DEVICE_TO_HOST 0xc0
315 #define CP210X_IFC_ENABLE 0x00
316 #define CP210X_SET_BAUDDIV 0x01
317 #define CP210X_GET_BAUDDIV 0x02
318 #define CP210X_SET_LINE_CTL 0x03
319 #define CP210X_GET_LINE_CTL 0x04
320 #define CP210X_SET_BREAK 0x05
321 #define CP210X_IMM_CHAR 0x06
322 #define CP210X_SET_MHS 0x07
323 #define CP210X_GET_MDMSTS 0x08
324 #define CP210X_SET_XON 0x09
325 #define CP210X_SET_XOFF 0x0A
326 #define CP210X_SET_EVENTMASK 0x0B
327 #define CP210X_GET_EVENTMASK 0x0C
328 #define CP210X_SET_CHAR 0x0D
329 #define CP210X_GET_CHARS 0x0E
330 #define CP210X_GET_PROPS 0x0F
331 #define CP210X_GET_COMM_STATUS 0x10
332 #define CP210X_RESET 0x11
333 #define CP210X_PURGE 0x12
334 #define CP210X_SET_FLOW 0x13
335 #define CP210X_GET_FLOW 0x14
336 #define CP210X_EMBED_EVENTS 0x15
337 #define CP210X_GET_EVENTSTATE 0x16
338 #define CP210X_SET_CHARS 0x19
339 #define CP210X_GET_BAUDRATE 0x1D
340 #define CP210X_SET_BAUDRATE 0x1E
341 #define CP210X_VENDOR_SPECIFIC 0xFF
344 #define UART_ENABLE 0x0001
345 #define UART_DISABLE 0x0000
348 #define BAUD_RATE_GEN_FREQ 0x384000
351 #define BITS_DATA_MASK 0X0f00
352 #define BITS_DATA_5 0X0500
353 #define BITS_DATA_6 0X0600
354 #define BITS_DATA_7 0X0700
355 #define BITS_DATA_8 0X0800
356 #define BITS_DATA_9 0X0900
358 #define BITS_PARITY_MASK 0x00f0
359 #define BITS_PARITY_NONE 0x0000
360 #define BITS_PARITY_ODD 0x0010
361 #define BITS_PARITY_EVEN 0x0020
362 #define BITS_PARITY_MARK 0x0030
363 #define BITS_PARITY_SPACE 0x0040
365 #define BITS_STOP_MASK 0x000f
366 #define BITS_STOP_1 0x0000
367 #define BITS_STOP_1_5 0x0001
368 #define BITS_STOP_2 0x0002
371 #define BREAK_ON 0x0001
372 #define BREAK_OFF 0x0000
375 #define CONTROL_DTR 0x0001
376 #define CONTROL_RTS 0x0002
377 #define CONTROL_CTS 0x0010
378 #define CONTROL_DSR 0x0020
379 #define CONTROL_RING 0x0040
380 #define CONTROL_DCD 0x0080
381 #define CONTROL_WRITE_DTR 0x0100
382 #define CONTROL_WRITE_RTS 0x0200
385 #define CP210X_READ_2NCONFIG 0x000E
386 #define CP210X_READ_LATCH 0x00C2
387 #define CP210X_GET_PARTNUM 0x370B
388 #define CP210X_GET_PORTCONFIG 0x370C
389 #define CP210X_GET_DEVICEMODE 0x3711
390 #define CP210X_WRITE_LATCH 0x37E1
393 #define CP210X_PARTNUM_CP2101 0x01
394 #define CP210X_PARTNUM_CP2102 0x02
395 #define CP210X_PARTNUM_CP2103 0x03
396 #define CP210X_PARTNUM_CP2104 0x04
397 #define CP210X_PARTNUM_CP2105 0x05
398 #define CP210X_PARTNUM_CP2108 0x08
399 #define CP210X_PARTNUM_CP2102N_QFN28 0x20
400 #define CP210X_PARTNUM_CP2102N_QFN24 0x21
401 #define CP210X_PARTNUM_CP2102N_QFN20 0x22
402 #define CP210X_PARTNUM_UNKNOWN 0xFF
404 /* CP210X_GET_COMM_STATUS returns these 0x13 bytes */
418 * bit 0 or bit 2 clears the transmit queue and 1 or 3 receive.
421 #define PURGE_ALL 0x000f
424 #define CP210X_ESCCHAR 0xec
432 /* CP210X_GET_FLOW/CP210X_SET_FLOW read/write these 0x10 bytes */
441 #define CP210X_SERIAL_DTR_MASK GENMASK(1, 0)
449 #define CP210X_SERIAL_DTR_INACTIVE 0
454 #define CP210X_SERIAL_AUTO_TRANSMIT BIT(0)
464 #define CP210X_SERIAL_RTS_INACTIVE 0
468 /* CP210X_VENDOR_SPECIFIC, CP210X_GET_DEVICEMODE call reads these 0x2 bytes. */
474 #define CP210X_PIN_MODE_MODEM 0
475 #define CP210X_PIN_MODE_GPIO BIT(0)
478 * CP210X_VENDOR_SPECIFIC, CP210X_GET_PORTCONFIG call reads these 0xf bytes
493 * CP210X_VENDOR_SPECIFIC, CP210X_GET_PORTCONFIG call reads these 0xd bytes
516 #define CP2105_GPIO0_TXLED_MODE BIT(0)
521 #define CP2104_GPIO0_TXLED_MODE BIT(0)
531 /* CP210X_VENDOR_SPECIFIC, CP210X_WRITE_LATCH call writes these 0x2 bytes. */
567 memset(buf, 0, bufsize); in cp210x_read_reg_block()
571 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_reg_block()
572 req, REQTYPE_INTERFACE_TO_HOST, 0, in cp210x_read_reg_block()
577 result = 0; in cp210x_read_reg_block()
579 dev_err(&port->dev, "failed get req 0x%x size %d status: %d\n", in cp210x_read_reg_block()
581 if (result >= 0) in cp210x_read_reg_block()
588 memset(buf, 0, bufsize); in cp210x_read_reg_block()
610 *val = 0; in cp210x_read_u32_reg()
616 return 0; in cp210x_read_u32_reg()
633 return 0; in cp210x_read_u16_reg()
658 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_read_vendor_block()
664 result = 0; in cp210x_read_vendor_block()
667 "failed to get vendor val 0x%04x size %d: %d\n", val, in cp210x_read_vendor_block()
669 if (result >= 0) in cp210x_read_vendor_block()
688 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_u16_reg()
690 port_priv->bInterfaceNumber, NULL, 0, in cp210x_write_u16_reg()
692 if (result < 0) { in cp210x_write_u16_reg()
693 dev_err(&port->dev, "failed set request 0x%x status: %d\n", in cp210x_write_u16_reg()
716 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_reg_block()
717 req, REQTYPE_HOST_TO_INTERFACE, 0, in cp210x_write_reg_block()
724 result = 0; in cp210x_write_reg_block()
726 dev_err(&port->dev, "failed set req 0x%x size %d status: %d\n", in cp210x_write_reg_block()
728 if (result >= 0) in cp210x_write_reg_block()
762 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in cp210x_write_vendor_block()
770 result = 0; in cp210x_write_vendor_block()
773 "failed to set vendor val 0x%04x size %d: %d\n", val, in cp210x_write_vendor_block()
775 if (result >= 0) in cp210x_write_vendor_block()
785 * Write a known good value 0x800, read it back.
800 err = cp210x_write_u16_reg(port, CP210X_SET_LINE_CTL, 0x800); in cp210x_detect_swapped_line_ctl()
833 return 0; in cp210x_get_line_ctl()
862 return 0; in cp210x_open()
901 tty_insert_flip_char(&port->port, 0, TTY_OVERRUN); in cp210x_process_lsr()
918 case 0: in cp210x_process_char()
933 dev_err(&port->dev, "malformed event 0x%02x\n", *ch); in cp210x_process_char()
943 dev_dbg(&port->dev, "%s - lsr = 0x%02x, data = 0x%02x\n", in cp210x_process_char()
949 dev_dbg(&port->dev, "%s - lsr = 0x%02x\n", __func__, *ch); in cp210x_process_char()
955 dev_dbg(&port->dev, "%s - msr = 0x%02x\n", __func__, *ch); in cp210x_process_char()
976 for (i = 0; i < urb->actual_length; i++, ch++) { in cp210x_process_read_urb()
1005 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in cp210x_get_tx_queue_byte_count()
1007 0, port_priv->bInterfaceNumber, sts, sizeof(*sts), in cp210x_get_tx_queue_byte_count()
1011 result = 0; in cp210x_get_tx_queue_byte_count()
1014 if (result >= 0) in cp210x_get_tx_queue_byte_count()
1052 cflag = 0; in cp210x_get_termios()
1240 for (i = 0; i < ARRAY_SIZE(cp210x_an205_table1); ++i) { in cp210x_get_an205_rate()
1346 ret = cp210x_write_u16_reg(port, CP210X_EMBED_EVENTS, 0); in cp210x_disable_event_mode()
1445 dev_dbg(dev, "%s - read ulControlHandshake=0x%08x, ulFlowReplace=0x%08x\n", in cp210x_set_termios()
1469 dev_dbg(dev, "%s - write ulControlHandshake=0x%08x, ulFlowReplace=0x%08x\n", in cp210x_set_termios()
1497 u16 control = 0; in cp210x_tiocmset_port()
1516 dev_dbg(&port->dev, "%s - control = 0x%.4x\n", __func__, control); in cp210x_tiocmset_port()
1524 cp210x_tiocmset_port(p, TIOCM_DTR|TIOCM_RTS, 0); in cp210x_dtr_rts()
1526 cp210x_tiocmset_port(p, 0, TIOCM_DTR|TIOCM_RTS); in cp210x_dtr_rts()
1539 result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0) in cp210x_tiocmget()
1540 |((control & CONTROL_RTS) ? TIOCM_RTS : 0) in cp210x_tiocmget()
1541 |((control & CONTROL_CTS) ? TIOCM_CTS : 0) in cp210x_tiocmget()
1542 |((control & CONTROL_DSR) ? TIOCM_DSR : 0) in cp210x_tiocmget()
1543 |((control & CONTROL_RING)? TIOCM_RI : 0) in cp210x_tiocmget()
1544 |((control & CONTROL_DCD) ? TIOCM_CD : 0); in cp210x_tiocmget()
1546 dev_dbg(&port->dev, "%s - control = 0x%.2x\n", __func__, control); in cp210x_tiocmget()
1556 if (break_state == 0) in cp210x_break_ctl()
1574 return 0; in cp210x_gpio_request()
1595 if (result < 0) in cp210x_gpio_get()
1611 buf.state = 0; in cp210x_gpio_set()
1628 usb_sndctrlpipe(serial->dev, 0), in cp210x_gpio_set()
1633 NULL, 0, USB_CTRL_SET_TIMEOUT); in cp210x_gpio_set()
1638 if (result < 0) { in cp210x_gpio_set()
1671 return 0; in cp210x_gpio_direction_input()
1683 return 0; in cp210x_gpio_direction_output()
1696 return 0; in cp210x_gpio_set_config()
1700 return 0; in cp210x_gpio_set_config()
1724 if (result < 0) in cp2105_gpioconf_init()
1730 if (result < 0) in cp2105_gpioconf_init()
1734 if (intf_num == 0) { in cp2105_gpioconf_init()
1737 priv->gpio_altfunc = 0xff; in cp2105_gpioconf_init()
1738 return 0; in cp2105_gpioconf_init()
1749 priv->gpio_altfunc = 0xff; in cp2105_gpioconf_init()
1750 return 0; in cp2105_gpioconf_init()
1763 if (iface_config & CP2105_GPIO0_TXLED_MODE) /* GPIO 0 */ in cp2105_gpioconf_init()
1764 priv->gpio_altfunc |= BIT(0); in cp2105_gpioconf_init()
1770 priv->gpio_input = 0; in cp2105_gpioconf_init()
1772 return 0; in cp2105_gpioconf_init()
1787 if (result < 0) in cp2104_gpioconf_init()
1801 if (iface_config & CP2104_GPIO0_TXLED_MODE) /* GPIO 0 */ in cp2104_gpioconf_init()
1802 priv->gpio_altfunc |= BIT(0); in cp2104_gpioconf_init()
1813 for (i = 0; i < priv->gc.ngpio; ++i) { in cp2104_gpioconf_init()
1822 return 0; in cp2104_gpioconf_init()
1828 const u16 config_size = 0x02a6; in cp2102n_gpioconf_init()
1854 if (result < 0) { in cp2102n_gpioconf_init()
1867 if (config_version != 0x01) in cp2102n_gpioconf_init()
1876 gpio_latch = (gpio_rst_latch >> 3) & 0x0f; in cp2102n_gpioconf_init()
1878 /* 0 indicates open-drain mode, 1 is push-pull */ in cp2102n_gpioconf_init()
1879 priv->gpio_pushpull = (gpio_pushpull >> 3) & 0x0f; in cp2102n_gpioconf_init()
1881 /* 0 indicates GPIO mode, 1 is alternate function */ in cp2102n_gpioconf_init()
1882 priv->gpio_altfunc = (gpio_ctrl >> 2) & 0x0f; in cp2102n_gpioconf_init()
1905 for (i = 0; i < priv->gc.ngpio; ++i) { in cp2102n_gpioconf_init()
1914 return 0; in cp2102n_gpioconf_init()
1935 return 0; in cp210x_gpio_init()
1938 if (result < 0) in cp210x_gpio_init()
1975 return 0; in cp210x_gpio_init()
2005 return 0; in cp210x_port_probe()
2015 return 0; in cp210x_port_remove()
2041 if (cp210x_interface_num(serial) == 0) { in cp210x_init_max_speed()
2077 if (result < 0) { in cp210x_attach()
2088 if (result < 0) { in cp210x_attach()
2093 return 0; in cp210x_attach()