diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-11 11:46:10 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-01-11 20:23:50 -0700 |
commit | e72ced234045f817df48cec71b4795b00e87afe3 (patch) | |
tree | c7f22ca280c49566816b909f6229c78c629358d4 /drivers/net/designware.h | |
parent | f63f28ee2520263f5c78f64f1d404b2c329ffe87 (diff) | |
download | u-boot-e72ced234045f817df48cec71b4795b00e87afe3.tar.gz u-boot-e72ced234045f817df48cec71b4795b00e87afe3.tar.xz u-boot-e72ced234045f817df48cec71b4795b00e87afe3.zip |
net: designware: Export the operation functions
Export all functions so that drivers can use them, or not, as the need
arises.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/designware.h')
-rw-r--r-- | drivers/net/designware.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h index 087ebef297..7992d0ebee 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -253,6 +253,15 @@ struct dw_eth_pdata { struct eth_pdata eth_pdata; u32 reset_delays[3]; }; + +int designware_eth_init(struct dw_eth_dev *priv, u8 *enetaddr); +int designware_eth_enable(struct dw_eth_dev *priv); +int designware_eth_send(struct udevice *dev, void *packet, int length); +int designware_eth_recv(struct udevice *dev, int flags, uchar **packetp); +int designware_eth_free_pkt(struct udevice *dev, uchar *packet, + int length); +void designware_eth_stop(struct udevice *dev); +int designware_eth_write_hwaddr(struct udevice *dev); #endif #endif |