Date: Fri, 26 Jul 2013 09:58:56 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253670 - head/sys/dev/usb/net Message-ID: <201307260958.r6Q9wuk1074508@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Jul 26 09:58:56 2013 New Revision: 253670 URL: http://svnweb.freebsd.org/changeset/base/253670 Log: Assume that all Apple products using interface class 255, subclass 253 and protocol 1 are USB ethernet adapters. This avoids keeping and updating the product list every now and then. This patch will add support for the USB ethernet interface found in the IPAD. MFC after: 1 week Modified: head/sys/dev/usb/net/if_ipheth.c Modified: head/sys/dev/usb/net/if_ipheth.c ============================================================================== --- head/sys/dev/usb/net/if_ipheth.c Fri Jul 26 09:11:38 2013 (r253669) +++ head/sys/dev/usb/net/if_ipheth.c Fri Jul 26 09:58:56 2013 (r253670) @@ -149,6 +149,7 @@ static const struct usb_ether_methods ip USB_IFACE_PROTOCOL(pt) static const STRUCT_USB_HOST_ID ipheth_devs[] = { +#if 0 {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_PROTO)}, @@ -167,6 +168,13 @@ static const STRUCT_USB_HOST_ID ipheth_d {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_5, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_PROTO)}, +#else + /* product agnostic interface match */ + {USB_VENDOR(USB_VENDOR_APPLE), + USB_IFACE_CLASS(IPHETH_USBINTF_CLASS), + USB_IFACE_SUBCLASS(IPHETH_USBINTF_SUBCLASS), + USB_IFACE_PROTOCOL(IPHETH_USBINTF_PROTO)}, +#endif }; static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307260958.r6Q9wuk1074508>