mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
net: cosmetic: Fix var naming net <-> eth drivers
Update the naming convention used in the network stack functions and variables that Ethernet drivers use to interact with it. This cleans up the temporary hacks that were added to this interface along with the DM support. This patch has a few remaining checkpatch.pl failures that would be out of the scope of this patch to fix (drivers that are in gross violation of checkpatch.pl). Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
1203fcceec
commit
1fd92db83d
@@ -287,7 +287,7 @@ void redundant_init(struct eth_device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
if (!memcmp(pkt, (void *)NetRxPackets[rx_idx], sizeof(pkt)))
|
||||
if (!memcmp(pkt, (void *)net_rx_packets[rx_idx], sizeof(pkt)))
|
||||
fail = 0;
|
||||
|
||||
out_be16(&rxbd[rx_idx].length, 0);
|
||||
@@ -343,7 +343,7 @@ static void startup_tsec(struct eth_device *dev)
|
||||
for (i = 0; i < PKTBUFSRX; i++) {
|
||||
out_be16(&rxbd[i].status, RXBD_EMPTY);
|
||||
out_be16(&rxbd[i].length, 0);
|
||||
out_be32(&rxbd[i].bufptr, (u32)NetRxPackets[i]);
|
||||
out_be32(&rxbd[i].bufptr, (u32)net_rx_packets[i]);
|
||||
}
|
||||
status = in_be16(&rxbd[PKTBUFSRX - 1].status);
|
||||
out_be16(&rxbd[PKTBUFSRX - 1].status, status | RXBD_WRAP);
|
||||
@@ -430,7 +430,8 @@ static int tsec_recv(struct eth_device *dev)
|
||||
|
||||
/* Send the packet up if there were no errors */
|
||||
if (!(status & RXBD_STATS))
|
||||
NetReceive(NetRxPackets[rx_idx], length - 4);
|
||||
net_process_received_packet(net_rx_packets[rx_idx],
|
||||
length - 4);
|
||||
else
|
||||
printf("Got error %x\n", (status & RXBD_STATS));
|
||||
|
||||
|
Reference in New Issue
Block a user