|
@@ -93,6 +93,14 @@ struct eth_pdata {
|
|
|
int phy_interface;
|
|
|
};
|
|
|
|
|
|
+enum eth_recv_flags {
|
|
|
+ /*
|
|
|
+ * Check hardware device for new packets (otherwise only return those
|
|
|
+ * which are already in the memory buffer ready to process)
|
|
|
+ */
|
|
|
+ ETH_RECV_CHECK_DEVICE = 1 << 0,
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* struct eth_ops - functions of Ethernet MAC controllers
|
|
|
*
|
|
@@ -120,7 +128,7 @@ struct eth_pdata {
|
|
|
struct eth_ops {
|
|
|
int (*start)(struct udevice *dev);
|
|
|
int (*send)(struct udevice *dev, void *packet, int length);
|
|
|
- int (*recv)(struct udevice *dev, uchar **packetp);
|
|
|
+ int (*recv)(struct udevice *dev, int flags, uchar **packetp);
|
|
|
int (*free_pkt)(struct udevice *dev, uchar *packet, int length);
|
|
|
void (*stop)(struct udevice *dev);
|
|
|
#ifdef CONFIG_MCAST_TFTP
|