diff options
author | Simon Glass <sjg@chromium.org> | 2011-06-13 16:13:09 -0700 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-08-08 21:05:23 +0200 |
commit | 291391bed566a569a80b50c924a7c43747abc1b5 (patch) | |
tree | 02d280a4d24d650a41fd8c5e17914279d174e4fc /include | |
parent | fa82f871c8dbc9a15e8dc274b3f99dd5fa0da458 (diff) | |
download | u-boot-imx-291391bed566a569a80b50c924a7c43747abc1b5.zip u-boot-imx-291391bed566a569a80b50c924a7c43747abc1b5.tar.gz u-boot-imx-291391bed566a569a80b50c924a7c43747abc1b5.tar.bz2 |
Add support for SMSC95XX USB 2.0 10/100MBit Ethernet Adapter
The SMSC95XX is a USB hub with a built-in Ethernet adapter. This adds support
for this, using the USB host network framework.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_ether.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/usb_ether.h b/include/usb_ether.h index 825c275..a7fb26b 100644 --- a/include/usb_ether.h +++ b/include/usb_ether.h @@ -51,6 +51,11 @@ struct ueth_data { unsigned char irqinterval; /* Intervall for IRQ Pipe */ /* private fields for each driver can go here if needed */ +#ifdef CONFIG_USB_ETHER_SMSC95XX + size_t rx_urb_size; /* maximum USB URB size */ + u32 mac_cr; /* MAC control register value */ + int have_hwaddr; /* 1 if we have a hardware MAC address */ +#endif }; /* @@ -65,4 +70,12 @@ int asix_eth_get_info(struct usb_device *dev, struct ueth_data *ss, struct eth_device *eth); #endif +#ifdef CONFIG_USB_ETHER_SMSC95XX +void smsc95xx_eth_before_probe(void); +int smsc95xx_eth_probe(struct usb_device *dev, unsigned int ifnum, + struct ueth_data *ss); +int smsc95xx_eth_get_info(struct usb_device *dev, struct ueth_data *ss, + struct eth_device *eth); +#endif + #endif /* __USB_ETHER_H__ */ |