URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/bootloaders/orpmon/services
- from Rev 175 to Rev 246
- ↔ Reverse comparison
Rev 175 → Rev 246
/modem.c
2,7 → 2,7
#include "support.h" |
#include "net.h" |
#include "uart.h" |
#include "spr_defs.h" |
#include "spr-defs.h" |
#include "flash.h" |
|
#define SOH 0x01 |
/net.c
67,8 → 67,10
#include "arp.h" |
#if OC_LAN==1 |
#include "eth.h" |
#else if SMC91111_LAN==1 |
#include "smc91111.h" |
#else |
# if SMC91111_LAN==1 |
# include "smc91111.h" |
# endif |
#endif |
|
#if 0 |
310,8 → 312,10
|
memcpy(p, (void *)pkt, len); |
eth_send(p, len); |
#else if SMC91111_LAN==1 |
#else |
# if SMC91111_LAN==1 |
eth_send(pkt, len); |
# endif |
#endif |
} |
|
/tftp.c
10,8 → 10,6
#include "tftp.h" |
#include "bootp.h" |
|
//#undef ET_DEBUG |
#define ET_DEBUG |
|
#define WELL_KNOWN_PORT 69 /* Well known TFTP port # */ |
#define TIMEOUT 2 /* Seconds to timeout for a lost pkt */ |
161,7 → 159,7
int len = 0; |
|
#ifdef ET_DEBUG |
//printf("TftpSend: %d\n", TftpState); |
printf("TftpSend: %d\n", TftpState); |
#endif |
|
|
279,25 → 277,28
break; |
} |
} |
|
|
if (TftpBlock == TftpLastBlock) { |
/* |
* Same block again; ignore it. |
*/ |
break; |
/* |
* Same block again; resend ack (maybe got lost last time) |
*/ |
TftpSend (); |
break; |
} |
|
TftpLastBlock = TftpBlock; |
NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout); |
|
store_block (TftpBlock - 1, pkt + 2, len); |
|
else |
{ |
TftpLastBlock = TftpBlock; |
NetSetTimeout (TIMEOUT * TICKS_PER_SEC, TftpTimeout); |
|
store_block (TftpBlock - 1, pkt + 2, len); |
} |
|
/* |
* Acknoledge the block just received, which will prompt |
* the server for the next one. |
*/ |
TftpSend (); |
|
|
if (len < 512) { |
/* |
* We received the whole thing. Try to |