mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00: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:
parent
1203fcceec
commit
1fd92db83d
72 changed files with 225 additions and 209 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue