summaryrefslogtreecommitdiff
path: root/drivers/net/designware.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-01-11 10:46:10 (GMT)
committerSimon Glass <sjg@chromium.org>2017-01-12 03:23:50 (GMT)
commite72ced234045f817df48cec71b4795b00e87afe3 (patch)
treec7f22ca280c49566816b909f6229c78c629358d4 /drivers/net/designware.h
parentf63f28ee2520263f5c78f64f1d404b2c329ffe87 (diff)
downloadu-boot-fsl-qoriq-e72ced234045f817df48cec71b4795b00e87afe3.tar.xz
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index 087ebef..7992d0e 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