aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/usb-core.h
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:27:00 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-07-24 14:46:23 +0530
commit91826241af54c7c7adbfc0480d5dde918d8949d8 (patch)
tree2be0fd783538910b5088af493e3b831ece122f9a /lib/libusb/usb-core.h
parent0376b7eb561233d9b541efbc4c614460e2ae3097 (diff)
downloadSLOF-91826241af54c7c7adbfc0480d5dde918d8949d8.zip
SLOF-91826241af54c7c7adbfc0480d5dde918d8949d8.tar.gz
SLOF-91826241af54c7c7adbfc0480d5dde918d8949d8.tar.bz2
usb-core: usb send control
Introduce generice usb_send_control and implement correspoding stubs in ohci and ehci Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Acked-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'lib/libusb/usb-core.h')
-rw-r--r--lib/libusb/usb-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/usb-core.h b/lib/libusb/usb-core.h
index 346bc96..1de15d6 100644
--- a/lib/libusb/usb-core.h
+++ b/lib/libusb/usb-core.h
@@ -120,6 +120,7 @@ struct usb_hcd_ops {
void (*init)(struct usb_hcd_dev *);
void (*detect)(void);
void (*disconnect)(void);
+ int (*send_ctrl)(struct usb_pipe *pipe, struct usb_dev_req *req, void *data);
struct usb_pipe* (*get_pipe)(struct usb_dev *dev, struct usb_ep_descr *ep,
char *buf, size_t len);
void (*put_pipe)(struct usb_pipe *);
@@ -131,5 +132,6 @@ extern void usb_hcd_register(struct usb_hcd_ops *ops);
extern struct usb_pipe *usb_get_pipe(struct usb_dev *dev, struct usb_ep_descr *ep,
char *buf, size_t len);
extern void usb_put_pipe(struct usb_pipe *pipe);
+extern int usb_send_ctrl(struct usb_pipe *pipe, struct usb_dev_req *req, void *data);
#endif