]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/xilinx_ll_temac_sdma.c
net: cosmetic: Fix var naming net <-> eth drivers
[karo-tx-uboot.git] / drivers / net / xilinx_ll_temac_sdma.c
index 621d100f290fbea89337fd2976efd21a0fded2c9..07c5f6bf10c5604e9d52d3466b96a5bf5f27d68b 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
  *
@@ -183,7 +180,7 @@ int ll_temac_init_sdma(struct eth_device *dev)
                memset(rx_dp, 0, sizeof(*rx_dp));
                rx_dp->next_p = rx_dp;
                rx_dp->buf_len = PKTSIZE_ALIGN;
-               rx_dp->phys_buf_p = (u8 *)NetRxPackets[i];
+               rx_dp->phys_buf_p = (u8 *)net_rx_packets[i];
                flush_cache((u32)rx_dp->phys_buf_p, PKTSIZE_ALIGN);
        }
        flush_cache((u32)cdmac_bd.rx, sizeof(cdmac_bd.rx));
@@ -319,13 +316,12 @@ int ll_temac_recv_sdma(struct eth_device *dev)
        ll_temac->out32(ra[RX_TAILDESC_PTR], (int)&cdmac_bd.rx[rx_idx]);
 
        if (length > 0 && pb_idx != -1)
-               NetReceive(NetRxPackets[pb_idx], length);
+               net_process_received_packet(net_rx_packets[pb_idx], length);
 
        return 0;
 }
 
-int ll_temac_send_sdma(struct eth_device *dev, volatile void *packet,
-                                                       int length)
+int ll_temac_send_sdma(struct eth_device *dev, void *packet, int length)
 {
        unsigned timeout = 50;  /* 1usec * 50 = 50usec */
        struct cdmac_bd *tx_dp = &cdmac_bd.tx[tx_idx];