]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/mips/mach-au1x00/au1x00_eth.c
MIPS: change 'extern inline' to 'static inline'
[karo-tx-uboot.git] / arch / mips / mach-au1x00 / au1x00_eth.c
index 39c5b6bc4a8fcb896b3efc7e780379ddb1d6f87d..d6ebe0764344c4bc55f0036064318968367f7ce7 100644 (file)
@@ -187,13 +187,14 @@ static int au1x00_recv(struct eth_device* dev){
 
                if(status&RX_ERROR){
                        printf("Rx error 0x%x\n", status);
-               }
-               else{
+               } else {
                        /* Pass the packet up to the protocol layers. */
-                       NetReceive(NetRxPackets[next_rx], length - 4);
+                       net_process_received_packet(net_rx_packets[next_rx],
+                                                   length - 4);
                }
 
-               fifo_rx[next_rx].addr = (virt_to_phys(NetRxPackets[next_rx]))|RX_DMA_ENABLE;
+               fifo_rx[next_rx].addr =
+                       (virt_to_phys(net_rx_packets[next_rx])) | RX_DMA_ENABLE;
 
                next_rx++;
                if(next_rx>=NO_OF_FIFOS){
@@ -234,11 +235,12 @@ static int au1x00_init(struct eth_device* dev, bd_t * bd){
        for(i=0;i<NO_OF_FIFOS;i++){
                fifo_tx[i].len = 0;
                fifo_tx[i].addr = virt_to_phys(&txbuf[0]);
-               fifo_rx[i].addr = (virt_to_phys(NetRxPackets[i]))|RX_DMA_ENABLE;
+               fifo_rx[i].addr = (virt_to_phys(net_rx_packets[i])) |
+                       RX_DMA_ENABLE;
        }
 
        /* Put mac addr in little endian */
-#define ea eth_get_dev()->enetaddr
+#define ea eth_get_ethaddr()
        *mac_addr_high  =       (ea[5] <<  8) | (ea[4]      ) ;
        *mac_addr_low   =       (ea[3] << 24) | (ea[2] << 16) |
                (ea[1] <<  8) | (ea[0]      ) ;