usb.h (9e9fd65d1fa51d919d54d731be0e66492b5b6c5a) usb.h (c5c4bdf02e518a281b229ae0891b346919e2d291)
1#ifndef __LINUX_USB_H
2#define __LINUX_USB_H
3
4#include <linux/mod_devicetable.h>
5#include <linux/usb/ch9.h>
6
7#define USB_MAJOR 180
8#define USB_DEVICE_MAJOR 189

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

326 u8 uses_dma; /* Does the host controller use DMA? */
327 u8 uses_pio_for_control; /*
328 * Does the host controller use PIO
329 * for control transfers?
330 */
331 u8 otg_port; /* 0, or number of OTG/HNP port */
332 unsigned is_b_host:1; /* true during some HNP roleswitches */
333 unsigned b_hnp_enable:1; /* OTG: did A-Host enable HNP? */
1#ifndef __LINUX_USB_H
2#define __LINUX_USB_H
3
4#include <linux/mod_devicetable.h>
5#include <linux/usb/ch9.h>
6
7#define USB_MAJOR 180
8#define USB_DEVICE_MAJOR 189

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

326 u8 uses_dma; /* Does the host controller use DMA? */
327 u8 uses_pio_for_control; /*
328 * Does the host controller use PIO
329 * for control transfers?
330 */
331 u8 otg_port; /* 0, or number of OTG/HNP port */
332 unsigned is_b_host:1; /* true during some HNP roleswitches */
333 unsigned b_hnp_enable:1; /* OTG: did A-Host enable HNP? */
334 unsigned no_stop_on_short:1; /*
335 * Quirk: some controllers don't stop
336 * the ep queue on a short transfer
337 * with the URB_SHORT_NOT_OK flag set.
338 */
334 unsigned sg_tablesize; /* 0 or largest number of sg list entries */
335
336 int devnum_next; /* Next open device number in
337 * round-robin allocation */
338
339 struct usb_devmap devmap; /* device address allocation map */
340 struct usb_device *root_hub; /* Root hub */
341 struct usb_bus *hs_companion; /* Companion EHCI bus, if any */

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

551 unsigned reset_resume:1;
552#endif
553 struct wusb_dev *wusb_dev;
554 int slot_id;
555 enum usb_device_removable removable;
556 struct usb3_lpm_parameters u1_params;
557 struct usb3_lpm_parameters u2_params;
558 unsigned lpm_disable_count;
339 unsigned sg_tablesize; /* 0 or largest number of sg list entries */
340
341 int devnum_next; /* Next open device number in
342 * round-robin allocation */
343
344 struct usb_devmap devmap; /* device address allocation map */
345 struct usb_device *root_hub; /* Root hub */
346 struct usb_bus *hs_companion; /* Companion EHCI bus, if any */

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

556 unsigned reset_resume:1;
557#endif
558 struct wusb_dev *wusb_dev;
559 int slot_id;
560 enum usb_device_removable removable;
561 struct usb3_lpm_parameters u1_params;
562 struct usb3_lpm_parameters u2_params;
563 unsigned lpm_disable_count;
559 unsigned hub_initiated_lpm_disable_count;
560};
561#define to_usb_device(d) container_of(d, struct usb_device, dev)
562
563static inline struct usb_device *interface_to_usbdev(struct usb_interface *intf)
564{
565 return to_usb_device(intf->dev.parent);
566}
567

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

772#define USB_DEVICE_INTERFACE_PROTOCOL(vend, prod, pr) \
773 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
774 USB_DEVICE_ID_MATCH_INT_PROTOCOL, \
775 .idVendor = (vend), \
776 .idProduct = (prod), \
777 .bInterfaceProtocol = (pr)
778
779/**
564};
565#define to_usb_device(d) container_of(d, struct usb_device, dev)
566
567static inline struct usb_device *interface_to_usbdev(struct usb_interface *intf)
568{
569 return to_usb_device(intf->dev.parent);
570}
571

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

776#define USB_DEVICE_INTERFACE_PROTOCOL(vend, prod, pr) \
777 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
778 USB_DEVICE_ID_MATCH_INT_PROTOCOL, \
779 .idVendor = (vend), \
780 .idProduct = (prod), \
781 .bInterfaceProtocol = (pr)
782
783/**
784 * USB_DEVICE_INTERFACE_NUMBER - describe a usb device with a specific interface number
785 * @vend: the 16 bit USB Vendor ID
786 * @prod: the 16 bit USB Product ID
787 * @num: bInterfaceNumber value
788 *
789 * This macro is used to create a struct usb_device_id that matches a
790 * specific interface number of devices.
791 */
792#define USB_DEVICE_INTERFACE_NUMBER(vend, prod, num) \
793 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
794 USB_DEVICE_ID_MATCH_INT_NUMBER, \
795 .idVendor = (vend), \
796 .idProduct = (prod), \
797 .bInterfaceNumber = (num)
798
799/**
780 * USB_DEVICE_INFO - macro used to describe a class of usb devices
781 * @cl: bDeviceClass value
782 * @sc: bDeviceSubClass value
783 * @pr: bDeviceProtocol value
784 *
785 * This macro is used to create a struct usb_device_id that matches a
786 * specific class of devices.
787 */

--- 929 unchanged lines hidden ---
800 * USB_DEVICE_INFO - macro used to describe a class of usb devices
801 * @cl: bDeviceClass value
802 * @sc: bDeviceSubClass value
803 * @pr: bDeviceProtocol value
804 *
805 * This macro is used to create a struct usb_device_id that matches a
806 * specific class of devices.
807 */

--- 929 unchanged lines hidden ---