mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
* Patches by Thomas Viehweger, 16 Mar 2004:
- show PCI clock frequency on MPC8260 systems - add FCC_PSMR_RMII flag for HiP7 processors - in do_jffs2_fsload(), take load address from load_addr if not set explicit, update load_addr otherwise - replaced printf by putc/puts when no formatting is needed (smaller code size, faster execution)
This commit is contained in:
parent
109c0e3ad3
commit
4b9206ed51
35 changed files with 365 additions and 345 deletions
16
net/net.c
16
net/net.c
|
@ -422,7 +422,7 @@ restart:
|
|||
*/
|
||||
if (ctrlc()) {
|
||||
eth_halt();
|
||||
printf("\nAbort\n");
|
||||
puts ("\nAbort\n");
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
@ -733,7 +733,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
* the server ethernet address
|
||||
*/
|
||||
#ifdef ET_DEBUG
|
||||
printf("Got ARP\n");
|
||||
puts ("Got ARP\n");
|
||||
#endif
|
||||
arp = (ARP_t *)ip;
|
||||
if (len < ARP_HDR_SIZE) {
|
||||
|
@ -764,7 +764,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
switch (ntohs(arp->ar_op)) {
|
||||
case ARPOP_REQUEST: /* reply with our IP address */
|
||||
#ifdef ET_DEBUG
|
||||
printf("Got ARP REQUEST, return our IP\n");
|
||||
puts ("Got ARP REQUEST, return our IP\n");
|
||||
#endif
|
||||
NetSetEther((uchar *)et, et->et_src, PROT_ARP);
|
||||
arp->ar_op = htons(ARPOP_REPLY);
|
||||
|
@ -791,7 +791,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
/* matched waiting packet's address */
|
||||
if (tmp == NetArpWaitReplyIP) {
|
||||
#ifdef ET_DEBUG
|
||||
printf("Got it\n");
|
||||
puts ("Got it\n");
|
||||
#endif
|
||||
/* save address for later use */
|
||||
memcpy(NetArpWaitPacketMAC, &arp->ar_data[0], 6);
|
||||
|
@ -816,7 +816,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
|
||||
case PROT_RARP:
|
||||
#ifdef ET_DEBUG
|
||||
printf("Got RARP\n");
|
||||
puts ("Got RARP\n");
|
||||
#endif
|
||||
arp = (ARP_t *)ip;
|
||||
if (len < ARP_HDR_SIZE) {
|
||||
|
@ -829,7 +829,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
(ntohs(arp->ar_pro) != PROT_IP) ||
|
||||
(arp->ar_hln != 6) || (arp->ar_pln != 4)) {
|
||||
|
||||
printf("invalid RARP header\n");
|
||||
puts ("invalid RARP header\n");
|
||||
} else {
|
||||
NetCopyIP(&NetOurIP, &arp->ar_data[16]);
|
||||
if (NetServerIP == 0)
|
||||
|
@ -842,7 +842,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
|
||||
case PROT_IP:
|
||||
#ifdef ET_DEBUG
|
||||
printf("Got IP\n");
|
||||
puts ("Got IP\n");
|
||||
#endif
|
||||
if (len < IP_HDR_SIZE) {
|
||||
debug ("len bad %d < %d\n", len, IP_HDR_SIZE);
|
||||
|
@ -863,7 +863,7 @@ NetReceive(volatile uchar * pkt, int len)
|
|||
return;
|
||||
}
|
||||
if (!NetCksumOk((uchar *)ip, IP_HDR_SIZE_NO_UDP / 2)) {
|
||||
printf("checksum bad\n");
|
||||
puts ("checksum bad\n");
|
||||
return;
|
||||
}
|
||||
tmp = NetReadIP(&ip->ip_dst);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue