URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 411 |
Rev 439 |
Line 56... |
Line 56... |
static void oeth_tx(void);
|
static void oeth_tx(void);
|
/* Function to calculate checksum of ping responses we send */
|
/* Function to calculate checksum of ping responses we send */
|
unsigned short calculate_checksum(char* dats, unsigned int len) ;
|
unsigned short calculate_checksum(char* dats, unsigned int len) ;
|
|
|
/* Let the ethernet packets use a space beginning here for buffering */
|
/* Let the ethernet packets use a space beginning here for buffering */
|
#define ETH_BUFF_BASE 0x01000000
|
#define ETH_BUFF_BASE 0x200000;
|
|
|
#define RXBUFF_PREALLOC 1
|
#define RXBUFF_PREALLOC 1
|
#define TXBUFF_PREALLOC 1
|
#define TXBUFF_PREALLOC 1
|
|
|
/* The transmitter timeout
|
/* The transmitter timeout
|
Line 443... |
Line 443... |
rx_done = 0;
|
rx_done = 0;
|
|
|
ethmac_setup(); /* Configure MAC, TX/RX BDs and enable RX in MODER */
|
ethmac_setup(); /* Configure MAC, TX/RX BDs and enable RX in MODER */
|
|
|
|
|
|
|
#define NUM_PRIMES_TO_CHECK 1000
|
#define NUM_PRIMES_TO_CHECK 1000
|
#define RX_TEST_LENGTH_PACKETS 50
|
#define RX_TEST_LENGTH_PACKETS 50
|
|
|
char prime_check_results[NUM_PRIMES_TO_CHECK];
|
char prime_check_results[NUM_PRIMES_TO_CHECK];
|
unsigned long num_to_check;
|
unsigned long num_to_check;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.