Deleted Added
full compact
usb_device.h (191824) usb_device.h (192499)
1/* $FreeBSD: head/sys/dev/usb/usb_device.h 191824 2009-05-05 15:36:23Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb/usb_device.h 192499 2009-05-21 00:04:17Z thompsa $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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
9 * notice, this list of conditions and the following disclaimer.

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

78 uint8_t alt_index;
79 uint8_t parent_iface_index;
80};
81
82/*
83 * The following structure defines the USB device flags.
84 */
85struct usb2_device_flags {
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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
9 * notice, this list of conditions and the following disclaimer.

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

78 uint8_t alt_index;
79 uint8_t parent_iface_index;
80};
81
82/*
83 * The following structure defines the USB device flags.
84 */
85struct usb2_device_flags {
86 uint8_t usb2_mode:1; /* USB mode (see USB_MODE_XXX) */
86 enum usb_hc_mode usb_mode; /* host or device mode */
87 uint8_t self_powered:1; /* set if USB device is self powered */
88 uint8_t no_strings:1; /* set if USB device does not support
89 * strings */
90 uint8_t remote_wakeup:1; /* set if remote wakeup is enabled */
91 uint8_t uq_bus_powered:1; /* set if BUS powered quirk is present */
92
93 /*
94 * NOTE: Although the flags below will reach the same value

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

185
186extern int usb2_template;
187
188/* function prototypes */
189
190struct usb2_device *usb2_alloc_device(device_t parent_dev, struct usb2_bus *bus,
191 struct usb2_device *parent_hub, uint8_t depth,
192 uint8_t port_index, uint8_t port_no, uint8_t speed,
87 uint8_t self_powered:1; /* set if USB device is self powered */
88 uint8_t no_strings:1; /* set if USB device does not support
89 * strings */
90 uint8_t remote_wakeup:1; /* set if remote wakeup is enabled */
91 uint8_t uq_bus_powered:1; /* set if BUS powered quirk is present */
92
93 /*
94 * NOTE: Although the flags below will reach the same value

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

185
186extern int usb2_template;
187
188/* function prototypes */
189
190struct usb2_device *usb2_alloc_device(device_t parent_dev, struct usb2_bus *bus,
191 struct usb2_device *parent_hub, uint8_t depth,
192 uint8_t port_index, uint8_t port_no, uint8_t speed,
193 uint8_t usb2_mode);
193 enum usb_hc_mode mode);
194struct usb2_pipe *usb2_get_pipe(struct usb2_device *udev, uint8_t iface_index,
195 const struct usb2_config *setup);
196struct usb2_pipe *usb2_get_pipe_by_addr(struct usb2_device *udev, uint8_t ea_val);
197usb2_error_t usb2_interface_count(struct usb2_device *udev, uint8_t *count);
198usb2_error_t usb2_probe_and_attach(struct usb2_device *udev,
199 uint8_t iface_index);
200usb2_error_t usb2_reset_iface_endpoints(struct usb2_device *udev,
201 uint8_t iface_index);

--- 17 unchanged lines hidden ---
194struct usb2_pipe *usb2_get_pipe(struct usb2_device *udev, uint8_t iface_index,
195 const struct usb2_config *setup);
196struct usb2_pipe *usb2_get_pipe_by_addr(struct usb2_device *udev, uint8_t ea_val);
197usb2_error_t usb2_interface_count(struct usb2_device *udev, uint8_t *count);
198usb2_error_t usb2_probe_and_attach(struct usb2_device *udev,
199 uint8_t iface_index);
200usb2_error_t usb2_reset_iface_endpoints(struct usb2_device *udev,
201 uint8_t iface_index);

--- 17 unchanged lines hidden ---