Hello.

This is a patch for usbnet for working with Zaurus SL-C700.
The productid is different from other Zaurus, so i add an entry for it :)

-- 
Micka�l GRIGOUZE              [EMAIL PROTECTED]         ICQ : 42799256
*** \-/ ***  In a World Without Fences Who Needs Gates *** \-/ ***
--- linux/drivers/usb/usbnet.c.orig     2003-06-17 23:53:24.000000000 +0200
+++ linux/drivers/usb/usbnet.c  2003-06-17 23:57:40.000000000 +0200
@@ -1426,8 +1426,18 @@
        .in = 1, .out = 2,
        .epsize = 64,
 };
+static const struct driver_info        zaurus_slc700_info = {
+       .description =  "Sharp Zaurus SL-C700",
+       .flags =        FLAG_FRAMING_Z,
+       .check_connect = always_connected,
+       .tx_fixup =     zaurus_tx_fixup,
+
+       .in = 1, .out = 2,
+       .epsize = 64,
+};
 
 // SL-5600 and C-700 are PXA based; should resemble A300
+// but C-700 had a different idProduct so i had an entry :)
 
 #endif
 
@@ -2402,6 +2412,15 @@
        .bInterfaceSubClass     = 0x0a,
        .bInterfaceProtocol     = 0x00,
        .driver_info =  (unsigned long) &zaurus_slb500_info,
+}, {
+       .match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+                         | USB_DEVICE_ID_MATCH_DEVICE, 
+       .idVendor               = 0x04DD,
+       .idProduct              = 0x8007,
+       .bInterfaceClass        = 0x02,
+       .bInterfaceSubClass     = 0x0a,
+       .bInterfaceProtocol     = 0x00,
+       .driver_info =  (unsigned long) &zaurus_slc700_info,
 },
 #endif
 

Reply via email to