diff options
author | Simon Glass <sjg@chromium.org> | 2011-02-16 11:14:33 -0800 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-02-19 20:32:36 +0100 |
commit | 89d48367edbc878f86db3008a4107331ef07f578 (patch) | |
tree | 808742d920445274c97d867422762b3b67cc8391 /include/usb.h | |
parent | 96820a35873b4c005f732432c6a168decc9d22b9 (diff) | |
download | u-boot-imx-89d48367edbc878f86db3008a4107331ef07f578.zip u-boot-imx-89d48367edbc878f86db3008a4107331ef07f578.tar.gz u-boot-imx-89d48367edbc878f86db3008a4107331ef07f578.tar.bz2 |
Add USB host ethernet adapter support
This adds support for using USB Ethernet dongles in host mode. This is just
the framework - drivers will come later. A new config option called
CONFIG_USB_HOST_ETHER can be defined in board config files to switch this
on.
The was originally written by NVIDIA and was cleaned up for release by the
Chromium authors.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usb.h')
-rw-r--r-- | include/usb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/usb.h b/include/usb.h index 98576b7..53603a5 100644 --- a/include/usb.h +++ b/include/usb.h @@ -168,6 +168,13 @@ int usb_stor_info(void); #endif +#ifdef CONFIG_USB_HOST_ETHER + +#define USB_MAX_ETH_DEV 5 +int usb_host_eth_scan(int mode); + +#endif + #ifdef CONFIG_USB_KEYBOARD int drv_usb_kbd_init(void); @@ -191,7 +198,7 @@ int usb_bulk_msg(struct usb_device *dev, unsigned int pipe, void *data, int len, int *actual_length, int timeout); int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer, int transfer_len, int interval); -void usb_disable_asynch(int disable); +int usb_disable_asynch(int disable); int usb_maxpacket(struct usb_device *dev, unsigned long pipe); inline void wait_ms(unsigned long ms); int usb_get_configuration_no(struct usb_device *dev, unsigned char *buffer, |