uhid.c (190749) | uhid.c (192499) |
---|---|
1/* $NetBSD: uhid.c,v 1.46 2001/11/13 06:24:55 lukem Exp $ */ 2 3/* Also already merged from NetBSD: 4 * $NetBSD: uhid.c,v 1.54 2002/09/23 05:51:21 simonb Exp $ 5 */ 6 7#include <sys/cdefs.h> | 1/* $NetBSD: uhid.c,v 1.46 2001/11/13 06:24:55 lukem Exp $ */ 2 3/* Also already merged from NetBSD: 4 * $NetBSD: uhid.c,v 1.54 2002/09/23 05:51:21 simonb Exp $ 5 */ 6 7#include <sys/cdefs.h> |
8__FBSDID("$FreeBSD: head/sys/dev/usb/input/uhid.c 190749 2009-04-05 21:24:15Z piso $"); | 8__FBSDID("$FreeBSD: head/sys/dev/usb/input/uhid.c 192499 2009-05-21 00:04:17Z thompsa $"); |
9 10/*- 11 * Copyright (c) 1998 The NetBSD Foundation, Inc. 12 * All rights reserved. 13 * 14 * This code is derived from software contributed to The NetBSD Foundation 15 * by Lennart Augustsson (lennart@augustsson.net) at 16 * Carlstedt Research & Technology. --- 577 unchanged lines hidden (view full) --- 594 595static int 596uhid_probe(device_t dev) 597{ 598 struct usb2_attach_arg *uaa = device_get_ivars(dev); 599 600 DPRINTFN(11, "\n"); 601 | 9 10/*- 11 * Copyright (c) 1998 The NetBSD Foundation, Inc. 12 * All rights reserved. 13 * 14 * This code is derived from software contributed to The NetBSD Foundation 15 * by Lennart Augustsson (lennart@augustsson.net) at 16 * Carlstedt Research & Technology. --- 577 unchanged lines hidden (view full) --- 594 595static int 596uhid_probe(device_t dev) 597{ 598 struct usb2_attach_arg *uaa = device_get_ivars(dev); 599 600 DPRINTFN(11, "\n"); 601 |
602 if (uaa->usb2_mode != USB_MODE_HOST) { | 602 if (uaa->usb_mode != USB_MODE_HOST) { |
603 return (ENXIO); 604 } 605 if (uaa->use_generic == 0) { 606 /* give Mouse and Keyboard drivers a try first */ 607 return (ENXIO); 608 } 609 if (uaa->info.bInterfaceClass != UICLASS_HID) { 610 --- 177 unchanged lines hidden --- | 603 return (ENXIO); 604 } 605 if (uaa->use_generic == 0) { 606 /* give Mouse and Keyboard drivers a try first */ 607 return (ENXIO); 608 } 609 if (uaa->info.bInterfaceClass != UICLASS_HID) { 610 --- 177 unchanged lines hidden --- |