Deleted Added
full compact
usbdi.h (222786) usbdi.h (223486)
1/*-
2 * Copyright (c) 2009 Andrew Thompson
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
1/*-
2 * Copyright (c) 2009 Andrew Thompson
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/usb/usbdi.h 222786 2011-06-06 21:45:09Z hselasky $
24 * $FreeBSD: head/sys/dev/usb/usbdi.h 223486 2011-06-24 02:30:02Z hselasky $
25 */
26#ifndef _USB_USBDI_H_
27#define _USB_USBDI_H_
28
29struct usb_fifo;
30struct usb_xfer;
31struct usb_device;
32struct usb_attach_arg;

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

223 uint8_t type; /* pipe type */
224 uint8_t endpoint; /* pipe number */
225 uint8_t direction; /* pipe direction */
226 uint8_t ep_index; /* pipe index match to use */
227 uint8_t if_index; /* "ifaces" index to use */
228};
229
230/*
25 */
26#ifndef _USB_USBDI_H_
27#define _USB_USBDI_H_
28
29struct usb_fifo;
30struct usb_xfer;
31struct usb_device;
32struct usb_attach_arg;

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

223 uint8_t type; /* pipe type */
224 uint8_t endpoint; /* pipe number */
225 uint8_t direction; /* pipe direction */
226 uint8_t ep_index; /* pipe index match to use */
227 uint8_t if_index; /* "ifaces" index to use */
228};
229
230/*
231 * Use these macro when defining USB device ID arrays if you want to
232 * have your driver module automatically loaded in host, device or
233 * both modes respectivly:
234 */
235#define STRUCT_USB_HOST_ID \
236 struct usb_device_id __section("usb_host_id")
237#define STRUCT_USB_DEVICE_ID \
238 struct usb_device_id __section("usb_device_id")
239#define STRUCT_USB_DUAL_ID \
240 struct usb_device_id __section("usb_dual_id")
241
242/*
231 * The following structure is used when looking up an USB driver for
232 * an USB device. It is inspired by the Linux structure called
233 * "usb_device_id".
234 */
235struct usb_device_id {
236
237 /* Hook for driver specific information */
238 unsigned long driver_info;

--- 339 unchanged lines hidden ---
243 * The following structure is used when looking up an USB driver for
244 * an USB device. It is inspired by the Linux structure called
245 * "usb_device_id".
246 */
247struct usb_device_id {
248
249 /* Hook for driver specific information */
250 unsigned long driver_info;

--- 339 unchanged lines hidden ---