162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * USB Compaq iPAQ driver 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2001 - 2002 662306a36Sopenharmony_ci * Ganesh Varadarajan <ganesh@veritas.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/kernel.h> 1062306a36Sopenharmony_ci#include <linux/errno.h> 1162306a36Sopenharmony_ci#include <linux/slab.h> 1262306a36Sopenharmony_ci#include <linux/tty.h> 1362306a36Sopenharmony_ci#include <linux/tty_driver.h> 1462306a36Sopenharmony_ci#include <linux/tty_flip.h> 1562306a36Sopenharmony_ci#include <linux/module.h> 1662306a36Sopenharmony_ci#include <linux/spinlock.h> 1762306a36Sopenharmony_ci#include <linux/uaccess.h> 1862306a36Sopenharmony_ci#include <linux/usb.h> 1962306a36Sopenharmony_ci#include <linux/usb/serial.h> 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#define KP_RETRIES 100 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>" 2462306a36Sopenharmony_ci#define DRIVER_DESC "USB PocketPC PDA driver" 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_cistatic int connect_retries = KP_RETRIES; 2762306a36Sopenharmony_cistatic int initial_wait; 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* Function prototypes for an ipaq */ 3062306a36Sopenharmony_cistatic int ipaq_open(struct tty_struct *tty, 3162306a36Sopenharmony_ci struct usb_serial_port *port); 3262306a36Sopenharmony_cistatic int ipaq_calc_num_ports(struct usb_serial *serial, 3362306a36Sopenharmony_ci struct usb_serial_endpoints *epds); 3462306a36Sopenharmony_cistatic int ipaq_startup(struct usb_serial *serial); 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_cistatic const struct usb_device_id ipaq_id_table[] = { 3762306a36Sopenharmony_ci { USB_DEVICE(0x0104, 0x00BE) }, /* Socket USB Sync */ 3862306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1016) }, /* HP USB Sync */ 3962306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1116) }, /* HP USB Sync 1611 */ 4062306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x1216) }, /* HP USB Sync 1612 */ 4162306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2016) }, /* HP USB Sync 1620 */ 4262306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2116) }, /* HP USB Sync 1621 */ 4362306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x2216) }, /* HP USB Sync 1622 */ 4462306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3016) }, /* HP USB Sync 1630 */ 4562306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3116) }, /* HP USB Sync 1631 */ 4662306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x3216) }, /* HP USB Sync 1632 */ 4762306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4016) }, /* HP USB Sync 1640 */ 4862306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4116) }, /* HP USB Sync 1641 */ 4962306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x4216) }, /* HP USB Sync 1642 */ 5062306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5016) }, /* HP USB Sync 1650 */ 5162306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5116) }, /* HP USB Sync 1651 */ 5262306a36Sopenharmony_ci { USB_DEVICE(0x03F0, 0x5216) }, /* HP USB Sync 1652 */ 5362306a36Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D5) }, /* NEC USB Sync */ 5462306a36Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D6) }, /* NEC USB Sync */ 5562306a36Sopenharmony_ci { USB_DEVICE(0x0409, 0x00D7) }, /* NEC USB Sync */ 5662306a36Sopenharmony_ci { USB_DEVICE(0x0409, 0x8024) }, /* NEC USB Sync */ 5762306a36Sopenharmony_ci { USB_DEVICE(0x0409, 0x8025) }, /* NEC USB Sync */ 5862306a36Sopenharmony_ci { USB_DEVICE(0x043E, 0x9C01) }, /* LGE USB Sync */ 5962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x00CE) }, /* Microsoft USB Sync */ 6062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0400) }, /* Windows Powered Pocket PC 2002 */ 6162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0401) }, /* Windows Powered Pocket PC 2002 */ 6262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0402) }, /* Windows Powered Pocket PC 2002 */ 6362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0403) }, /* Windows Powered Pocket PC 2002 */ 6462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0404) }, /* Windows Powered Pocket PC 2002 */ 6562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0405) }, /* Windows Powered Pocket PC 2002 */ 6662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0406) }, /* Windows Powered Pocket PC 2002 */ 6762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0407) }, /* Windows Powered Pocket PC 2002 */ 6862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0408) }, /* Windows Powered Pocket PC 2002 */ 6962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0409) }, /* Windows Powered Pocket PC 2002 */ 7062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040A) }, /* Windows Powered Pocket PC 2002 */ 7162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040B) }, /* Windows Powered Pocket PC 2002 */ 7262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040C) }, /* Windows Powered Pocket PC 2002 */ 7362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040D) }, /* Windows Powered Pocket PC 2002 */ 7462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040E) }, /* Windows Powered Pocket PC 2002 */ 7562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x040F) }, /* Windows Powered Pocket PC 2002 */ 7662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0410) }, /* Windows Powered Pocket PC 2002 */ 7762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0411) }, /* Windows Powered Pocket PC 2002 */ 7862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0412) }, /* Windows Powered Pocket PC 2002 */ 7962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0413) }, /* Windows Powered Pocket PC 2002 */ 8062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0414) }, /* Windows Powered Pocket PC 2002 */ 8162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0415) }, /* Windows Powered Pocket PC 2002 */ 8262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0416) }, /* Windows Powered Pocket PC 2002 */ 8362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0417) }, /* Windows Powered Pocket PC 2002 */ 8462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0432) }, /* Windows Powered Pocket PC 2003 */ 8562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0433) }, /* Windows Powered Pocket PC 2003 */ 8662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0434) }, /* Windows Powered Pocket PC 2003 */ 8762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0435) }, /* Windows Powered Pocket PC 2003 */ 8862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0436) }, /* Windows Powered Pocket PC 2003 */ 8962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0437) }, /* Windows Powered Pocket PC 2003 */ 9062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0438) }, /* Windows Powered Pocket PC 2003 */ 9162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0439) }, /* Windows Powered Pocket PC 2003 */ 9262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043A) }, /* Windows Powered Pocket PC 2003 */ 9362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043B) }, /* Windows Powered Pocket PC 2003 */ 9462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043C) }, /* Windows Powered Pocket PC 2003 */ 9562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043D) }, /* Windows Powered Pocket PC 2003 */ 9662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043E) }, /* Windows Powered Pocket PC 2003 */ 9762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x043F) }, /* Windows Powered Pocket PC 2003 */ 9862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0440) }, /* Windows Powered Pocket PC 2003 */ 9962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0441) }, /* Windows Powered Pocket PC 2003 */ 10062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0442) }, /* Windows Powered Pocket PC 2003 */ 10162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0443) }, /* Windows Powered Pocket PC 2003 */ 10262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0444) }, /* Windows Powered Pocket PC 2003 */ 10362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0445) }, /* Windows Powered Pocket PC 2003 */ 10462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0446) }, /* Windows Powered Pocket PC 2003 */ 10562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0447) }, /* Windows Powered Pocket PC 2003 */ 10662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0448) }, /* Windows Powered Pocket PC 2003 */ 10762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0449) }, /* Windows Powered Pocket PC 2003 */ 10862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044A) }, /* Windows Powered Pocket PC 2003 */ 10962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044B) }, /* Windows Powered Pocket PC 2003 */ 11062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044C) }, /* Windows Powered Pocket PC 2003 */ 11162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044D) }, /* Windows Powered Pocket PC 2003 */ 11262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044E) }, /* Windows Powered Pocket PC 2003 */ 11362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x044F) }, /* Windows Powered Pocket PC 2003 */ 11462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0450) }, /* Windows Powered Pocket PC 2003 */ 11562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0451) }, /* Windows Powered Pocket PC 2003 */ 11662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0452) }, /* Windows Powered Pocket PC 2003 */ 11762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0453) }, /* Windows Powered Pocket PC 2003 */ 11862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0454) }, /* Windows Powered Pocket PC 2003 */ 11962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0455) }, /* Windows Powered Pocket PC 2003 */ 12062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0456) }, /* Windows Powered Pocket PC 2003 */ 12162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0457) }, /* Windows Powered Pocket PC 2003 */ 12262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0458) }, /* Windows Powered Pocket PC 2003 */ 12362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0459) }, /* Windows Powered Pocket PC 2003 */ 12462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045A) }, /* Windows Powered Pocket PC 2003 */ 12562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045B) }, /* Windows Powered Pocket PC 2003 */ 12662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045C) }, /* Windows Powered Pocket PC 2003 */ 12762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045D) }, /* Windows Powered Pocket PC 2003 */ 12862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045E) }, /* Windows Powered Pocket PC 2003 */ 12962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x045F) }, /* Windows Powered Pocket PC 2003 */ 13062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0460) }, /* Windows Powered Pocket PC 2003 */ 13162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0461) }, /* Windows Powered Pocket PC 2003 */ 13262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0462) }, /* Windows Powered Pocket PC 2003 */ 13362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0463) }, /* Windows Powered Pocket PC 2003 */ 13462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0464) }, /* Windows Powered Pocket PC 2003 */ 13562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0465) }, /* Windows Powered Pocket PC 2003 */ 13662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0466) }, /* Windows Powered Pocket PC 2003 */ 13762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0467) }, /* Windows Powered Pocket PC 2003 */ 13862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0468) }, /* Windows Powered Pocket PC 2003 */ 13962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0469) }, /* Windows Powered Pocket PC 2003 */ 14062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046A) }, /* Windows Powered Pocket PC 2003 */ 14162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046B) }, /* Windows Powered Pocket PC 2003 */ 14262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046C) }, /* Windows Powered Pocket PC 2003 */ 14362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046D) }, /* Windows Powered Pocket PC 2003 */ 14462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046E) }, /* Windows Powered Pocket PC 2003 */ 14562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x046F) }, /* Windows Powered Pocket PC 2003 */ 14662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0470) }, /* Windows Powered Pocket PC 2003 */ 14762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0471) }, /* Windows Powered Pocket PC 2003 */ 14862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0472) }, /* Windows Powered Pocket PC 2003 */ 14962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0473) }, /* Windows Powered Pocket PC 2003 */ 15062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0474) }, /* Windows Powered Pocket PC 2003 */ 15162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0475) }, /* Windows Powered Pocket PC 2003 */ 15262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0476) }, /* Windows Powered Pocket PC 2003 */ 15362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0477) }, /* Windows Powered Pocket PC 2003 */ 15462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0478) }, /* Windows Powered Pocket PC 2003 */ 15562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x0479) }, /* Windows Powered Pocket PC 2003 */ 15662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x047A) }, /* Windows Powered Pocket PC 2003 */ 15762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x047B) }, /* Windows Powered Pocket PC 2003 */ 15862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04C8) }, /* Windows Powered Smartphone 2002 */ 15962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04C9) }, /* Windows Powered Smartphone 2002 */ 16062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CA) }, /* Windows Powered Smartphone 2002 */ 16162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CB) }, /* Windows Powered Smartphone 2002 */ 16262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CC) }, /* Windows Powered Smartphone 2002 */ 16362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CD) }, /* Windows Powered Smartphone 2002 */ 16462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04CE) }, /* Windows Powered Smartphone 2002 */ 16562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D7) }, /* Windows Powered Smartphone 2003 */ 16662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D8) }, /* Windows Powered Smartphone 2003 */ 16762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04D9) }, /* Windows Powered Smartphone 2003 */ 16862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DA) }, /* Windows Powered Smartphone 2003 */ 16962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DB) }, /* Windows Powered Smartphone 2003 */ 17062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DC) }, /* Windows Powered Smartphone 2003 */ 17162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DD) }, /* Windows Powered Smartphone 2003 */ 17262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DE) }, /* Windows Powered Smartphone 2003 */ 17362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04DF) }, /* Windows Powered Smartphone 2003 */ 17462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E0) }, /* Windows Powered Smartphone 2003 */ 17562306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E1) }, /* Windows Powered Smartphone 2003 */ 17662306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E2) }, /* Windows Powered Smartphone 2003 */ 17762306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E3) }, /* Windows Powered Smartphone 2003 */ 17862306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E4) }, /* Windows Powered Smartphone 2003 */ 17962306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E5) }, /* Windows Powered Smartphone 2003 */ 18062306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E6) }, /* Windows Powered Smartphone 2003 */ 18162306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E7) }, /* Windows Powered Smartphone 2003 */ 18262306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E8) }, /* Windows Powered Smartphone 2003 */ 18362306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04E9) }, /* Windows Powered Smartphone 2003 */ 18462306a36Sopenharmony_ci { USB_DEVICE(0x045E, 0x04EA) }, /* Windows Powered Smartphone 2003 */ 18562306a36Sopenharmony_ci { USB_DEVICE(0x049F, 0x0003) }, /* Compaq iPAQ USB Sync */ 18662306a36Sopenharmony_ci { USB_DEVICE(0x049F, 0x0032) }, /* Compaq iPAQ USB Sync */ 18762306a36Sopenharmony_ci { USB_DEVICE(0x04A4, 0x0014) }, /* Hitachi USB Sync */ 18862306a36Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0301) }, /* USB Sync 0301 */ 18962306a36Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0302) }, /* USB Sync 0302 */ 19062306a36Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0303) }, /* USB Sync 0303 */ 19162306a36Sopenharmony_ci { USB_DEVICE(0x04AD, 0x0306) }, /* GPS Pocket PC USB Sync */ 19262306a36Sopenharmony_ci { USB_DEVICE(0x04B7, 0x0531) }, /* MyGuide 7000 XL USB Sync */ 19362306a36Sopenharmony_ci { USB_DEVICE(0x04C5, 0x1058) }, /* FUJITSU USB Sync */ 19462306a36Sopenharmony_ci { USB_DEVICE(0x04C5, 0x1079) }, /* FUJITSU USB Sync */ 19562306a36Sopenharmony_ci { USB_DEVICE(0x04DA, 0x2500) }, /* Panasonic USB Sync */ 19662306a36Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9102) }, /* SHARP WS003SH USB Modem */ 19762306a36Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9121) }, /* SHARP WS004SH USB Modem */ 19862306a36Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9123) }, /* SHARP WS007SH USB Modem */ 19962306a36Sopenharmony_ci { USB_DEVICE(0x04DD, 0x9151) }, /* SHARP S01SH USB Modem */ 20062306a36Sopenharmony_ci { USB_DEVICE(0x04DD, 0x91AC) }, /* SHARP WS011SH USB Modem */ 20162306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F00) }, /* Samsung NEXiO USB Sync */ 20262306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F01) }, /* Samsung NEXiO USB Sync */ 20362306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F02) }, /* Samsung NEXiO USB Sync */ 20462306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F03) }, /* Samsung NEXiO USB Sync */ 20562306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x5F04) }, /* Samsung NEXiO USB Sync */ 20662306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6611) }, /* Samsung MITs USB Sync */ 20762306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6613) }, /* Samsung MITs USB Sync */ 20862306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6615) }, /* Samsung MITs USB Sync */ 20962306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6617) }, /* Samsung MITs USB Sync */ 21062306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6619) }, /* Samsung MITs USB Sync */ 21162306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x661B) }, /* Samsung MITs USB Sync */ 21262306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x662E) }, /* Samsung MITs USB Sync */ 21362306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6630) }, /* Samsung MITs USB Sync */ 21462306a36Sopenharmony_ci { USB_DEVICE(0x04E8, 0x6632) }, /* Samsung MITs USB Sync */ 21562306a36Sopenharmony_ci { USB_DEVICE(0x04f1, 0x3011) }, /* JVC USB Sync */ 21662306a36Sopenharmony_ci { USB_DEVICE(0x04F1, 0x3012) }, /* JVC USB Sync */ 21762306a36Sopenharmony_ci { USB_DEVICE(0x0502, 0x1631) }, /* c10 Series */ 21862306a36Sopenharmony_ci { USB_DEVICE(0x0502, 0x1632) }, /* c20 Series */ 21962306a36Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E1) }, /* Acer n10 Handheld USB Sync */ 22062306a36Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E2) }, /* Acer n20 Handheld USB Sync */ 22162306a36Sopenharmony_ci { USB_DEVICE(0x0502, 0x16E3) }, /* Acer n30 Handheld USB Sync */ 22262306a36Sopenharmony_ci { USB_DEVICE(0x0536, 0x01A0) }, /* HHP PDT */ 22362306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x0ED9) }, /* ViewSonic Color Pocket PC V35 */ 22462306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x1527) }, /* ViewSonic Color Pocket PC V36 */ 22562306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x1529) }, /* ViewSonic Color Pocket PC V37 */ 22662306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x152B) }, /* ViewSonic Color Pocket PC V38 */ 22762306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x152E) }, /* ViewSonic Pocket PC */ 22862306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x1921) }, /* ViewSonic Communicator Pocket PC */ 22962306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x1922) }, /* ViewSonic Smartphone */ 23062306a36Sopenharmony_ci { USB_DEVICE(0x0543, 0x1923) }, /* ViewSonic Pocket PC V30 */ 23162306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2000) }, /* Symbol USB Sync */ 23262306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2001) }, /* Symbol USB Sync 0x2001 */ 23362306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2002) }, /* Symbol USB Sync 0x2002 */ 23462306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2003) }, /* Symbol USB Sync 0x2003 */ 23562306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2004) }, /* Symbol USB Sync 0x2004 */ 23662306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2005) }, /* Symbol USB Sync 0x2005 */ 23762306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2006) }, /* Symbol USB Sync 0x2006 */ 23862306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2007) }, /* Symbol USB Sync 0x2007 */ 23962306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2008) }, /* Symbol USB Sync 0x2008 */ 24062306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x2009) }, /* Symbol USB Sync 0x2009 */ 24162306a36Sopenharmony_ci { USB_DEVICE(0x05E0, 0x200A) }, /* Symbol USB Sync 0x200A */ 24262306a36Sopenharmony_ci { USB_DEVICE(0x067E, 0x1001) }, /* Intermec Mobile Computer */ 24362306a36Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2001) }, /* CASIO USB Sync 2001 */ 24462306a36Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2002) }, /* CASIO USB Sync 2002 */ 24562306a36Sopenharmony_ci { USB_DEVICE(0x07CF, 0x2003) }, /* CASIO USB Sync 2003 */ 24662306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0700) }, /* TOSHIBA USB Sync 0700 */ 24762306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0705) }, /* TOSHIBA Pocket PC e310 */ 24862306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0706) }, /* TOSHIBA Pocket PC e740 */ 24962306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0707) }, /* TOSHIBA Pocket PC e330 Series */ 25062306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0708) }, /* TOSHIBA Pocket PC e350 Series */ 25162306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x0709) }, /* TOSHIBA Pocket PC e750 Series */ 25262306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x070A) }, /* TOSHIBA Pocket PC e400 Series */ 25362306a36Sopenharmony_ci { USB_DEVICE(0x0930, 0x070B) }, /* TOSHIBA Pocket PC e800 Series */ 25462306a36Sopenharmony_ci { USB_DEVICE(0x094B, 0x0001) }, /* Linkup Systems USB Sync */ 25562306a36Sopenharmony_ci { USB_DEVICE(0x0960, 0x0065) }, /* BCOM USB Sync 0065 */ 25662306a36Sopenharmony_ci { USB_DEVICE(0x0960, 0x0066) }, /* BCOM USB Sync 0066 */ 25762306a36Sopenharmony_ci { USB_DEVICE(0x0960, 0x0067) }, /* BCOM USB Sync 0067 */ 25862306a36Sopenharmony_ci { USB_DEVICE(0x0961, 0x0010) }, /* Portatec USB Sync */ 25962306a36Sopenharmony_ci { USB_DEVICE(0x099E, 0x0052) }, /* Trimble GeoExplorer */ 26062306a36Sopenharmony_ci { USB_DEVICE(0x099E, 0x4000) }, /* TDS Data Collector */ 26162306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4200) }, /* ASUS USB Sync */ 26262306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4201) }, /* ASUS USB Sync */ 26362306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x4202) }, /* ASUS USB Sync */ 26462306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x420F) }, /* ASUS USB Sync */ 26562306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x9200) }, /* ASUS USB Sync */ 26662306a36Sopenharmony_ci { USB_DEVICE(0x0B05, 0x9202) }, /* ASUS USB Sync */ 26762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x00CE) }, /* HTC USB Sync */ 26862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x00CF) }, /* HTC USB Modem */ 26962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A01) }, /* PocketPC USB Sync */ 27062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A02) }, /* PocketPC USB Sync */ 27162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A03) }, /* PocketPC USB Sync */ 27262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A04) }, /* PocketPC USB Sync */ 27362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A05) }, /* PocketPC USB Sync */ 27462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A06) }, /* PocketPC USB Sync */ 27562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A07) }, /* PocketPC USB Sync */ 27662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A08) }, /* PocketPC USB Sync */ 27762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A09) }, /* PocketPC USB Sync */ 27862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0A) }, /* PocketPC USB Sync */ 27962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0B) }, /* PocketPC USB Sync */ 28062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0C) }, /* PocketPC USB Sync */ 28162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0D) }, /* PocketPC USB Sync */ 28262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0E) }, /* PocketPC USB Sync */ 28362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A0F) }, /* PocketPC USB Sync */ 28462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A10) }, /* PocketPC USB Sync */ 28562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A11) }, /* PocketPC USB Sync */ 28662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A12) }, /* PocketPC USB Sync */ 28762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A13) }, /* PocketPC USB Sync */ 28862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A14) }, /* PocketPC USB Sync */ 28962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A15) }, /* PocketPC USB Sync */ 29062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A16) }, /* PocketPC USB Sync */ 29162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A17) }, /* PocketPC USB Sync */ 29262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A18) }, /* PocketPC USB Sync */ 29362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A19) }, /* PocketPC USB Sync */ 29462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1A) }, /* PocketPC USB Sync */ 29562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1B) }, /* PocketPC USB Sync */ 29662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1C) }, /* PocketPC USB Sync */ 29762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1D) }, /* PocketPC USB Sync */ 29862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1E) }, /* PocketPC USB Sync */ 29962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A1F) }, /* PocketPC USB Sync */ 30062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A20) }, /* PocketPC USB Sync */ 30162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A21) }, /* PocketPC USB Sync */ 30262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A22) }, /* PocketPC USB Sync */ 30362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A23) }, /* PocketPC USB Sync */ 30462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A24) }, /* PocketPC USB Sync */ 30562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A25) }, /* PocketPC USB Sync */ 30662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A26) }, /* PocketPC USB Sync */ 30762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A27) }, /* PocketPC USB Sync */ 30862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A28) }, /* PocketPC USB Sync */ 30962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A29) }, /* PocketPC USB Sync */ 31062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2A) }, /* PocketPC USB Sync */ 31162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2B) }, /* PocketPC USB Sync */ 31262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2C) }, /* PocketPC USB Sync */ 31362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2D) }, /* PocketPC USB Sync */ 31462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2E) }, /* PocketPC USB Sync */ 31562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A2F) }, /* PocketPC USB Sync */ 31662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A30) }, /* PocketPC USB Sync */ 31762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A31) }, /* PocketPC USB Sync */ 31862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A32) }, /* PocketPC USB Sync */ 31962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A33) }, /* PocketPC USB Sync */ 32062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A34) }, /* PocketPC USB Sync */ 32162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A35) }, /* PocketPC USB Sync */ 32262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A36) }, /* PocketPC USB Sync */ 32362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A37) }, /* PocketPC USB Sync */ 32462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A38) }, /* PocketPC USB Sync */ 32562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A39) }, /* PocketPC USB Sync */ 32662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3A) }, /* PocketPC USB Sync */ 32762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3B) }, /* PocketPC USB Sync */ 32862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3C) }, /* PocketPC USB Sync */ 32962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3D) }, /* PocketPC USB Sync */ 33062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3E) }, /* PocketPC USB Sync */ 33162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A3F) }, /* PocketPC USB Sync */ 33262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A40) }, /* PocketPC USB Sync */ 33362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A41) }, /* PocketPC USB Sync */ 33462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A42) }, /* PocketPC USB Sync */ 33562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A43) }, /* PocketPC USB Sync */ 33662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A44) }, /* PocketPC USB Sync */ 33762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A45) }, /* PocketPC USB Sync */ 33862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A46) }, /* PocketPC USB Sync */ 33962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A47) }, /* PocketPC USB Sync */ 34062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A48) }, /* PocketPC USB Sync */ 34162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A49) }, /* PocketPC USB Sync */ 34262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4A) }, /* PocketPC USB Sync */ 34362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4B) }, /* PocketPC USB Sync */ 34462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4C) }, /* PocketPC USB Sync */ 34562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4D) }, /* PocketPC USB Sync */ 34662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4E) }, /* PocketPC USB Sync */ 34762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A4F) }, /* PocketPC USB Sync */ 34862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A50) }, /* HTC SmartPhone USB Sync */ 34962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A51) }, /* SmartPhone USB Sync */ 35062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A52) }, /* SmartPhone USB Sync */ 35162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A53) }, /* SmartPhone USB Sync */ 35262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A54) }, /* SmartPhone USB Sync */ 35362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A55) }, /* SmartPhone USB Sync */ 35462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A56) }, /* SmartPhone USB Sync */ 35562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A57) }, /* SmartPhone USB Sync */ 35662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A58) }, /* SmartPhone USB Sync */ 35762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A59) }, /* SmartPhone USB Sync */ 35862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5A) }, /* SmartPhone USB Sync */ 35962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5B) }, /* SmartPhone USB Sync */ 36062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5C) }, /* SmartPhone USB Sync */ 36162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5D) }, /* SmartPhone USB Sync */ 36262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5E) }, /* SmartPhone USB Sync */ 36362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A5F) }, /* SmartPhone USB Sync */ 36462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A60) }, /* SmartPhone USB Sync */ 36562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A61) }, /* SmartPhone USB Sync */ 36662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A62) }, /* SmartPhone USB Sync */ 36762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A63) }, /* SmartPhone USB Sync */ 36862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A64) }, /* SmartPhone USB Sync */ 36962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A65) }, /* SmartPhone USB Sync */ 37062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A66) }, /* SmartPhone USB Sync */ 37162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A67) }, /* SmartPhone USB Sync */ 37262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A68) }, /* SmartPhone USB Sync */ 37362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A69) }, /* SmartPhone USB Sync */ 37462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6A) }, /* SmartPhone USB Sync */ 37562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6B) }, /* SmartPhone USB Sync */ 37662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6C) }, /* SmartPhone USB Sync */ 37762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6D) }, /* SmartPhone USB Sync */ 37862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6E) }, /* SmartPhone USB Sync */ 37962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A6F) }, /* SmartPhone USB Sync */ 38062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A70) }, /* SmartPhone USB Sync */ 38162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A71) }, /* SmartPhone USB Sync */ 38262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A72) }, /* SmartPhone USB Sync */ 38362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A73) }, /* SmartPhone USB Sync */ 38462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A74) }, /* SmartPhone USB Sync */ 38562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A75) }, /* SmartPhone USB Sync */ 38662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A76) }, /* SmartPhone USB Sync */ 38762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A77) }, /* SmartPhone USB Sync */ 38862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A78) }, /* SmartPhone USB Sync */ 38962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A79) }, /* SmartPhone USB Sync */ 39062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7A) }, /* SmartPhone USB Sync */ 39162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7B) }, /* SmartPhone USB Sync */ 39262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7C) }, /* SmartPhone USB Sync */ 39362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7D) }, /* SmartPhone USB Sync */ 39462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7E) }, /* SmartPhone USB Sync */ 39562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A7F) }, /* SmartPhone USB Sync */ 39662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A80) }, /* SmartPhone USB Sync */ 39762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A81) }, /* SmartPhone USB Sync */ 39862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A82) }, /* SmartPhone USB Sync */ 39962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A83) }, /* SmartPhone USB Sync */ 40062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A84) }, /* SmartPhone USB Sync */ 40162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A85) }, /* SmartPhone USB Sync */ 40262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A86) }, /* SmartPhone USB Sync */ 40362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A87) }, /* SmartPhone USB Sync */ 40462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A88) }, /* SmartPhone USB Sync */ 40562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A89) }, /* SmartPhone USB Sync */ 40662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8A) }, /* SmartPhone USB Sync */ 40762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8B) }, /* SmartPhone USB Sync */ 40862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8C) }, /* SmartPhone USB Sync */ 40962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8D) }, /* SmartPhone USB Sync */ 41062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8E) }, /* SmartPhone USB Sync */ 41162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A8F) }, /* SmartPhone USB Sync */ 41262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A90) }, /* SmartPhone USB Sync */ 41362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A91) }, /* SmartPhone USB Sync */ 41462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A92) }, /* SmartPhone USB Sync */ 41562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A93) }, /* SmartPhone USB Sync */ 41662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A94) }, /* SmartPhone USB Sync */ 41762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A95) }, /* SmartPhone USB Sync */ 41862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A96) }, /* SmartPhone USB Sync */ 41962306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A97) }, /* SmartPhone USB Sync */ 42062306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A98) }, /* SmartPhone USB Sync */ 42162306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A99) }, /* SmartPhone USB Sync */ 42262306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9A) }, /* SmartPhone USB Sync */ 42362306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9B) }, /* SmartPhone USB Sync */ 42462306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9C) }, /* SmartPhone USB Sync */ 42562306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9D) }, /* SmartPhone USB Sync */ 42662306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9E) }, /* SmartPhone USB Sync */ 42762306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0A9F) }, /* SmartPhone USB Sync */ 42862306a36Sopenharmony_ci { USB_DEVICE(0x0BB4, 0x0BCE) }, /* "High Tech Computer Corp" */ 42962306a36Sopenharmony_ci { USB_DEVICE(0x0BF8, 0x1001) }, /* Fujitsu Siemens Computers USB Sync */ 43062306a36Sopenharmony_ci { USB_DEVICE(0x0C44, 0x03A2) }, /* Motorola iDEN Smartphone */ 43162306a36Sopenharmony_ci { USB_DEVICE(0x0C8E, 0x6000) }, /* Cesscom Luxian Series */ 43262306a36Sopenharmony_ci { USB_DEVICE(0x0CAD, 0x9001) }, /* Motorola PowerPad Pocket PC Device */ 43362306a36Sopenharmony_ci { USB_DEVICE(0x0F4E, 0x0200) }, /* Freedom Scientific USB Sync */ 43462306a36Sopenharmony_ci { USB_DEVICE(0x0F98, 0x0201) }, /* Cyberbank USB Sync */ 43562306a36Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3001) }, /* Wistron USB Sync */ 43662306a36Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3002) }, /* Wistron USB Sync */ 43762306a36Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x3003) }, /* Wistron USB Sync */ 43862306a36Sopenharmony_ci { USB_DEVICE(0x0FB8, 0x4001) }, /* Wistron USB Sync */ 43962306a36Sopenharmony_ci { USB_DEVICE(0x1066, 0x00CE) }, /* E-TEN USB Sync */ 44062306a36Sopenharmony_ci { USB_DEVICE(0x1066, 0x0300) }, /* E-TEN P3XX Pocket PC */ 44162306a36Sopenharmony_ci { USB_DEVICE(0x1066, 0x0500) }, /* E-TEN P5XX Pocket PC */ 44262306a36Sopenharmony_ci { USB_DEVICE(0x1066, 0x0600) }, /* E-TEN P6XX Pocket PC */ 44362306a36Sopenharmony_ci { USB_DEVICE(0x1066, 0x0700) }, /* E-TEN P7XX Pocket PC */ 44462306a36Sopenharmony_ci { USB_DEVICE(0x1114, 0x0001) }, /* Psion Teklogix Sync 753x */ 44562306a36Sopenharmony_ci { USB_DEVICE(0x1114, 0x0004) }, /* Psion Teklogix Sync netBookPro */ 44662306a36Sopenharmony_ci { USB_DEVICE(0x1114, 0x0006) }, /* Psion Teklogix Sync 7525 */ 44762306a36Sopenharmony_ci { USB_DEVICE(0x1182, 0x1388) }, /* VES USB Sync */ 44862306a36Sopenharmony_ci { USB_DEVICE(0x11D9, 0x1002) }, /* Rugged Pocket PC 2003 */ 44962306a36Sopenharmony_ci { USB_DEVICE(0x11D9, 0x1003) }, /* Rugged Pocket PC 2003 */ 45062306a36Sopenharmony_ci { USB_DEVICE(0x1231, 0xCE01) }, /* USB Sync 03 */ 45162306a36Sopenharmony_ci { USB_DEVICE(0x1231, 0xCE02) }, /* USB Sync 03 */ 45262306a36Sopenharmony_ci { USB_DEVICE(0x1690, 0x0601) }, /* Askey USB Sync */ 45362306a36Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4204) }, /* Motorola MPx200 Smartphone */ 45462306a36Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4214) }, /* Motorola MPc GSM */ 45562306a36Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4224) }, /* Motorola MPx220 Smartphone */ 45662306a36Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4234) }, /* Motorola MPc CDMA */ 45762306a36Sopenharmony_ci { USB_DEVICE(0x22B8, 0x4244) }, /* Motorola MPx100 Smartphone */ 45862306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x011C) }, /* Mio DigiWalker PPC StrongARM */ 45962306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0326) }, /* Mio DigiWalker 338 */ 46062306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0426) }, /* Mio DigiWalker 338 */ 46162306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x043A) }, /* Mio DigiWalker USB Sync */ 46262306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x051C) }, /* MiTAC USB Sync 528 */ 46362306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x053A) }, /* Mio DigiWalker SmartPhone USB Sync */ 46462306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x071C) }, /* MiTAC USB Sync */ 46562306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0B1C) }, /* Generic PPC StrongARM */ 46662306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0E3A) }, /* Generic PPC USB Sync */ 46762306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0F1C) }, /* Itautec USB Sync */ 46862306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x0F3A) }, /* Generic SmartPhone USB Sync */ 46962306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x1326) }, /* Itautec USB Sync */ 47062306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x191C) }, /* YAKUMO USB Sync */ 47162306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x2326) }, /* Vobis USB Sync */ 47262306a36Sopenharmony_ci { USB_DEVICE(0x3340, 0x3326) }, /* MEDION Winodws Moble USB Sync */ 47362306a36Sopenharmony_ci { USB_DEVICE(0x3708, 0x20CE) }, /* Legend USB Sync */ 47462306a36Sopenharmony_ci { USB_DEVICE(0x3708, 0x21CE) }, /* Lenovo USB Sync */ 47562306a36Sopenharmony_ci { USB_DEVICE(0x4113, 0x0210) }, /* Mobile Media Technology USB Sync */ 47662306a36Sopenharmony_ci { USB_DEVICE(0x4113, 0x0211) }, /* Mobile Media Technology USB Sync */ 47762306a36Sopenharmony_ci { USB_DEVICE(0x4113, 0x0400) }, /* Mobile Media Technology USB Sync */ 47862306a36Sopenharmony_ci { USB_DEVICE(0x4113, 0x0410) }, /* Mobile Media Technology USB Sync */ 47962306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4001) }, /* Dell Axim USB Sync */ 48062306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4002) }, /* Dell Axim USB Sync */ 48162306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4003) }, /* Dell Axim USB Sync */ 48262306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4004) }, /* Dell Axim USB Sync */ 48362306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4005) }, /* Dell Axim USB Sync */ 48462306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4006) }, /* Dell Axim USB Sync */ 48562306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4007) }, /* Dell Axim USB Sync */ 48662306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4008) }, /* Dell Axim USB Sync */ 48762306a36Sopenharmony_ci { USB_DEVICE(0x413C, 0x4009) }, /* Dell Axim USB Sync */ 48862306a36Sopenharmony_ci { USB_DEVICE(0x4505, 0x0010) }, /* Smartphone */ 48962306a36Sopenharmony_ci { USB_DEVICE(0x5E04, 0xCE00) }, /* SAGEM Wireless Assistant */ 49062306a36Sopenharmony_ci { } /* Terminating entry */ 49162306a36Sopenharmony_ci}; 49262306a36Sopenharmony_ci 49362306a36Sopenharmony_ciMODULE_DEVICE_TABLE(usb, ipaq_id_table); 49462306a36Sopenharmony_ci 49562306a36Sopenharmony_ci 49662306a36Sopenharmony_ci/* All of the device info needed for the Compaq iPAQ */ 49762306a36Sopenharmony_cistatic struct usb_serial_driver ipaq_device = { 49862306a36Sopenharmony_ci .driver = { 49962306a36Sopenharmony_ci .owner = THIS_MODULE, 50062306a36Sopenharmony_ci .name = "ipaq", 50162306a36Sopenharmony_ci }, 50262306a36Sopenharmony_ci .description = "PocketPC PDA", 50362306a36Sopenharmony_ci .id_table = ipaq_id_table, 50462306a36Sopenharmony_ci .bulk_in_size = 256, 50562306a36Sopenharmony_ci .bulk_out_size = 256, 50662306a36Sopenharmony_ci .open = ipaq_open, 50762306a36Sopenharmony_ci .attach = ipaq_startup, 50862306a36Sopenharmony_ci .calc_num_ports = ipaq_calc_num_ports, 50962306a36Sopenharmony_ci}; 51062306a36Sopenharmony_ci 51162306a36Sopenharmony_cistatic struct usb_serial_driver * const serial_drivers[] = { 51262306a36Sopenharmony_ci &ipaq_device, NULL 51362306a36Sopenharmony_ci}; 51462306a36Sopenharmony_ci 51562306a36Sopenharmony_cistatic int ipaq_open(struct tty_struct *tty, 51662306a36Sopenharmony_ci struct usb_serial_port *port) 51762306a36Sopenharmony_ci{ 51862306a36Sopenharmony_ci struct usb_serial *serial = port->serial; 51962306a36Sopenharmony_ci int result = 0; 52062306a36Sopenharmony_ci int retries = connect_retries; 52162306a36Sopenharmony_ci 52262306a36Sopenharmony_ci msleep(1000*initial_wait); 52362306a36Sopenharmony_ci 52462306a36Sopenharmony_ci /* 52562306a36Sopenharmony_ci * Send out control message observed in win98 sniffs. Not sure what 52662306a36Sopenharmony_ci * it does, but from empirical observations, it seems that the device 52762306a36Sopenharmony_ci * will start the chat sequence once one of these messages gets 52862306a36Sopenharmony_ci * through. Since this has a reasonably high failure rate, we retry 52962306a36Sopenharmony_ci * several times. 53062306a36Sopenharmony_ci */ 53162306a36Sopenharmony_ci while (retries) { 53262306a36Sopenharmony_ci retries--; 53362306a36Sopenharmony_ci result = usb_control_msg(serial->dev, 53462306a36Sopenharmony_ci usb_sndctrlpipe(serial->dev, 0), 0x22, 0x21, 53562306a36Sopenharmony_ci 0x1, 0, NULL, 0, 100); 53662306a36Sopenharmony_ci if (!result) 53762306a36Sopenharmony_ci break; 53862306a36Sopenharmony_ci 53962306a36Sopenharmony_ci msleep(1000); 54062306a36Sopenharmony_ci } 54162306a36Sopenharmony_ci if (!retries && result) { 54262306a36Sopenharmony_ci dev_err(&port->dev, "%s - failed doing control urb, error %d\n", 54362306a36Sopenharmony_ci __func__, result); 54462306a36Sopenharmony_ci return result; 54562306a36Sopenharmony_ci } 54662306a36Sopenharmony_ci 54762306a36Sopenharmony_ci return usb_serial_generic_open(tty, port); 54862306a36Sopenharmony_ci} 54962306a36Sopenharmony_ci 55062306a36Sopenharmony_cistatic int ipaq_calc_num_ports(struct usb_serial *serial, 55162306a36Sopenharmony_ci struct usb_serial_endpoints *epds) 55262306a36Sopenharmony_ci{ 55362306a36Sopenharmony_ci /* 55462306a36Sopenharmony_ci * Some of the devices in ipaq_id_table[] are composite, and we 55562306a36Sopenharmony_ci * shouldn't bind to all the interfaces. This test will rule out 55662306a36Sopenharmony_ci * some obviously invalid possibilities. 55762306a36Sopenharmony_ci */ 55862306a36Sopenharmony_ci if (epds->num_bulk_in == 0 || epds->num_bulk_out == 0) 55962306a36Sopenharmony_ci return -ENODEV; 56062306a36Sopenharmony_ci 56162306a36Sopenharmony_ci /* 56262306a36Sopenharmony_ci * A few devices have four endpoints, seemingly Yakuma devices, and 56362306a36Sopenharmony_ci * we need the second pair. 56462306a36Sopenharmony_ci */ 56562306a36Sopenharmony_ci if (epds->num_bulk_in > 1 && epds->num_bulk_out > 1) { 56662306a36Sopenharmony_ci epds->bulk_in[0] = epds->bulk_in[1]; 56762306a36Sopenharmony_ci epds->bulk_out[0] = epds->bulk_out[1]; 56862306a36Sopenharmony_ci } 56962306a36Sopenharmony_ci 57062306a36Sopenharmony_ci /* 57162306a36Sopenharmony_ci * Other devices have 3 endpoints, but we only use the first bulk in 57262306a36Sopenharmony_ci * and out endpoints. 57362306a36Sopenharmony_ci */ 57462306a36Sopenharmony_ci epds->num_bulk_in = 1; 57562306a36Sopenharmony_ci epds->num_bulk_out = 1; 57662306a36Sopenharmony_ci 57762306a36Sopenharmony_ci return 1; 57862306a36Sopenharmony_ci} 57962306a36Sopenharmony_ci 58062306a36Sopenharmony_cistatic int ipaq_startup(struct usb_serial *serial) 58162306a36Sopenharmony_ci{ 58262306a36Sopenharmony_ci if (serial->dev->actconfig->desc.bConfigurationValue != 1) { 58362306a36Sopenharmony_ci /* 58462306a36Sopenharmony_ci * FIXME: HP iPaq rx3715, possibly others, have 1 config that 58562306a36Sopenharmony_ci * is labeled as 2 58662306a36Sopenharmony_ci */ 58762306a36Sopenharmony_ci 58862306a36Sopenharmony_ci dev_err(&serial->dev->dev, "active config #%d != 1 ??\n", 58962306a36Sopenharmony_ci serial->dev->actconfig->desc.bConfigurationValue); 59062306a36Sopenharmony_ci return -ENODEV; 59162306a36Sopenharmony_ci } 59262306a36Sopenharmony_ci 59362306a36Sopenharmony_ci return usb_reset_configuration(serial->dev); 59462306a36Sopenharmony_ci} 59562306a36Sopenharmony_ci 59662306a36Sopenharmony_cimodule_usb_serial_driver(serial_drivers, ipaq_id_table); 59762306a36Sopenharmony_ci 59862306a36Sopenharmony_ciMODULE_AUTHOR(DRIVER_AUTHOR); 59962306a36Sopenharmony_ciMODULE_DESCRIPTION(DRIVER_DESC); 60062306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 60162306a36Sopenharmony_ci 60262306a36Sopenharmony_cimodule_param(connect_retries, int, 0644); 60362306a36Sopenharmony_ciMODULE_PARM_DESC(connect_retries, 60462306a36Sopenharmony_ci "Maximum number of connect retries (one second each)"); 60562306a36Sopenharmony_ci 60662306a36Sopenharmony_cimodule_param(initial_wait, int, 0644); 60762306a36Sopenharmony_ciMODULE_PARM_DESC(initial_wait, 60862306a36Sopenharmony_ci "Time to wait before attempting a connection (in seconds)"); 609