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_cue.c 192499 2009-05-21 00:04:17Z thompsa $"); |
35 36/* 37 * CATC USB-EL1210A USB to ethernet driver. Used in the CATC Netmate 38 * adapters and others. 39 * 40 * Written by Bill Paul <wpaul@ee.columbia.edu> 41 * Electrical Engineering Department 42 * Columbia University, New York City --- 312 unchanged lines hidden (view full) --- 355 cue_getmac(sc, ue->ue_eaddr); 356} 357 358static int 359cue_probe(device_t dev) 360{ 361 struct usb2_attach_arg *uaa = device_get_ivars(dev); 362 |
363 if (uaa->usb_mode != USB_MODE_HOST) |
364 return (ENXIO); 365 if (uaa->info.bConfigIndex != CUE_CONFIG_IDX) 366 return (ENXIO); 367 if (uaa->info.bIfaceIndex != CUE_IFACE_IDX) 368 return (ENXIO); 369 370 return (usb2_lookup_id_by_uaa(cue_devs, sizeof(cue_devs), uaa)); 371} --- 258 unchanged lines hidden --- |