summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-20 00:00:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-21 07:41:38 +0200
commit8f5889eb0a8a6171be96da58b02ad731eefd2768 (patch)
treecf70947cadc82134010bb664e19a412f8fbdc55c /include/usb
parent31879ed96f75e1e75b150e9665e261a44e3fa904 (diff)
downloadbarebox-8f5889eb0a8a6171be96da58b02ad731eefd2768.tar.gz
barebox-8f5889eb0a8a6171be96da58b02ad731eefd2768.tar.xz
usb: implement a usb_host_detect to scan individual USB hosts
Currently we can only (re)scan all USB hosts. Add a function to scan individual hosts. This is useful for implementing the detect callback in the next patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/usb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 2e1498c8b6..95fb6f3a3b 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -211,10 +211,13 @@ struct usb_host {
struct list_head list;
int busnum;
+ int scanned;
};
int usb_register_host(struct usb_host *);
+int usb_host_detect(struct usb_host *host, int force);
+
/* Defines */
#define USB_UHCI_VEND_ID 0x8086
#define USB_UHCI_DEV_ID 0x7112