Deleted Added
full compact
if_kue.c (191825) if_kue.c (192499)
1/*-
2 * Copyright (c) 1997, 1998, 1999, 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, 1998, 1999, 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_kue.c 191825 2009-05-05 15:39:29Z thompsa $");
34__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_kue.c 192499 2009-05-21 00:04:17Z thompsa $");
35
36/*
37 * Kawasaki LSI KL5KUSB101B USB to ethernet adapter driver.
38 *
39 * Written by Bill Paul <wpaul@ee.columbia.edu>
40 * Electrical Engineering Department
41 * Columbia University, New York City
42 */

--- 388 unchanged lines hidden (view full) ---

431/*
432 * Probe for a KLSI chip.
433 */
434static int
435kue_probe(device_t dev)
436{
437 struct usb2_attach_arg *uaa = device_get_ivars(dev);
438
35
36/*
37 * Kawasaki LSI KL5KUSB101B USB to ethernet adapter driver.
38 *
39 * Written by Bill Paul <wpaul@ee.columbia.edu>
40 * Electrical Engineering Department
41 * Columbia University, New York City
42 */

--- 388 unchanged lines hidden (view full) ---

431/*
432 * Probe for a KLSI chip.
433 */
434static int
435kue_probe(device_t dev)
436{
437 struct usb2_attach_arg *uaa = device_get_ivars(dev);
438
439 if (uaa->usb2_mode != USB_MODE_HOST)
439 if (uaa->usb_mode != USB_MODE_HOST)
440 return (ENXIO);
441 if (uaa->info.bConfigIndex != KUE_CONFIG_IDX)
442 return (ENXIO);
443 if (uaa->info.bIfaceIndex != KUE_IFACE_IDX)
444 return (ENXIO);
445
446 return (usb2_lookup_id_by_uaa(kue_devs, sizeof(kue_devs), uaa));
447}

--- 241 unchanged lines hidden ---
440 return (ENXIO);
441 if (uaa->info.bConfigIndex != KUE_CONFIG_IDX)
442 return (ENXIO);
443 if (uaa->info.bIfaceIndex != KUE_IFACE_IDX)
444 return (ENXIO);
445
446 return (usb2_lookup_id_by_uaa(kue_devs, sizeof(kue_devs), uaa));
447}

--- 241 unchanged lines hidden ---