Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

92 lines (79 sloc) 1.69 kb
#ifndef _USB_H
#define _USB_H
#include "short_types.h"
struct usb_endpoint {
struct list_head list;
char *bEndpointAddress;
char *bInterval;
char *bLength;
char *bmAttributes;
char *direction;
char *type;
char *wMaxPacketSize;
};
struct usb_config {
struct list_head list;
u8 bLength;
u8 bDescriptorType;
u16 wTotalLength;
u8 bNumInterfaces;
u8 bConfigurationValue;
u8 iConfiguration;
u8 bmAttributes;
u8 bMaxPower;
};
struct usb_interface {
struct list_head list;
struct list_head endpoints;
unsigned int configuration;
unsigned int ifnum;
char *sysname;
char *bAlternateSetting;
char *bInterfaceClass;
char *bInterfaceNumber;
char *bInterfaceProtocol;
char *bInterfaceSubClass;
char *bNumEndpoints;
char *name;
char *driver;
};
struct usb_device_qualifier {
char *bLength;
char *bDescriptorType;
char *bcdUSB;
char *bDeviceClass;
char *bDeviceSubClass;
char *bDeviceProtocol;
char *bMaxPacketSize0;
char *bNumConfigurations;
};
struct usb_device {
struct list_head list; /* connect devices independant of the bus */
struct list_head interfaces;
char *idProduct;
char *idVendor;
char *busnum;
char *devnum;
char *maxchild;
char *quirks;
char *speed;
char *version;
char *bConfigurationValue;
char *bDeviceClass;
char *bDeviceProtocol;
char *bDeviceSubClass;
char *bNumConfigurations;
char *bNumInterfaces;
char *bmAttributes;
char *bMaxPacketSize0;
char *bMaxPower;
char *manufacturer;
char *bcdDevice;
char *product;
char *serial;
struct usb_endpoint *ep0;
struct usb_device_qualifier *qualifier;
char *name;
char *driver; /* always "usb" but hey, it's nice to be complete */
};
#endif /* #define _USB_H */
Jump to Line
Something went wrong with that request. Please try again.