[PATCH] USB: make endpoints real struct devices
This will allow for us to give endpoints a major/minor to create a "usbfs2-like" way to access endpoints directly from userspace in an easier manner than the current usbfs provides us. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
36679ea598
commit
9bde7497e0
2 changed files with 159 additions and 95 deletions
|
@ -40,6 +40,8 @@ struct usb_driver;
|
|||
* Devices may also have class-specific or vendor-specific descriptors.
|
||||
*/
|
||||
|
||||
struct ep_device;
|
||||
|
||||
/**
|
||||
* struct usb_host_endpoint - host-side endpoint descriptor and queue
|
||||
* @desc: descriptor for this endpoint, wMaxPacketSize in native byteorder
|
||||
|
@ -57,7 +59,7 @@ struct usb_host_endpoint {
|
|||
struct usb_endpoint_descriptor desc;
|
||||
struct list_head urb_list;
|
||||
void *hcpriv;
|
||||
struct kobject *kobj; /* For sysfs info */
|
||||
struct ep_device *ep_dev; /* For sysfs info */
|
||||
|
||||
unsigned char *extra; /* Extra descriptors */
|
||||
int extralen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue