]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/ns8382x.c
driver/fsl_debug_server: Fix the DDR hide logic for LS2085a
[u-boot] / drivers / net / ns8382x.c
index 11863feba3da0eca4e02b8fae7dff71cc637e113..f941c15b2704f8c843e600959e2c7c2cf9517350 100644 (file)
@@ -258,8 +258,7 @@ static void ns8382x_init_txd(struct eth_device *dev);
 static void ns8382x_init_rxd(struct eth_device *dev);
 static void ns8382x_set_rx_mode(struct eth_device *dev);
 static void ns8382x_check_duplex(struct eth_device *dev);
-static int ns8382x_send(struct eth_device *dev, volatile void *packet,
-                       int length);
+static int ns8382x_send(struct eth_device *dev, void *packet, int length);
 static int ns8382x_poll(struct eth_device *dev);
 static void ns8382x_disable(struct eth_device *dev);
 
@@ -735,8 +734,7 @@ ns8382x_check_duplex(struct eth_device *dev)
 /* Function: ns8382x_send
  * Description: transmits a packet and waits for completion or timeout.
  * Returns:   void.  */
-static int
-ns8382x_send(struct eth_device *dev, volatile void *packet, int length)
+static int ns8382x_send(struct eth_device *dev, void *packet, int length)
 {
        u32 i, status = 0;
        vu_long tx_stat = 0;
@@ -811,11 +809,13 @@ ns8382x_poll(struct eth_device *dev)
 
        if ((rx_status & (DescMore | DescPktOK | DescRxLong)) != DescPktOK) {
                /* corrupted packet received */
-               printf("ns8382x_poll: Corrupted packet, status:%lx\n", rx_status);
+               printf("ns8382x_poll: Corrupted packet, status:%lx\n",
+                      rx_status);
                retstat = 0;
        } else {
                /* give packet to higher level routine */
-               NetReceive((rxb + cur_rx * RX_BUF_SIZE), length);
+               net_process_received_packet((rxb + cur_rx * RX_BUF_SIZE),
+                                           length);
                retstat = 1;
        }