Deleted Added
full compact
uhid.c (192984) uhid.c (193045)
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 192984 2009-05-28 17:36:36Z thompsa $");
8__FBSDID("$FreeBSD: head/sys/dev/usb/input/uhid.c 193045 2009-05-29 18:46:57Z 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.

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

121static const uint8_t uhid_graphire3_4x5_report_descr[] = {UHID_GRAPHIRE3_4X5_REPORT_DESCR()};
122
123/* prototypes */
124
125static device_probe_t uhid_probe;
126static device_attach_t uhid_attach;
127static device_detach_t uhid_detach;
128
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.

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

121static const uint8_t uhid_graphire3_4x5_report_descr[] = {UHID_GRAPHIRE3_4X5_REPORT_DESCR()};
122
123/* prototypes */
124
125static device_probe_t uhid_probe;
126static device_attach_t uhid_attach;
127static device_detach_t uhid_detach;
128
129static usb2_callback_t uhid_intr_callback;
130static usb2_callback_t uhid_write_callback;
131static usb2_callback_t uhid_read_callback;
129static usb_callback_t uhid_intr_callback;
130static usb_callback_t uhid_write_callback;
131static usb_callback_t uhid_read_callback;
132
132
133static usb2_fifo_cmd_t uhid_start_read;
134static usb2_fifo_cmd_t uhid_stop_read;
135static usb2_fifo_cmd_t uhid_start_write;
136static usb2_fifo_cmd_t uhid_stop_write;
137static usb2_fifo_open_t uhid_open;
138static usb2_fifo_close_t uhid_close;
139static usb2_fifo_ioctl_t uhid_ioctl;
133static usb_fifo_cmd_t uhid_start_read;
134static usb_fifo_cmd_t uhid_stop_read;
135static usb_fifo_cmd_t uhid_start_write;
136static usb_fifo_cmd_t uhid_stop_write;
137static usb_fifo_open_t uhid_open;
138static usb_fifo_close_t uhid_close;
139static usb_fifo_ioctl_t uhid_ioctl;
140
141static struct usb_fifo_methods uhid_fifo_methods = {
142 .f_open = &uhid_open,
143 .f_close = &uhid_close,
144 .f_ioctl = &uhid_ioctl,
145 .f_start_read = &uhid_start_read,
146 .f_stop_read = &uhid_stop_read,
147 .f_start_write = &uhid_start_write,

--- 640 unchanged lines hidden ---
140
141static struct usb_fifo_methods uhid_fifo_methods = {
142 .f_open = &uhid_open,
143 .f_close = &uhid_close,
144 .f_ioctl = &uhid_ioctl,
145 .f_start_read = &uhid_start_read,
146 .f_stop_read = &uhid_stop_read,
147 .f_start_write = &uhid_start_write,

--- 640 unchanged lines hidden ---