OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orpmon/] [services/] [net.c] - Diff between revs 1312 and 1495

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1312 Rev 1495
Line 63... Line 63...
#include "net.h"
#include "net.h"
#include "bootp.h"
#include "bootp.h"
#include "tftp.h"
#include "tftp.h"
#include "rarp.h"
#include "rarp.h"
#include "arp.h"
#include "arp.h"
 
#if OC_LAN==1
#include "eth.h"
#include "eth.h"
 
#else if SMC91111_LAN==1
 
  #include "smc91111.h"
 
#endif
 
 
#if 0
#if 0
#define ET_DEBUG
#define ET_DEBUG
#endif
#endif
 
 
Line 291... Line 295...
 
 
 
 
void
void
NetSendPacket(volatile unsigned char * pkt, int len)
NetSendPacket(volatile unsigned char * pkt, int len)
{
{
 
 
 
#if OC_LAN==1
  unsigned char *p;
  unsigned char *p;
 
 
  p = eth_get_tx_buf();
  p = eth_get_tx_buf();
  memcpy(p, (void *)pkt, len);
  memcpy(p, (void *)pkt, len);
  eth_send(p, len);
  eth_send(p, len);
 
#else if SMC91111_LAN==1
 
  eth_send(pkt, len);
 
#endif
}
}
 
 
 
 
 
 
void
void

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.