if_upgt.c (192468) | if_upgt.c (192499) |
---|---|
1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */ | 1/* $OpenBSD: if_upgt.c,v 1.35 2008/04/16 18:32:15 damien Exp $ */ |
2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 192468 2009-05-20 20:00:40Z sam $ */ | 2/* $FreeBSD: head/sys/dev/usb/wlan/if_upgt.c 192499 2009-05-21 00:04:17Z thompsa $ */ |
3 4/* 5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 216 unchanged lines hidden (view full) --- 227 }, 228}; 229 230static int 231upgt_match(device_t dev) 232{ 233 struct usb2_attach_arg *uaa = device_get_ivars(dev); 234 | 3 4/* 5 * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 216 unchanged lines hidden (view full) --- 227 }, 228}; 229 230static int 231upgt_match(device_t dev) 232{ 233 struct usb2_attach_arg *uaa = device_get_ivars(dev); 234 |
235 if (uaa->usb2_mode != USB_MODE_HOST) | 235 if (uaa->usb_mode != USB_MODE_HOST) |
236 return (ENXIO); 237 if (uaa->info.bConfigIndex != UPGT_CONFIG_INDEX) 238 return (ENXIO); 239 if (uaa->info.bIfaceIndex != UPGT_IFACE_INDEX) 240 return (ENXIO); 241 242 return (usb2_lookup_id_by_uaa(upgt_devs_2, sizeof(upgt_devs_2), uaa)); 243} --- 2151 unchanged lines hidden --- | 236 return (ENXIO); 237 if (uaa->info.bConfigIndex != UPGT_CONFIG_INDEX) 238 return (ENXIO); 239 if (uaa->info.bIfaceIndex != UPGT_IFACE_INDEX) 240 return (ENXIO); 241 242 return (usb2_lookup_id_by_uaa(upgt_devs_2, sizeof(upgt_devs_2), uaa)); 243} --- 2151 unchanged lines hidden --- |