OpenCores
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/drivers
    from Rev 175 to Rev 246
    Reverse comparison

Rev 175 → Rev 246

/eth.c
6,7 → 6,7
#include "uart.h"
#include "eth.h"
#include "int.h"
#include "spr_defs.h"
#include "spr-defs.h"
 
//#define PRINT_PACKETS
//#define ETHPHY_10MBPS
332,6 → 332,7
void eth_send (void *buf, unsigned long len)
{
eth_bd *bd;
int i;
 
#ifdef PRINT_PACKETS
printf("transmitted packet:\t");
341,6 → 342,7
bd = (eth_bd *)ETH_BD_BASE;
 
bd[tx_last].addr = (unsigned long)buf;
 
retry_eth_send:
bd[tx_last].len_status &= 0x0000ffff & ~ETH_TX_BD_STATS;
if (eth_monitor_enabled) // enable IRQ when sending
369,6 → 371,7
{
eth_bd *bd;
unsigned long len = 0;
int i;
 
bd = (eth_bd *)ETH_BD_BASE + ETH_TXBD_NUM;
378,7 → 381,7
 
if(bd[rx_next].len_status & ETH_RX_BD_EMPTY)
return len;
 
if(bd[rx_next].len_status & ETH_RX_BD_OVERRUN) {
printf("eth rx: ETH_RX_BD_OVERRUN\n");
bad = 1;
413,6 → 416,7
printf("received packet:\t");
print_packet(bd[rx_next].addr, bd[rx_next].len_status >> 16);
#endif
 
receive((void *)bd[rx_next].addr, bd[rx_next].len_status >> 16);
len += bd[rx_next].len_status >> 16;
}
/int.c
3,7 → 3,7
 
#include "common.h"
#include "support.h"
#include "spr_defs.h"
#include "spr-defs.h"
#include "int.h"
 
#ifdef OR1K
/tick.c
1,7 → 1,7
 
#include "common.h"
#include "support.h"
#include "spr_defs.h"
#include "spr-defs.h"
#include "spincursor.h"
 
void tick_init(void)
/uart.c
31,7 → 31,7
{
int divisor;
float float_divisor;
 
/* Reset receiver and transmiter */
REG8(UART_BASE + UART_FCR) = UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT | UART_FCR_TRIGGER_4;

powered by: WebSVN 2.1.0

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