18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * USB Compaq iPAQ driver 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2001 - 2002 68c2ecf20Sopenharmony_ci * Ganesh Varadarajan <ganesh@veritas.com> 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <linux/kernel.h> 108c2ecf20Sopenharmony_ci#include <linux/errno.h> 118c2ecf20Sopenharmony_ci#include <linux/slab.h> 128c2ecf20Sopenharmony_ci#include <linux/tty.h> 138c2ecf20Sopenharmony_ci#include <linux/tty_driver.h> 148c2ecf20Sopenharmony_ci#include <linux/tty_flip.h> 158c2ecf20Sopenharmony_ci#include <linux/module.h> 168c2ecf20Sopenharmony_ci#include <linux/spinlock.h> 178c2ecf20Sopenharmony_ci#include <linux/uaccess.h> 188c2ecf20Sopenharmony_ci#include <linux/usb.h> 198c2ecf20Sopenharmony_ci#include <linux/usb/serial.h> 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define KP_RETRIES 100 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>" 248c2ecf20Sopenharmony_ci#define DRIVER_DESC "USB PocketPC PDA driver" 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_cistatic int connect_retries = KP_RETRIES; 278c2ecf20Sopenharmony_cistatic int initial_wait; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* Function prototypes for an ipaq */ 308c2ecf20Sopenharmony_cistatic int ipaq_open(struct tty_struct *tty, 318c2ecf20Sopenharmony_ci struct usb_serial_port *port); 328c2ecf20Sopenharmony_cistatic int ipaq_calc_num_ports(struct usb_serial *serial, 338c2ecf20Sopenharmony_ci struct usb_serial_endpoints *epds); 348c2ecf20Sopenharmony_cistatic int ipaq_startup(struct usb_serial *serial); 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_cistatic const struct usb_device_id ipaq_id_table[] = { 378c2ecf20Sopenharmony_ci { USB_DEVICE(0x0104, 0x00BE) }, /* Socket USB Sync */ 388c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1016) }, /* HP USB Sync */ 398c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1116) }, /* HP USB Sync 1611 */ 408c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1216) }, /* HP USB Sync 1612 */ 418c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2016) }, /* HP USB Sync 1620 */ 428c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2116) }, /* HP USB Sync 1621 */ 438c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2216) }, /* HP USB Sync 1622 */ 448c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3016) }, /* HP USB Sync 1630 */ 458c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3116) }, /* HP USB Sync 1631 */ 468c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3216) }, /* HP USB Sync 1632 */ 478c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4016) }, /* HP USB Sync 1640 */ 488c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4116) }, /* HP USB Sync 1641 */ 498c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4216) }, /* HP USB Sync 1642 */ 508c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5016) }, /* HP USB Sync 1650 */ 518c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5116) }, /* HP USB Sync 1651 */ 528c2ecf20Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5216) }, /* HP USB Sync 1652 */ 538c2ecf20Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D5) }, /* NEC USB Sync */ 548c2ecf20Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D6) }, /* NEC USB Sync */ 558c2ecf20Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D7) }, /* NEC USB Sync */ 568c2ecf20Sopenharmony_ci { USB_DEVICE(0x0409, 0x8024) }, /* NEC USB Sync */ 578c2ecf20Sopenharmony_ci { USB_DEVICE(0x0409, 0x8025) }, /* NEC USB Sync */ 588c2ecf20Sopenharmony_ci { USB_DEVICE(0x043E, 0x9C01) }, /* LGE USB Sync */ 598c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x00CE) }, /* Microsoft USB Sync */ 608c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0400) }, /* Windows Powered Pocket PC 2002 */ 618c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0401) }, /* Windows Powered Pocket PC 2002 */ 628c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0402) }, /* Windows Powered Pocket PC 2002 */ 638c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0403) }, /* Windows Powered Pocket PC 2002 */ 648c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0404) }, /* Windows Powered Pocket PC 2002 */ 658c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0405) }, /* Windows Powered Pocket PC 2002 */ 668c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0406) }, /* Windows Powered Pocket PC 2002 */ 678c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0407) }, /* Windows Powered Pocket PC 2002 */ 688c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0408) }, /* Windows Powered Pocket PC 2002 */ 698c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0409) }, /* Windows Powered Pocket PC 2002 */ 708c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040A) }, /* Windows Powered Pocket PC 2002 */ 718c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040B) }, /* Windows Powered Pocket PC 2002 */ 728c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040C) }, /* Windows Powered Pocket PC 2002 */ 738c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040D) }, /* Windows Powered Pocket PC 2002 */ 748c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040E) }, /* Windows Powered Pocket PC 2002 */ 758c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x040F) }, /* Windows Powered Pocket PC 2002 */ 768c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0410) }, /* Windows Powered Pocket PC 2002 */ 778c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0411) }, /* Windows Powered Pocket PC 2002 */ 788c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0412) }, /* Windows Powered Pocket PC 2002 */ 798c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0413) }, /* Windows Powered Pocket PC 2002 */ 808c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0414) }, /* Windows Powered Pocket PC 2002 */ 818c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0415) }, /* Windows Powered Pocket PC 2002 */ 828c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0416) }, /* Windows Powered Pocket PC 2002 */ 838c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0417) }, /* Windows Powered Pocket PC 2002 */ 848c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0432) }, /* Windows Powered Pocket PC 2003 */ 858c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0433) }, /* Windows Powered Pocket PC 2003 */ 868c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0434) }, /* Windows Powered Pocket PC 2003 */ 878c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0435) }, /* Windows Powered Pocket PC 2003 */ 888c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0436) }, /* Windows Powered Pocket PC 2003 */ 898c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0437) }, /* Windows Powered Pocket PC 2003 */ 908c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0438) }, /* Windows Powered Pocket PC 2003 */ 918c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0439) }, /* Windows Powered Pocket PC 2003 */ 928c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043A) }, /* Windows Powered Pocket PC 2003 */ 938c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043B) }, /* Windows Powered Pocket PC 2003 */ 948c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043C) }, /* Windows Powered Pocket PC 2003 */ 958c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043D) }, /* Windows Powered Pocket PC 2003 */ 968c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043E) }, /* Windows Powered Pocket PC 2003 */ 978c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x043F) }, /* Windows Powered Pocket PC 2003 */ 988c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0440) }, /* Windows Powered Pocket PC 2003 */ 998c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0441) }, /* Windows Powered Pocket PC 2003 */ 1008c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0442) }, /* Windows Powered Pocket PC 2003 */ 1018c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0443) }, /* Windows Powered Pocket PC 2003 */ 1028c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0444) }, /* Windows Powered Pocket PC 2003 */ 1038c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0445) }, /* Windows Powered Pocket PC 2003 */ 1048c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0446) }, /* Windows Powered Pocket PC 2003 */ 1058c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0447) }, /* Windows Powered Pocket PC 2003 */ 1068c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0448) }, /* Windows Powered Pocket PC 2003 */ 1078c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0449) }, /* Windows Powered Pocket PC 2003 */ 1088c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044A) }, /* Windows Powered Pocket PC 2003 */ 1098c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044B) }, /* Windows Powered Pocket PC 2003 */ 1108c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044C) }, /* Windows Powered Pocket PC 2003 */ 1118c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044D) }, /* Windows Powered Pocket PC 2003 */ 1128c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044E) }, /* Windows Powered Pocket PC 2003 */ 1138c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x044F) }, /* Windows Powered Pocket PC 2003 */ 1148c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0450) }, /* Windows Powered Pocket PC 2003 */ 1158c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0451) }, /* Windows Powered Pocket PC 2003 */ 1168c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0452) }, /* Windows Powered Pocket PC 2003 */ 1178c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0453) }, /* Windows Powered Pocket PC 2003 */ 1188c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0454) }, /* Windows Powered Pocket PC 2003 */ 1198c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0455) }, /* Windows Powered Pocket PC 2003 */ 1208c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0456) }, /* Windows Powered Pocket PC 2003 */ 1218c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0457) }, /* Windows Powered Pocket PC 2003 */ 1228c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0458) }, /* Windows Powered Pocket PC 2003 */ 1238c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0459) }, /* Windows Powered Pocket PC 2003 */ 1248c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045A) }, /* Windows Powered Pocket PC 2003 */ 1258c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045B) }, /* Windows Powered Pocket PC 2003 */ 1268c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045C) }, /* Windows Powered Pocket PC 2003 */ 1278c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045D) }, /* Windows Powered Pocket PC 2003 */ 1288c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045E) }, /* Windows Powered Pocket PC 2003 */ 1298c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x045F) }, /* Windows Powered Pocket PC 2003 */ 1308c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0460) }, /* Windows Powered Pocket PC 2003 */ 1318c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0461) }, /* Windows Powered Pocket PC 2003 */ 1328c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0462) }, /* Windows Powered Pocket PC 2003 */ 1338c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0463) }, /* Windows Powered Pocket PC 2003 */ 1348c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0464) }, /* Windows Powered Pocket PC 2003 */ 1358c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0465) }, /* Windows Powered Pocket PC 2003 */ 1368c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0466) }, /* Windows Powered Pocket PC 2003 */ 1378c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0467) }, /* Windows Powered Pocket PC 2003 */ 1388c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0468) }, /* Windows Powered Pocket PC 2003 */ 1398c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0469) }, /* Windows Powered Pocket PC 2003 */ 1408c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046A) }, /* Windows Powered Pocket PC 2003 */ 1418c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046B) }, /* Windows Powered Pocket PC 2003 */ 1428c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046C) }, /* Windows Powered Pocket PC 2003 */ 1438c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046D) }, /* Windows Powered Pocket PC 2003 */ 1448c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046E) }, /* Windows Powered Pocket PC 2003 */ 1458c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x046F) }, /* Windows Powered Pocket PC 2003 */ 1468c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0470) }, /* Windows Powered Pocket PC 2003 */ 1478c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0471) }, /* Windows Powered Pocket PC 2003 */ 1488c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0472) }, /* Windows Powered Pocket PC 2003 */ 1498c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0473) }, /* Windows Powered Pocket PC 2003 */ 1508c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0474) }, /* Windows Powered Pocket PC 2003 */ 1518c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0475) }, /* Windows Powered Pocket PC 2003 */ 1528c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0476) }, /* Windows Powered Pocket PC 2003 */ 1538c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0477) }, /* Windows Powered Pocket PC 2003 */ 1548c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0478) }, /* Windows Powered Pocket PC 2003 */ 1558c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x0479) }, /* Windows Powered Pocket PC 2003 */ 1568c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x047A) }, /* Windows Powered Pocket PC 2003 */ 1578c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x047B) }, /* Windows Powered Pocket PC 2003 */ 1588c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04C8) }, /* Windows Powered Smartphone 2002 */ 1598c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04C9) }, /* Windows Powered Smartphone 2002 */ 1608c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CA) }, /* Windows Powered Smartphone 2002 */ 1618c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CB) }, /* Windows Powered Smartphone 2002 */ 1628c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CC) }, /* Windows Powered Smartphone 2002 */ 1638c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CD) }, /* Windows Powered Smartphone 2002 */ 1648c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CE) }, /* Windows Powered Smartphone 2002 */ 1658c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D7) }, /* Windows Powered Smartphone 2003 */ 1668c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D8) }, /* Windows Powered Smartphone 2003 */ 1678c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D9) }, /* Windows Powered Smartphone 2003 */ 1688c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DA) }, /* Windows Powered Smartphone 2003 */ 1698c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DB) }, /* Windows Powered Smartphone 2003 */ 1708c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DC) }, /* Windows Powered Smartphone 2003 */ 1718c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DD) }, /* Windows Powered Smartphone 2003 */ 1728c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DE) }, /* Windows Powered Smartphone 2003 */ 1738c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DF) }, /* Windows Powered Smartphone 2003 */ 1748c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E0) }, /* Windows Powered Smartphone 2003 */ 1758c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E1) }, /* Windows Powered Smartphone 2003 */ 1768c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E2) }, /* Windows Powered Smartphone 2003 */ 1778c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E3) }, /* Windows Powered Smartphone 2003 */ 1788c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E4) }, /* Windows Powered Smartphone 2003 */ 1798c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E5) }, /* Windows Powered Smartphone 2003 */ 1808c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E6) }, /* Windows Powered Smartphone 2003 */ 1818c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E7) }, /* Windows Powered Smartphone 2003 */ 1828c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E8) }, /* Windows Powered Smartphone 2003 */ 1838c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E9) }, /* Windows Powered Smartphone 2003 */ 1848c2ecf20Sopenharmony_ci { USB_DEVICE(0x045E, 0x04EA) }, /* Windows Powered Smartphone 2003 */ 1858c2ecf20Sopenharmony_ci { USB_DEVICE(0x049F, 0x0003) }, /* Compaq iPAQ USB Sync */ 1868c2ecf20Sopenharmony_ci { USB_DEVICE(0x049F, 0x0032) }, /* Compaq iPAQ USB Sync */ 1878c2ecf20Sopenharmony_ci { USB_DEVICE(0x04A4, 0x0014) }, /* Hitachi USB Sync */ 1888c2ecf20Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0301) }, /* USB Sync 0301 */ 1898c2ecf20Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0302) }, /* USB Sync 0302 */ 1908c2ecf20Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0303) }, /* USB Sync 0303 */ 1918c2ecf20Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0306) }, /* GPS Pocket PC USB Sync */ 1928c2ecf20Sopenharmony_ci { USB_DEVICE(0x04B7, 0x0531) }, /* MyGuide 7000 XL USB Sync */ 1938c2ecf20Sopenharmony_ci { USB_DEVICE(0x04C5, 0x1058) }, /* FUJITSU USB Sync */ 1948c2ecf20Sopenharmony_ci { USB_DEVICE(0x04C5, 0x1079) }, /* FUJITSU USB Sync */ 1958c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DA, 0x2500) }, /* Panasonic USB Sync */ 1968c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9102) }, /* SHARP WS003SH USB Modem */ 1978c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9121) }, /* SHARP WS004SH USB Modem */ 1988c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9123) }, /* SHARP WS007SH USB Modem */ 1998c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9151) }, /* SHARP S01SH USB Modem */ 2008c2ecf20Sopenharmony_ci { USB_DEVICE(0x04DD, 0x91AC) }, /* SHARP WS011SH USB Modem */ 2018c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F00) }, /* Samsung NEXiO USB Sync */ 2028c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F01) }, /* Samsung NEXiO USB Sync */ 2038c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F02) }, /* Samsung NEXiO USB Sync */ 2048c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F03) }, /* Samsung NEXiO USB Sync */ 2058c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F04) }, /* Samsung NEXiO USB Sync */ 2068c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6611) }, /* Samsung MITs USB Sync */ 2078c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6613) }, /* Samsung MITs USB Sync */ 2088c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6615) }, /* Samsung MITs USB Sync */ 2098c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6617) }, /* Samsung MITs USB Sync */ 2108c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6619) }, /* Samsung MITs USB Sync */ 2118c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x661B) }, /* Samsung MITs USB Sync */ 2128c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x662E) }, /* Samsung MITs USB Sync */ 2138c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6630) }, /* Samsung MITs USB Sync */ 2148c2ecf20Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6632) }, /* Samsung MITs USB Sync */ 2158c2ecf20Sopenharmony_ci { USB_DEVICE(0x04f1, 0x3011) }, /* JVC USB Sync */ 2168c2ecf20Sopenharmony_ci { USB_DEVICE(0x04F1, 0x3012) }, /* JVC USB Sync */ 2178c2ecf20Sopenharmony_ci { USB_DEVICE(0x0502, 0x1631) }, /* c10 Series */ 2188c2ecf20Sopenharmony_ci { USB_DEVICE(0x0502, 0x1632) }, /* c20 Series */ 2198c2ecf20Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E1) }, /* Acer n10 Handheld USB Sync */ 2208c2ecf20Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E2) }, /* Acer n20 Handheld USB Sync */ 2218c2ecf20Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E3) }, /* Acer n30 Handheld USB Sync */ 2228c2ecf20Sopenharmony_ci { USB_DEVICE(0x0536, 0x01A0) }, /* HHP PDT */ 2238c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x0ED9) }, /* ViewSonic Color Pocket PC V35 */ 2248c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x1527) }, /* ViewSonic Color Pocket PC V36 */ 2258c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x1529) }, /* ViewSonic Color Pocket PC V37 */ 2268c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x152B) }, /* ViewSonic Color Pocket PC V38 */ 2278c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x152E) }, /* ViewSonic Pocket PC */ 2288c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x1921) }, /* ViewSonic Communicator Pocket PC */ 2298c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x1922) }, /* ViewSonic Smartphone */ 2308c2ecf20Sopenharmony_ci { USB_DEVICE(0x0543, 0x1923) }, /* ViewSonic Pocket PC V30 */ 2318c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2000) }, /* Symbol USB Sync */ 2328c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2001) }, /* Symbol USB Sync 0x2001 */ 2338c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2002) }, /* Symbol USB Sync 0x2002 */ 2348c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2003) }, /* Symbol USB Sync 0x2003 */ 2358c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2004) }, /* Symbol USB Sync 0x2004 */ 2368c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2005) }, /* Symbol USB Sync 0x2005 */ 2378c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2006) }, /* Symbol USB Sync 0x2006 */ 2388c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2007) }, /* Symbol USB Sync 0x2007 */ 2398c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2008) }, /* Symbol USB Sync 0x2008 */ 2408c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2009) }, /* Symbol USB Sync 0x2009 */ 2418c2ecf20Sopenharmony_ci { USB_DEVICE(0x05E0, 0x200A) }, /* Symbol USB Sync 0x200A */ 2428c2ecf20Sopenharmony_ci { USB_DEVICE(0x067E, 0x1001) }, /* Intermec Mobile Computer */ 2438c2ecf20Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2001) }, /* CASIO USB Sync 2001 */ 2448c2ecf20Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2002) }, /* CASIO USB Sync 2002 */ 2458c2ecf20Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2003) }, /* CASIO USB Sync 2003 */ 2468c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0700) }, /* TOSHIBA USB Sync 0700 */ 2478c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0705) }, /* TOSHIBA Pocket PC e310 */ 2488c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0706) }, /* TOSHIBA Pocket PC e740 */ 2498c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0707) }, /* TOSHIBA Pocket PC e330 Series */ 2508c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0708) }, /* TOSHIBA Pocket PC e350 Series */ 2518c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x0709) }, /* TOSHIBA Pocket PC e750 Series */ 2528c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x070A) }, /* TOSHIBA Pocket PC e400 Series */ 2538c2ecf20Sopenharmony_ci { USB_DEVICE(0x0930, 0x070B) }, /* TOSHIBA Pocket PC e800 Series */ 2548c2ecf20Sopenharmony_ci { USB_DEVICE(0x094B, 0x0001) }, /* Linkup Systems USB Sync */ 2558c2ecf20Sopenharmony_ci { USB_DEVICE(0x0960, 0x0065) }, /* BCOM USB Sync 0065 */ 2568c2ecf20Sopenharmony_ci { USB_DEVICE(0x0960, 0x0066) }, /* BCOM USB Sync 0066 */ 2578c2ecf20Sopenharmony_ci { USB_DEVICE(0x0960, 0x0067) }, /* BCOM USB Sync 0067 */ 2588c2ecf20Sopenharmony_ci { USB_DEVICE(0x0961, 0x0010) }, /* Portatec USB Sync */ 2598c2ecf20Sopenharmony_ci { USB_DEVICE(0x099E, 0x0052) }, /* Trimble GeoExplorer */ 2608c2ecf20Sopenharmony_ci { USB_DEVICE(0x099E, 0x4000) }, /* TDS Data Collector */ 2618c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4200) }, /* ASUS USB Sync */ 2628c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4201) }, /* ASUS USB Sync */ 2638c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4202) }, /* ASUS USB Sync */ 2648c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x420F) }, /* ASUS USB Sync */ 2658c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x9200) }, /* ASUS USB Sync */ 2668c2ecf20Sopenharmony_ci { USB_DEVICE(0x0B05, 0x9202) }, /* ASUS USB Sync */ 2678c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x00CE) }, /* HTC USB Sync */ 2688c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x00CF) }, /* HTC USB Modem */ 2698c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A01) }, /* PocketPC USB Sync */ 2708c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A02) }, /* PocketPC USB Sync */ 2718c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A03) }, /* PocketPC USB Sync */ 2728c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A04) }, /* PocketPC USB Sync */ 2738c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A05) }, /* PocketPC USB Sync */ 2748c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A06) }, /* PocketPC USB Sync */ 2758c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A07) }, /* PocketPC USB Sync */ 2768c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A08) }, /* PocketPC USB Sync */ 2778c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A09) }, /* PocketPC USB Sync */ 2788c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0A) }, /* PocketPC USB Sync */ 2798c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0B) }, /* PocketPC USB Sync */ 2808c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0C) }, /* PocketPC USB Sync */ 2818c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0D) }, /* PocketPC USB Sync */ 2828c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0E) }, /* PocketPC USB Sync */ 2838c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0F) }, /* PocketPC USB Sync */ 2848c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A10) }, /* PocketPC USB Sync */ 2858c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A11) }, /* PocketPC USB Sync */ 2868c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A12) }, /* PocketPC USB Sync */ 2878c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A13) }, /* PocketPC USB Sync */ 2888c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A14) }, /* PocketPC USB Sync */ 2898c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A15) }, /* PocketPC USB Sync */ 2908c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A16) }, /* PocketPC USB Sync */ 2918c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A17) }, /* PocketPC USB Sync */ 2928c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A18) }, /* PocketPC USB Sync */ 2938c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A19) }, /* PocketPC USB Sync */ 2948c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1A) }, /* PocketPC USB Sync */ 2958c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1B) }, /* PocketPC USB Sync */ 2968c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1C) }, /* PocketPC USB Sync */ 2978c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1D) }, /* PocketPC USB Sync */ 2988c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1E) }, /* PocketPC USB Sync */ 2998c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1F) }, /* PocketPC USB Sync */ 3008c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A20) }, /* PocketPC USB Sync */ 3018c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A21) }, /* PocketPC USB Sync */ 3028c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A22) }, /* PocketPC USB Sync */ 3038c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A23) }, /* PocketPC USB Sync */ 3048c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A24) }, /* PocketPC USB Sync */ 3058c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A25) }, /* PocketPC USB Sync */ 3068c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A26) }, /* PocketPC USB Sync */ 3078c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A27) }, /* PocketPC USB Sync */ 3088c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A28) }, /* PocketPC USB Sync */ 3098c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A29) }, /* PocketPC USB Sync */ 3108c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2A) }, /* PocketPC USB Sync */ 3118c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2B) }, /* PocketPC USB Sync */ 3128c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2C) }, /* PocketPC USB Sync */ 3138c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2D) }, /* PocketPC USB Sync */ 3148c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2E) }, /* PocketPC USB Sync */ 3158c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2F) }, /* PocketPC USB Sync */ 3168c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A30) }, /* PocketPC USB Sync */ 3178c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A31) }, /* PocketPC USB Sync */ 3188c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A32) }, /* PocketPC USB Sync */ 3198c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A33) }, /* PocketPC USB Sync */ 3208c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A34) }, /* PocketPC USB Sync */ 3218c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A35) }, /* PocketPC USB Sync */ 3228c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A36) }, /* PocketPC USB Sync */ 3238c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A37) }, /* PocketPC USB Sync */ 3248c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A38) }, /* PocketPC USB Sync */ 3258c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A39) }, /* PocketPC USB Sync */ 3268c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3A) }, /* PocketPC USB Sync */ 3278c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3B) }, /* PocketPC USB Sync */ 3288c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3C) }, /* PocketPC USB Sync */ 3298c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3D) }, /* PocketPC USB Sync */ 3308c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3E) }, /* PocketPC USB Sync */ 3318c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3F) }, /* PocketPC USB Sync */ 3328c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A40) }, /* PocketPC USB Sync */ 3338c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A41) }, /* PocketPC USB Sync */ 3348c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A42) }, /* PocketPC USB Sync */ 3358c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A43) }, /* PocketPC USB Sync */ 3368c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A44) }, /* PocketPC USB Sync */ 3378c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A45) }, /* PocketPC USB Sync */ 3388c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A46) }, /* PocketPC USB Sync */ 3398c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A47) }, /* PocketPC USB Sync */ 3408c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A48) }, /* PocketPC USB Sync */ 3418c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A49) }, /* PocketPC USB Sync */ 3428c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4A) }, /* PocketPC USB Sync */ 3438c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4B) }, /* PocketPC USB Sync */ 3448c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4C) }, /* PocketPC USB Sync */ 3458c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4D) }, /* PocketPC USB Sync */ 3468c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4E) }, /* PocketPC USB Sync */ 3478c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4F) }, /* PocketPC USB Sync */ 3488c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A50) }, /* HTC SmartPhone USB Sync */ 3498c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A51) }, /* SmartPhone USB Sync */ 3508c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A52) }, /* SmartPhone USB Sync */ 3518c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A53) }, /* SmartPhone USB Sync */ 3528c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A54) }, /* SmartPhone USB Sync */ 3538c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A55) }, /* SmartPhone USB Sync */ 3548c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A56) }, /* SmartPhone USB Sync */ 3558c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A57) }, /* SmartPhone USB Sync */ 3568c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A58) }, /* SmartPhone USB Sync */ 3578c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A59) }, /* SmartPhone USB Sync */ 3588c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5A) }, /* SmartPhone USB Sync */ 3598c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5B) }, /* SmartPhone USB Sync */ 3608c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5C) }, /* SmartPhone USB Sync */ 3618c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5D) }, /* SmartPhone USB Sync */ 3628c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5E) }, /* SmartPhone USB Sync */ 3638c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5F) }, /* SmartPhone USB Sync */ 3648c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A60) }, /* SmartPhone USB Sync */ 3658c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A61) }, /* SmartPhone USB Sync */ 3668c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A62) }, /* SmartPhone USB Sync */ 3678c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A63) }, /* SmartPhone USB Sync */ 3688c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A64) }, /* SmartPhone USB Sync */ 3698c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A65) }, /* SmartPhone USB Sync */ 3708c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A66) }, /* SmartPhone USB Sync */ 3718c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A67) }, /* SmartPhone USB Sync */ 3728c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A68) }, /* SmartPhone USB Sync */ 3738c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A69) }, /* SmartPhone USB Sync */ 3748c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6A) }, /* SmartPhone USB Sync */ 3758c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6B) }, /* SmartPhone USB Sync */ 3768c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6C) }, /* SmartPhone USB Sync */ 3778c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6D) }, /* SmartPhone USB Sync */ 3788c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6E) }, /* SmartPhone USB Sync */ 3798c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6F) }, /* SmartPhone USB Sync */ 3808c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A70) }, /* SmartPhone USB Sync */ 3818c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A71) }, /* SmartPhone USB Sync */ 3828c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A72) }, /* SmartPhone USB Sync */ 3838c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A73) }, /* SmartPhone USB Sync */ 3848c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A74) }, /* SmartPhone USB Sync */ 3858c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A75) }, /* SmartPhone USB Sync */ 3868c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A76) }, /* SmartPhone USB Sync */ 3878c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A77) }, /* SmartPhone USB Sync */ 3888c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A78) }, /* SmartPhone USB Sync */ 3898c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A79) }, /* SmartPhone USB Sync */ 3908c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7A) }, /* SmartPhone USB Sync */ 3918c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7B) }, /* SmartPhone USB Sync */ 3928c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7C) }, /* SmartPhone USB Sync */ 3938c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7D) }, /* SmartPhone USB Sync */ 3948c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7E) }, /* SmartPhone USB Sync */ 3958c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7F) }, /* SmartPhone USB Sync */ 3968c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A80) }, /* SmartPhone USB Sync */ 3978c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A81) }, /* SmartPhone USB Sync */ 3988c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A82) }, /* SmartPhone USB Sync */ 3998c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A83) }, /* SmartPhone USB Sync */ 4008c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A84) }, /* SmartPhone USB Sync */ 4018c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A85) }, /* SmartPhone USB Sync */ 4028c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A86) }, /* SmartPhone USB Sync */ 4038c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A87) }, /* SmartPhone USB Sync */ 4048c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A88) }, /* SmartPhone USB Sync */ 4058c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A89) }, /* SmartPhone USB Sync */ 4068c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8A) }, /* SmartPhone USB Sync */ 4078c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8B) }, /* SmartPhone USB Sync */ 4088c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8C) }, /* SmartPhone USB Sync */ 4098c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8D) }, /* SmartPhone USB Sync */ 4108c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8E) }, /* SmartPhone USB Sync */ 4118c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8F) }, /* SmartPhone USB Sync */ 4128c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A90) }, /* SmartPhone USB Sync */ 4138c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A91) }, /* SmartPhone USB Sync */ 4148c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A92) }, /* SmartPhone USB Sync */ 4158c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A93) }, /* SmartPhone USB Sync */ 4168c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A94) }, /* SmartPhone USB Sync */ 4178c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A95) }, /* SmartPhone USB Sync */ 4188c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A96) }, /* SmartPhone USB Sync */ 4198c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A97) }, /* SmartPhone USB Sync */ 4208c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A98) }, /* SmartPhone USB Sync */ 4218c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A99) }, /* SmartPhone USB Sync */ 4228c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9A) }, /* SmartPhone USB Sync */ 4238c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9B) }, /* SmartPhone USB Sync */ 4248c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9C) }, /* SmartPhone USB Sync */ 4258c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9D) }, /* SmartPhone USB Sync */ 4268c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9E) }, /* SmartPhone USB Sync */ 4278c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9F) }, /* SmartPhone USB Sync */ 4288c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0BCE) }, /* "High Tech Computer Corp" */ 4298c2ecf20Sopenharmony_ci { USB_DEVICE(0x0BF8, 0x1001) }, /* Fujitsu Siemens Computers USB Sync */ 4308c2ecf20Sopenharmony_ci { USB_DEVICE(0x0C44, 0x03A2) }, /* Motorola iDEN Smartphone */ 4318c2ecf20Sopenharmony_ci { USB_DEVICE(0x0C8E, 0x6000) }, /* Cesscom Luxian Series */ 4328c2ecf20Sopenharmony_ci { USB_DEVICE(0x0CAD, 0x9001) }, /* Motorola PowerPad Pocket PC Device */ 4338c2ecf20Sopenharmony_ci { USB_DEVICE(0x0F4E, 0x0200) }, /* Freedom Scientific USB Sync */ 4348c2ecf20Sopenharmony_ci { USB_DEVICE(0x0F98, 0x0201) }, /* Cyberbank USB Sync */ 4358c2ecf20Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3001) }, /* Wistron USB Sync */ 4368c2ecf20Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3002) }, /* Wistron USB Sync */ 4378c2ecf20Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3003) }, /* Wistron USB Sync */ 4388c2ecf20Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x4001) }, /* Wistron USB Sync */ 4398c2ecf20Sopenharmony_ci { USB_DEVICE(0x1066, 0x00CE) }, /* E-TEN USB Sync */ 4408c2ecf20Sopenharmony_ci { USB_DEVICE(0x1066, 0x0300) }, /* E-TEN P3XX Pocket PC */ 4418c2ecf20Sopenharmony_ci { USB_DEVICE(0x1066, 0x0500) }, /* E-TEN P5XX Pocket PC */ 4428c2ecf20Sopenharmony_ci { USB_DEVICE(0x1066, 0x0600) }, /* E-TEN P6XX Pocket PC */ 4438c2ecf20Sopenharmony_ci { USB_DEVICE(0x1066, 0x0700) }, /* E-TEN P7XX Pocket PC */ 4448c2ecf20Sopenharmony_ci { USB_DEVICE(0x1114, 0x0001) }, /* Psion Teklogix Sync 753x */ 4458c2ecf20Sopenharmony_ci { USB_DEVICE(0x1114, 0x0004) }, /* Psion Teklogix Sync netBookPro */ 4468c2ecf20Sopenharmony_ci { USB_DEVICE(0x1114, 0x0006) }, /* Psion Teklogix Sync 7525 */ 4478c2ecf20Sopenharmony_ci { USB_DEVICE(0x1182, 0x1388) }, /* VES USB Sync */ 4488c2ecf20Sopenharmony_ci { USB_DEVICE(0x11D9, 0x1002) }, /* Rugged Pocket PC 2003 */ 4498c2ecf20Sopenharmony_ci { USB_DEVICE(0x11D9, 0x1003) }, /* Rugged Pocket PC 2003 */ 4508c2ecf20Sopenharmony_ci { USB_DEVICE(0x1231, 0xCE01) }, /* USB Sync 03 */ 4518c2ecf20Sopenharmony_ci { USB_DEVICE(0x1231, 0xCE02) }, /* USB Sync 03 */ 4528c2ecf20Sopenharmony_ci { USB_DEVICE(0x1690, 0x0601) }, /* Askey USB Sync */ 4538c2ecf20Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4204) }, /* Motorola MPx200 Smartphone */ 4548c2ecf20Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4214) }, /* Motorola MPc GSM */ 4558c2ecf20Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4224) }, /* Motorola MPx220 Smartphone */ 4568c2ecf20Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4234) }, /* Motorola MPc CDMA */ 4578c2ecf20Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4244) }, /* Motorola MPx100 Smartphone */ 4588c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x011C) }, /* Mio DigiWalker PPC StrongARM */ 4598c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0326) }, /* Mio DigiWalker 338 */ 4608c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0426) }, /* Mio DigiWalker 338 */ 4618c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x043A) }, /* Mio DigiWalker USB Sync */ 4628c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x051C) }, /* MiTAC USB Sync 528 */ 4638c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x053A) }, /* Mio DigiWalker SmartPhone USB Sync */ 4648c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x071C) }, /* MiTAC USB Sync */ 4658c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0B1C) }, /* Generic PPC StrongARM */ 4668c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0E3A) }, /* Generic PPC USB Sync */ 4678c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0F1C) }, /* Itautec USB Sync */ 4688c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x0F3A) }, /* Generic SmartPhone USB Sync */ 4698c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x1326) }, /* Itautec USB Sync */ 4708c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x191C) }, /* YAKUMO USB Sync */ 4718c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x2326) }, /* Vobis USB Sync */ 4728c2ecf20Sopenharmony_ci { USB_DEVICE(0x3340, 0x3326) }, /* MEDION Winodws Moble USB Sync */ 4738c2ecf20Sopenharmony_ci { USB_DEVICE(0x3708, 0x20CE) }, /* Legend USB Sync */ 4748c2ecf20Sopenharmony_ci { USB_DEVICE(0x3708, 0x21CE) }, /* Lenovo USB Sync */ 4758c2ecf20Sopenharmony_ci { USB_DEVICE(0x4113, 0x0210) }, /* Mobile Media Technology USB Sync */ 4768c2ecf20Sopenharmony_ci { USB_DEVICE(0x4113, 0x0211) }, /* Mobile Media Technology USB Sync */ 4778c2ecf20Sopenharmony_ci { USB_DEVICE(0x4113, 0x0400) }, /* Mobile Media Technology USB Sync */ 4788c2ecf20Sopenharmony_ci { USB_DEVICE(0x4113, 0x0410) }, /* Mobile Media Technology USB Sync */ 4798c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4001) }, /* Dell Axim USB Sync */ 4808c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4002) }, /* Dell Axim USB Sync */ 4818c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4003) }, /* Dell Axim USB Sync */ 4828c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4004) }, /* Dell Axim USB Sync */ 4838c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4005) }, /* Dell Axim USB Sync */ 4848c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4006) }, /* Dell Axim USB Sync */ 4858c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4007) }, /* Dell Axim USB Sync */ 4868c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4008) }, /* Dell Axim USB Sync */ 4878c2ecf20Sopenharmony_ci { USB_DEVICE(0x413C, 0x4009) }, /* Dell Axim USB Sync */ 4888c2ecf20Sopenharmony_ci { USB_DEVICE(0x4505, 0x0010) }, /* Smartphone */ 4898c2ecf20Sopenharmony_ci { USB_DEVICE(0x5E04, 0xCE00) }, /* SAGEM Wireless Assistant */ 4908c2ecf20Sopenharmony_ci { } /* Terminating entry */ 4918c2ecf20Sopenharmony_ci}; 4928c2ecf20Sopenharmony_ci 4938c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(usb, ipaq_id_table); 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_ci 4968c2ecf20Sopenharmony_ci/* All of the device info needed for the Compaq iPAQ */ 4978c2ecf20Sopenharmony_cistatic struct usb_serial_driver ipaq_device = { 4988c2ecf20Sopenharmony_ci .driver = { 4998c2ecf20Sopenharmony_ci .owner = THIS_MODULE, 5008c2ecf20Sopenharmony_ci .name = "ipaq", 5018c2ecf20Sopenharmony_ci }, 5028c2ecf20Sopenharmony_ci .description = "PocketPC PDA", 5038c2ecf20Sopenharmony_ci .id_table = ipaq_id_table, 5048c2ecf20Sopenharmony_ci .bulk_in_size = 256, 5058c2ecf20Sopenharmony_ci .bulk_out_size = 256, 5068c2ecf20Sopenharmony_ci .open = ipaq_open, 5078c2ecf20Sopenharmony_ci .attach = ipaq_startup, 5088c2ecf20Sopenharmony_ci .calc_num_ports = ipaq_calc_num_ports, 5098c2ecf20Sopenharmony_ci}; 5108c2ecf20Sopenharmony_ci 5118c2ecf20Sopenharmony_cistatic struct usb_serial_driver * const serial_drivers[] = { 5128c2ecf20Sopenharmony_ci &ipaq_device, NULL 5138c2ecf20Sopenharmony_ci}; 5148c2ecf20Sopenharmony_ci 5158c2ecf20Sopenharmony_cistatic int ipaq_open(struct tty_struct *tty, 5168c2ecf20Sopenharmony_ci struct usb_serial_port *port) 5178c2ecf20Sopenharmony_ci{ 5188c2ecf20Sopenharmony_ci struct usb_serial *serial = port->serial; 5198c2ecf20Sopenharmony_ci int result = 0; 5208c2ecf20Sopenharmony_ci int retries = connect_retries; 5218c2ecf20Sopenharmony_ci 5228c2ecf20Sopenharmony_ci msleep(1000*initial_wait); 5238c2ecf20Sopenharmony_ci 5248c2ecf20Sopenharmony_ci /* 5258c2ecf20Sopenharmony_ci * Send out control message observed in win98 sniffs. Not sure what 5268c2ecf20Sopenharmony_ci * it does, but from empirical observations, it seems that the device 5278c2ecf20Sopenharmony_ci * will start the chat sequence once one of these messages gets 5288c2ecf20Sopenharmony_ci * through. Since this has a reasonably high failure rate, we retry 5298c2ecf20Sopenharmony_ci * several times. 5308c2ecf20Sopenharmony_ci */ 5318c2ecf20Sopenharmony_ci while (retries) { 5328c2ecf20Sopenharmony_ci retries--; 5338c2ecf20Sopenharmony_ci result = usb_control_msg(serial->dev, 5348c2ecf20Sopenharmony_ci usb_sndctrlpipe(serial->dev, 0), 0x22, 0x21, 5358c2ecf20Sopenharmony_ci 0x1, 0, NULL, 0, 100); 5368c2ecf20Sopenharmony_ci if (!result) 5378c2ecf20Sopenharmony_ci break; 5388c2ecf20Sopenharmony_ci 5398c2ecf20Sopenharmony_ci msleep(1000); 5408c2ecf20Sopenharmony_ci } 5418c2ecf20Sopenharmony_ci if (!retries && result) { 5428c2ecf20Sopenharmony_ci dev_err(&port->dev, "%s - failed doing control urb, error %d\n", 5438c2ecf20Sopenharmony_ci __func__, result); 5448c2ecf20Sopenharmony_ci return result; 5458c2ecf20Sopenharmony_ci } 5468c2ecf20Sopenharmony_ci 5478c2ecf20Sopenharmony_ci return usb_serial_generic_open(tty, port); 5488c2ecf20Sopenharmony_ci} 5498c2ecf20Sopenharmony_ci 5508c2ecf20Sopenharmony_cistatic int ipaq_calc_num_ports(struct usb_serial *serial, 5518c2ecf20Sopenharmony_ci struct usb_serial_endpoints *epds) 5528c2ecf20Sopenharmony_ci{ 5538c2ecf20Sopenharmony_ci /* 5548c2ecf20Sopenharmony_ci * Some of the devices in ipaq_id_table[] are composite, and we 5558c2ecf20Sopenharmony_ci * shouldn't bind to all the interfaces. This test will rule out 5568c2ecf20Sopenharmony_ci * some obviously invalid possibilities. 5578c2ecf20Sopenharmony_ci */ 5588c2ecf20Sopenharmony_ci if (epds->num_bulk_in == 0 || epds->num_bulk_out == 0) 5598c2ecf20Sopenharmony_ci return -ENODEV; 5608c2ecf20Sopenharmony_ci 5618c2ecf20Sopenharmony_ci /* 5628c2ecf20Sopenharmony_ci * A few devices have four endpoints, seemingly Yakuma devices, and 5638c2ecf20Sopenharmony_ci * we need the second pair. 5648c2ecf20Sopenharmony_ci */ 5658c2ecf20Sopenharmony_ci if (epds->num_bulk_in > 1 && epds->num_bulk_out > 1) { 5668c2ecf20Sopenharmony_ci epds->bulk_in[0] = epds->bulk_in[1]; 5678c2ecf20Sopenharmony_ci epds->bulk_out[0] = epds->bulk_out[1]; 5688c2ecf20Sopenharmony_ci } 5698c2ecf20Sopenharmony_ci 5708c2ecf20Sopenharmony_ci /* 5718c2ecf20Sopenharmony_ci * Other devices have 3 endpoints, but we only use the first bulk in 5728c2ecf20Sopenharmony_ci * and out endpoints. 5738c2ecf20Sopenharmony_ci */ 5748c2ecf20Sopenharmony_ci epds->num_bulk_in = 1; 5758c2ecf20Sopenharmony_ci epds->num_bulk_out = 1; 5768c2ecf20Sopenharmony_ci 5778c2ecf20Sopenharmony_ci return 1; 5788c2ecf20Sopenharmony_ci} 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_cistatic int ipaq_startup(struct usb_serial *serial) 5818c2ecf20Sopenharmony_ci{ 5828c2ecf20Sopenharmony_ci if (serial->dev->actconfig->desc.bConfigurationValue != 1) { 5838c2ecf20Sopenharmony_ci /* 5848c2ecf20Sopenharmony_ci * FIXME: HP iPaq rx3715, possibly others, have 1 config that 5858c2ecf20Sopenharmony_ci * is labeled as 2 5868c2ecf20Sopenharmony_ci */ 5878c2ecf20Sopenharmony_ci 5888c2ecf20Sopenharmony_ci dev_err(&serial->dev->dev, "active config #%d != 1 ??\n", 5898c2ecf20Sopenharmony_ci serial->dev->actconfig->desc.bConfigurationValue); 5908c2ecf20Sopenharmony_ci return -ENODEV; 5918c2ecf20Sopenharmony_ci } 5928c2ecf20Sopenharmony_ci 5938c2ecf20Sopenharmony_ci return usb_reset_configuration(serial->dev); 5948c2ecf20Sopenharmony_ci} 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_cimodule_usb_serial_driver(serial_drivers, ipaq_id_table); 5978c2ecf20Sopenharmony_ci 5988c2ecf20Sopenharmony_ciMODULE_AUTHOR(DRIVER_AUTHOR); 5998c2ecf20Sopenharmony_ciMODULE_DESCRIPTION(DRIVER_DESC); 6008c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL"); 6018c2ecf20Sopenharmony_ci 6028c2ecf20Sopenharmony_cimodule_param(connect_retries, int, S_IRUGO|S_IWUSR); 6038c2ecf20Sopenharmony_ciMODULE_PARM_DESC(connect_retries, 6048c2ecf20Sopenharmony_ci "Maximum number of connect retries (one second each)"); 6058c2ecf20Sopenharmony_ci 6068c2ecf20Sopenharmony_cimodule_param(initial_wait, int, S_IRUGO|S_IWUSR); 6078c2ecf20Sopenharmony_ciMODULE_PARM_DESC(initial_wait, 6088c2ecf20Sopenharmony_ci "Time to wait before attempting a connection (in seconds)"); 609