usb.h (3c377ef1000d57cb1faf8b86ea77cfa47141db33) usb.h (d9e1e1484ade396b3a979ba6c68798dbaceed1b9)
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

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

1762 void *data, int len, int *actual_length,
1763 int timeout);
1764
1765/* wrappers around usb_control_msg() for the most common standard requests */
1766extern int usb_get_descriptor(struct usb_device *dev, unsigned char desctype,
1767 unsigned char descindex, void *buf, int size);
1768extern int usb_get_status(struct usb_device *dev,
1769 int recip, int target, void *data);
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

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

1762 void *data, int len, int *actual_length,
1763 int timeout);
1764
1765/* wrappers around usb_control_msg() for the most common standard requests */
1766extern int usb_get_descriptor(struct usb_device *dev, unsigned char desctype,
1767 unsigned char descindex, void *buf, int size);
1768extern int usb_get_status(struct usb_device *dev,
1769 int recip, int target, void *data);
1770
1771static inline int usb_get_std_status(struct usb_device *dev,
1772 int recip, int target, void *data)
1773{
1774 return usb_get_status(dev, recip, target, data);
1775}
1776
1770extern int usb_string(struct usb_device *dev, int index,
1771 char *buf, size_t size);
1772
1773/* wrappers that also update important state inside usbcore */
1774extern int usb_clear_halt(struct usb_device *dev, int pipe);
1775extern int usb_reset_configuration(struct usb_device *dev);
1776extern int usb_set_interface(struct usb_device *dev, int ifnum, int alternate);
1777extern void usb_reset_endpoint(struct usb_device *dev, unsigned int epaddr);

--- 202 unchanged lines hidden ---
1777extern int usb_string(struct usb_device *dev, int index,
1778 char *buf, size_t size);
1779
1780/* wrappers that also update important state inside usbcore */
1781extern int usb_clear_halt(struct usb_device *dev, int pipe);
1782extern int usb_reset_configuration(struct usb_device *dev);
1783extern int usb_set_interface(struct usb_device *dev, int ifnum, int alternate);
1784extern void usb_reset_endpoint(struct usb_device *dev, unsigned int epaddr);

--- 202 unchanged lines hidden ---