Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 21:46:22 +0200 (EET)
From:      Andriy Gapon <avg@icyb.net.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   usb/121184: uipaq: add ids from linux ipaq driver (plus a "quirk")
Message-ID:  <200802281946.m1SJkLc5020859@edge>
Resent-Message-ID: <200802281950.m1SJo1Am074253@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121184
>Category:       usb
>Synopsis:       uipaq: add ids from linux ipaq driver (plus a "quirk")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 19:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Andriy Gapon
>Release:        FreeBSD 7.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD 7.0-RC1 i386


	
>Description:
Linux ipaq driver contains an extensive of supported devices that is much bigger
than a list in uipaq. Unfortunately the IDs are given purely as numbers, so it would be
a chore to convert that to FreeBSD convention - actual defines in usbdevs and the drivers
using macro definitions for vendor and device id.
The patch also contains a special initialization sequence that is fed to ppc device.
This is also borrowed from the Linux driver, comment there say that the command was
sniffedd in Win98.
>How-To-Repeat:
	
>Fix:

	

--- the.patch begins here ---
--- uipaq.c.orig	2008-02-26 20:52:57.000000000 +0200
+++ uipaq.c	2008-02-26 22:05:47.000000000 +0200
@@ -120,11 +120,459 @@
 };
 
 static const struct uipaq_type uipaq_devs[] = {
-	{{ USB_VENDOR_HP, USB_PRODUCT_HP_2215 }, 0 },
-	{{ USB_VENDOR_HP, USB_PRODUCT_HP_568J }, 0},
-	{{ USB_VENDOR_COMPAQ, USB_PRODUCT_COMPAQ_IPAQPOCKETPC } , 0},
-	{{ USB_VENDOR_CASIO, USB_PRODUCT_CASIO_BE300 } , 0},
-	{{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_WZERO3ES }, 0},
+	{{ 0x0104, 0x00be }, 0}, /* Socket USB Sync */
+	{{ 0x03f0, 0x1016 }, 0}, /* HP USB Sync */
+	{{ 0x03f0, 0x1116 }, 0}, /* HP USB Sync 1611 */
+	{{ 0x03f0, 0x1216 }, 0}, /* HP USB Sync 1612 */
+	{{ 0x03f0, 0x2016 }, 0}, /* HP USB Sync 1620 */
+	{{ 0x03f0, 0x2116 }, 0}, /* HP USB Sync 1621 */
+	{{ 0x03f0, 0x2216 }, 0}, /* HP USB Sync 1622 */
+	{{ 0x03f0, 0x3016 }, 0}, /* HP USB Sync 1630 */
+	{{ 0x03f0, 0x3116 }, 0}, /* HP USB Sync 1631 */
+	{{ 0x03f0, 0x3216 }, 0}, /* HP USB Sync 1632 */
+	{{ 0x03f0, 0x4016 }, 0}, /* HP USB Sync 1640 */
+	{{ 0x03f0, 0x4116 }, 0}, /* HP USB Sync 1641 */
+	{{ 0x03f0, 0x4216 }, 0}, /* HP USB Sync 1642 */
+	{{ 0x03f0, 0x5016 }, 0}, /* HP USB Sync 1650 */
+	{{ 0x03f0, 0x5116 }, 0}, /* HP USB Sync 1651 */
+	{{ 0x03f0, 0x5216 }, 0}, /* HP USB Sync 1652 */
+	{{ 0x0409, 0x00d5 }, 0}, /* NEC USB Sync */
+	{{ 0x0409, 0x00d6 }, 0}, /* NEC USB Sync */
+	{{ 0x0409, 0x00d7 }, 0}, /* NEC USB Sync */
+	{{ 0x0409, 0x8024 }, 0}, /* NEC USB Sync */
+	{{ 0x0409, 0x8025 }, 0}, /* NEC USB Sync */
+	{{ 0x043e, 0x9c01 }, 0}, /* LGE USB Sync */
+	{{ 0x045e, 0x00ce }, 0}, /* Microsoft USB Sync */
+	{{ 0x045e, 0x0400 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0401 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0402 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0403 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0404 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0405 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0406 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0407 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0408 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0409 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040a }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040b }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040c }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040d }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040e }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x040f }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0410 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0411 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0412 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0413 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0414 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0415 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0416 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0417 }, 0}, /* Windows Powered Pocket PC 2002 */
+	{{ 0x045e, 0x0432 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0433 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0434 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0435 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0436 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0437 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0438 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0439 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043a }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043b }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043c }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043d }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043e }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x043f }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0440 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0441 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0442 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0443 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0444 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0445 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0446 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0447 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0448 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0449 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044a }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044b }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044c }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044d }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044e }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x044f }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0450 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0451 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0452 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0453 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0454 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0455 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0456 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0457 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0458 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0459 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045a }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045b }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045c }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045d }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045e }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x045f }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0460 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0461 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0462 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0463 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0464 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0465 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0466 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0467 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0468 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0469 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046a }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046b }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046c }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046d }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046e }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x046f }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0470 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0471 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0472 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0473 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0474 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0475 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0476 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0477 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0478 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x0479 }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x047a }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x047b }, 0}, /* Windows Powered Pocket PC 2003 */
+	{{ 0x045e, 0x04c8 }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04c9 }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04ca }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04cb }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04cc }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04cd }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04ce }, 0}, /* Windows Powered Smartphone 2002 */
+	{{ 0x045e, 0x04d7 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04d8 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04d9 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04da }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04db }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04dc }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04dd }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04de }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04df }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e0 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e1 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e2 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e3 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e4 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e5 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e6 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e7 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e8 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04e9 }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x045e, 0x04ea }, 0}, /* Windows Powered Smartphone 2003 */
+	{{ 0x049f, 0x0003 }, 0}, /* Compaq iPAQ USB Sync */
+	{{ 0x049f, 0x0032 }, 0}, /* Compaq iPAQ USB Sync */
+	{{ 0x04a4, 0x0014 }, 0}, /* Hitachi USB Sync */
+	{{ 0x04ad, 0x0301 }, 0}, /* USB Sync 0301 */
+	{{ 0x04ad, 0x0302 }, 0}, /* USB Sync 0302 */
+	{{ 0x04ad, 0x0303 }, 0}, /* USB Sync 0303 */
+	{{ 0x04ad, 0x0306 }, 0}, /* GPS Pocket PC USB Sync */
+	{{ 0x04b7, 0x0531 }, 0}, /* MyGuide 7000 XL USB Sync */
+	{{ 0x04c5, 0x1058 }, 0}, /* FUJITSU USB Sync */
+	{{ 0x04c5, 0x1079 }, 0}, /* FUJITSU USB Sync */
+	{{ 0x04da, 0x2500 }, 0}, /* Panasonic USB Sync */
+	{{ 0x04dd, 0x9102 }, 0}, /* SHARP WS003SH USB Modem */
+	{{ 0x04dd, 0x9121 }, 0}, /* SHARP WS004SH USB Modem */
+	{{ 0x04dd, 0x9123 }, 0}, /* SHARP WS007SH USB Modem */
+	{{ 0x04dd, 0x9151 }, 0}, /* SHARP S01SH USB Modem */
+	{{ 0x04e8, 0x5f00 }, 0}, /* Samsung NEXiO USB Sync */
+	{{ 0x04e8, 0x5f01 }, 0}, /* Samsung NEXiO USB Sync */
+	{{ 0x04e8, 0x5f02 }, 0}, /* Samsung NEXiO USB Sync */
+	{{ 0x04e8, 0x5f03 }, 0}, /* Samsung NEXiO USB Sync */
+	{{ 0x04e8, 0x5f04 }, 0}, /* Samsung NEXiO USB Sync */
+	{{ 0x04e8, 0x6611 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6613 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6615 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6617 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6619 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x661b }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x662e }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6630 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04e8, 0x6632 }, 0}, /* Samsung MITs USB Sync */
+	{{ 0x04f1, 0x3011 }, 0}, /* JVC USB Sync */
+	{{ 0x04f1, 0x3012 }, 0}, /* JVC USB Sync */
+	{{ 0x0502, 0x1631 }, 0}, /* c10 Series */
+	{{ 0x0502, 0x1632 }, 0}, /* c20 Series */
+	{{ 0x0502, 0x16e1 }, 0}, /* Acer n10 Handheld USB Sync */
+	{{ 0x0502, 0x16e2 }, 0}, /* Acer n20 Handheld USB Sync */
+	{{ 0x0502, 0x16e3 }, 0}, /* Acer n30 Handheld USB Sync */
+	{{ 0x0536, 0x01a0 }, 0}, /* HHP PDT */
+	{{ 0x0543, 0x0ed9 }, 0}, /* ViewSonic Color Pocket PC V35 */
+	{{ 0x0543, 0x1527 }, 0}, /* ViewSonic Color Pocket PC V36 */
+	{{ 0x0543, 0x1529 }, 0}, /* ViewSonic Color Pocket PC V37 */
+	{{ 0x0543, 0x152b }, 0}, /* ViewSonic Color Pocket PC V38 */
+	{{ 0x0543, 0x152e }, 0}, /* ViewSonic Pocket PC */
+	{{ 0x0543, 0x1921 }, 0}, /* ViewSonic Communicator Pocket PC */
+	{{ 0x0543, 0x1922 }, 0}, /* ViewSonic Smartphone */
+	{{ 0x0543, 0x1923 }, 0}, /* ViewSonic Pocket PC V30 */
+	{{ 0x05e0, 0x2000 }, 0}, /* Symbol USB Sync */
+	{{ 0x05e0, 0x2001 }, 0}, /* Symbol USB Sync 0x2001 */
+	{{ 0x05e0, 0x2002 }, 0}, /* Symbol USB Sync 0x2002 */
+	{{ 0x05e0, 0x2003 }, 0}, /* Symbol USB Sync 0x2003 */
+	{{ 0x05e0, 0x2004 }, 0}, /* Symbol USB Sync 0x2004 */
+	{{ 0x05e0, 0x2005 }, 0}, /* Symbol USB Sync 0x2005 */
+	{{ 0x05e0, 0x2006 }, 0}, /* Symbol USB Sync 0x2006 */
+	{{ 0x05e0, 0x2007 }, 0}, /* Symbol USB Sync 0x2007 */
+	{{ 0x05e0, 0x2008 }, 0}, /* Symbol USB Sync 0x2008 */
+	{{ 0x05e0, 0x2009 }, 0}, /* Symbol USB Sync 0x2009 */
+	{{ 0x05e0, 0x200a }, 0}, /* Symbol USB Sync 0x200a */
+	{{ 0x067e, 0x1001 }, 0}, /* Intermec Mobile Computer */
+	{{ 0x07cf, 0x2001 }, 0}, /* CASIO USB Sync 2001 */
+	{{ 0x07cf, 0x2002 }, 0}, /* CASIO USB Sync 2002 */
+	{{ 0x07cf, 0x2003 }, 0}, /* CASIO USB Sync 2003 */
+	{{ 0x0930, 0x0700 }, 0}, /* TOSHIBA USB Sync 0700 */
+	{{ 0x0930, 0x0705 }, 0}, /* TOSHIBA Pocket PC e310 */
+	{{ 0x0930, 0x0706 }, 0}, /* TOSHIBA Pocket PC e740 */
+	{{ 0x0930, 0x0707 }, 0}, /* TOSHIBA Pocket PC e330 Series */
+	{{ 0x0930, 0x0708 }, 0}, /* TOSHIBA Pocket PC e350�Series */
+	{{ 0x0930, 0x0709 }, 0}, /* TOSHIBA Pocket PC e750 Series */
+	{{ 0x0930, 0x070a }, 0}, /* TOSHIBA Pocket PC e400 Series */
+	{{ 0x0930, 0x070b }, 0}, /* TOSHIBA Pocket PC e800 Series */
+	{{ 0x094b, 0x0001 }, 0}, /* Linkup Systems USB Sync */
+	{{ 0x0960, 0x0065 }, 0}, /* BCOM USB Sync 0065 */
+	{{ 0x0960, 0x0066 }, 0}, /* BCOM USB Sync 0066 */
+	{{ 0x0960, 0x0067 }, 0}, /* BCOM USB Sync 0067 */
+	{{ 0x0961, 0x0010 }, 0}, /* Portatec USB Sync */
+	{{ 0x099e, 0x0052 }, 0}, /* Trimble GeoExplorer */
+	{{ 0x099e, 0x4000 }, 0}, /* TDS Data Collector */
+	{{ 0x0b05, 0x4200 }, 0}, /* ASUS USB Sync */
+	{{ 0x0b05, 0x4201 }, 0}, /* ASUS USB Sync */
+	{{ 0x0b05, 0x4202 }, 0}, /* ASUS USB Sync */
+	{{ 0x0b05, 0x420f }, 0}, /* ASUS USB Sync */
+	{{ 0x0b05, 0x9200 }, 0}, /* ASUS USB Sync */
+	{{ 0x0b05, 0x9202 }, 0}, /* ASUS USB Sync */
+	{{ 0x0bb4, 0x00ce }, 0}, /* HTC USB Sync */
+	{{ 0x0bb4, 0x00cf }, 0}, /* HTC USB Modem */
+	{{ 0x0bb4, 0x0a01 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a02 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a03 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a04 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a05 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a06 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a07 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a08 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a09 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0a }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0b }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0c }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0d }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0e }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a0f }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a10 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a11 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a12 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a13 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a14 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a15 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a16 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a17 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a18 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a19 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1a }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1b }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1c }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1d }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1e }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a1f }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a20 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a21 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a22 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a23 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a24 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a25 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a26 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a27 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a28 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a29 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2a }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2b }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2c }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2d }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2e }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a2f }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a30 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a31 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a32 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a33 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a34 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a35 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a36 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a37 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a38 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a39 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3a }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3b }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3c }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3d }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3e }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a3f }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a40 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a41 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a42 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a43 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a44 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a45 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a46 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a47 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a48 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a49 }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4a }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4b }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4c }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4d }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4e }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a4f }, 0}, /* PocketPC USB Sync */
+	{{ 0x0bb4, 0x0a50 }, 0}, /* HTC SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a51 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a52 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a53 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a54 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a55 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a56 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a57 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a58 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a59 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5a }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5b }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5c }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5d }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5e }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a5f }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a60 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a61 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a62 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a63 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a64 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a65 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a66 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a67 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a68 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a69 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6a }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6b }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6c }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6d }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6e }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a6f }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a70 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a71 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a72 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a73 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a74 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a75 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a76 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a77 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a78 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a79 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7a }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7b }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7c }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7d }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7e }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a7f }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a80 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a81 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a82 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a83 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a84 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a85 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a86 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a87 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a88 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a89 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8a }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8b }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8c }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8d }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8e }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a8f }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a90 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a91 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a92 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a93 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a94 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a95 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a96 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a97 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a98 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a99 }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9a }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9b }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9c }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9d }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9e }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0a9f }, 0}, /* SmartPhone USB Sync */
+	{{ 0x0bb4, 0x0bce }, 0}, /* "High Tech Computer Corp" */
+	{{ 0x0bf8, 0x1001 }, 0}, /* Fujitsu Siemens Computers USB Sync */
+	{{ 0x0c44, 0x03a2 }, 0}, /* Motorola iDEN Smartphone */
+	{{ 0x0c8e, 0x6000 }, 0}, /* Cesscom Luxian Series */
+	{{ 0x0cad, 0x9001 }, 0}, /* Motorola PowerPad Pocket PC�Device */
+	{{ 0x0f4e, 0x0200 }, 0}, /* Freedom Scientific USB Sync */
+	{{ 0x0f98, 0x0201 }, 0}, /* Cyberbank USB Sync */
+	{{ 0x0fb8, 0x3001 }, 0}, /* Wistron USB Sync */
+	{{ 0x0fb8, 0x3002 }, 0}, /* Wistron USB Sync */
+	{{ 0x0fb8, 0x3003 }, 0}, /* Wistron USB Sync */
+	{{ 0x0fb8, 0x4001 }, 0}, /* Wistron USB Sync */
+	{{ 0x1066, 0x00ce }, 0}, /* E-TEN USB Sync */
+	{{ 0x1066, 0x0300 }, 0}, /* E-TEN P3XX Pocket PC */
+	{{ 0x1066, 0x0500 }, 0}, /* E-TEN P5XX Pocket PC */
+	{{ 0x1066, 0x0600 }, 0}, /* E-TEN P6XX Pocket PC */
+	{{ 0x1066, 0x0700 }, 0}, /* E-TEN P7XX Pocket PC */
+	{{ 0x1114, 0x0001 }, 0}, /* Psion Teklogix Sync 753x */
+	{{ 0x1114, 0x0004 }, 0}, /* Psion Teklogix Sync netBookPro */
+	{{ 0x1114, 0x0006 }, 0}, /* Psion Teklogix Sync 7525 */
+	{{ 0x1182, 0x1388 }, 0}, /* VES USB Sync */
+	{{ 0x11d9, 0x1002 }, 0}, /* Rugged Pocket PC 2003 */
+	{{ 0x11d9, 0x1003 }, 0}, /* Rugged Pocket PC 2003 */
+	{{ 0x1231, 0xce01 }, 0}, /* USB Sync 03 */
+	{{ 0x1231, 0xce02 }, 0}, /* USB Sync 03 */
+	{{ 0x1690, 0x0601 }, 0}, /* Askey USB Sync */
+	{{ 0x22b8, 0x4204 }, 0}, /* Motorola MPx200 Smartphone */
+	{{ 0x22b8, 0x4214 }, 0}, /* Motorola MPc GSM */
+	{{ 0x22b8, 0x4224 }, 0}, /* Motorola MPx220 Smartphone */
+	{{ 0x22b8, 0x4234 }, 0}, /* Motorola MPc CDMA */
+	{{ 0x22b8, 0x4244 }, 0}, /* Motorola MPx100 Smartphone */
+	{{ 0x3340, 0x011c }, 0}, /* Mio DigiWalker PPC StrongARM */
+	{{ 0x3340, 0x0326 }, 0}, /* Mio DigiWalker 338 */
+	{{ 0x3340, 0x0426 }, 0}, /* Mio DigiWalker 338 */
+	{{ 0x3340, 0x043a }, 0}, /* Mio DigiWalker USB Sync */
+	{{ 0x3340, 0x051c }, 0}, /* MiTAC USB Sync 528 */
+	{{ 0x3340, 0x053a }, 0}, /* Mio DigiWalker SmartPhone USB Sync */
+	{{ 0x3340, 0x071c }, 0}, /* MiTAC USB Sync */
+	{{ 0x3340, 0x0b1c }, 0}, /* Generic PPC StrongARM */
+	{{ 0x3340, 0x0e3a }, 0}, /* Generic PPC USB Sync */
+	{{ 0x3340, 0x0f1c }, 0}, /* Itautec USB Sync */
+	{{ 0x3340, 0x0f3a }, 0}, /* Generic SmartPhone USB Sync */
+	{{ 0x3340, 0x1326 }, 0}, /* Itautec USB Sync */
+	{{ 0x3340, 0x191c }, 0}, /* YAKUMO USB Sync */
+	{{ 0x3340, 0x2326 }, 0}, /* Vobis USB Sync */
+	{{ 0x3340, 0x3326 }, 0}, /* MEDION Winodws Moble USB Sync */
+	{{ 0x3708, 0x20ce }, 0}, /* Legend USB Sync */
+	{{ 0x3708, 0x21ce }, 0}, /* Lenovo USB Sync */
+	{{ 0x4113, 0x0210 }, 0}, /* Mobile Media Technology USB Sync */
+	{{ 0x4113, 0x0211 }, 0}, /* Mobile Media Technology USB Sync */
+	{{ 0x4113, 0x0400 }, 0}, /* Mobile Media Technology USB Sync */
+	{{ 0x4113, 0x0410 }, 0}, /* Mobile Media Technology USB Sync */
+	{{ 0x413c, 0x4001 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4002 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4003 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4004 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4005 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4006 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4007 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4008 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x413c, 0x4009 }, 0}, /* Dell Axim USB Sync */
+	{{ 0x4505, 0x0010 }, 0}, /* Smartphone */
+	{{ 0x5e04, 0xce00 }, 0}, /* SAGEM Wireless Assistant */
+	{{ 0x0bb4, 0x00cf }, 0}, /* HTC smartphone modems */
 };
 
 #define uipaq_lookup(v, p) ((const struct uipaq_type *)usb_lookup(uipaq_devs, v, p))
