]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/xilinx_ll_temac_fifo.c
driver/ldpaa_eth: Add LDPAA Ethernet driver
[karo-tx-uboot.git] / drivers / net / xilinx_ll_temac_fifo.c
index 3ff0f347ed46277dbcd614966d369f4164a60811..78319d7d918cfd5df1da90964a69d02465f82761 100644 (file)
  *
  * CREDITS: tsec driver
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
+ * SPDX-License-Identifier:    GPL-2.0+
  *
  * [0]: http://www.xilinx.com/support/documentation
  *
@@ -51,7 +48,7 @@ int ll_temac_reset_fifo(struct eth_device *dev)
 int ll_temac_recv_fifo(struct eth_device *dev)
 {
        int i, length = 0;
-       u32 *buf = (u32 *)NetRxPackets[0];
+       u32 *buf = (u32 *)net_rx_packets[0];
        struct ll_temac *ll_temac = dev->priv;
        struct fifo_ctrl *fifo_ctrl = (void *)ll_temac->ctrladdr;
 
@@ -96,14 +93,13 @@ int ll_temac_recv_fifo(struct eth_device *dev)
                for (i = 0; i < length; i += 4)
                        *buf++ = in_be32(&fifo_ctrl->rdfd);
 
-               NetReceive(NetRxPackets[0], length);
+               net_process_received_packet(net_rx_packets[0], length);
        }
 
        return 0;
 }
 
-int ll_temac_send_fifo(struct eth_device *dev, volatile void *packet,
-                                                       int length)
+int ll_temac_send_fifo(struct eth_device *dev, void *packet, int length)
 {
        int i;
        u32 *buf = (u32 *)packet;