diff options
| author | Greg Kroah-Hartman <greg@soap.kroah.net> | 2002-02-06 22:27:46 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@soap.kroah.net> | 2002-02-06 22:27:46 -0800 |
| commit | 6022ea62303f2bbcd3cbb1a9bf1000ff046a6839 (patch) | |
| tree | f0019a0c829c6926b45109aec31a324b831b9d1e /include/linux/usb.h | |
| parent | 5f9bc7f10e1944d83ea5bdb7f4a4252e857cfd36 (diff) | |
Added driverfs support for the USB subsystem.
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index d598c720ad2d..b577fce7d0ee 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1,6 +1,8 @@ #ifndef __LINUX_USB_H #define __LINUX_USB_H +#include <linux/device.h> + /* USB constants */ /* @@ -260,6 +262,7 @@ struct usb_interface { int max_altsetting; /* total memory allocated */ struct usb_driver *driver; /* driver */ + struct device dev; /* interface specific device info */ void *private_data; }; @@ -945,6 +948,7 @@ extern struct usb_bus *usb_alloc_bus(struct usb_operations *); extern void usb_free_bus(struct usb_bus *); extern void usb_register_bus(struct usb_bus *); extern void usb_deregister_bus(struct usb_bus *); +extern int usb_register_root_hub(struct usb_device *usb_dev, struct device *parent_dev); extern int usb_check_bandwidth (struct usb_device *dev, struct urb *urb); extern void usb_claim_bandwidth (struct usb_device *dev, struct urb *urb, @@ -1041,6 +1045,8 @@ struct usb_device { struct usb_device *parent; struct usb_bus *bus; /* Bus we're part of */ + struct device dev; /* Generic device interface */ + struct usb_device_descriptor descriptor;/* Descriptor */ struct usb_config_descriptor *config; /* All of the configs */ struct usb_config_descriptor *actconfig;/* the active configuration */ |