@@ -147,6 +595,7 @@
 static int
 uipaq_attach(device_t self)
 {
+	usb_device_request_t req;
 	struct uipaq_softc *sc = device_get_softc(self);
 	struct usb_attach_arg *uaa = device_get_ivars(self);
 	usbd_device_handle dev = uaa->device;
@@ -208,7 +657,21 @@
 		    ucom->sc_bulkin_no, ucom->sc_bulkout_no);
 		return (ENXIO);
 	}
-	
+
+	/* Send magic bytes, sneaked from Linux ipaq driver that claims
+	 * to have sniffed them from Win98.
+	 */
+	req.bmRequestType = UT_WRITE_CLASS_INTERFACE;
+	req.bRequest = UCDC_SET_CONTROL_LINE_STATE;
+	USETW(req.wValue, UCDC_LINE_DTR);
+	USETW(req.wIndex, 0x0);
+	USETW(req.wLength, 0);
+	for (i = 0; i < 100; i++) {
+		err = usbd_do_request_flags(ucom->sc_udev, &req, NULL, 0, NULL, 100);
+		if (!err)
+			break;
+		usbd_delay_ms(dev, 1000);
+	}
 	ucom_attach(&sc->sc_ucom);
 	return (0);
 bad:
--- the.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802281946.m1SJkLc5020859>