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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [peripheral/] [eth.c] - Diff between revs 1487 and 1557

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

Rev 1487 Rev 1557
Line 62... Line 62...
static void eth_controller_tx_clock( void * );
static void eth_controller_tx_clock( void * );
static void eth_controller_rx_clock( void * );
static void eth_controller_rx_clock( void * );
/* utility functions */
/* utility functions */
static ssize_t eth_read_rx_file( struct eth_device *, void *, size_t );
static ssize_t eth_read_rx_file( struct eth_device *, void *, size_t );
static void eth_skip_rx_file( struct eth_device *, off_t );
static void eth_skip_rx_file( struct eth_device *, off_t );
static void eth_rewind_rx_file( struct eth_device *, off_t );
 
static void eth_rx_next_packet( struct eth_device * );
static void eth_rx_next_packet( struct eth_device * );
static void eth_write_tx_bd_num( struct eth_device *, unsigned long value );
static void eth_write_tx_bd_num( struct eth_device *, unsigned long value );
/* ========================================================================= */
/* ========================================================================= */
/*  TX LOGIC                                                                 */
/*  TX LOGIC                                                                 */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
Line 451... Line 450...
void eth_skip_rx_file( struct eth_device *eth, off_t count )
void eth_skip_rx_file( struct eth_device *eth, off_t count )
{
{
    eth->rx.offset += count;
    eth->rx.offset += count;
}
}
 
 
/* Move RX file position back */
 
void eth_rewind_rx_file( struct eth_device *eth, off_t count )
 
{
 
    eth->rx.offset -= count;
 
}
 
/*
/*
 * Utility function to read from the ethernet RX file
 * Utility function to read from the ethernet RX file
 * This function moves the file pointer to the current place in the packet before reading
 * This function moves the file pointer to the current place in the packet before reading
 */
 */
ssize_t eth_read_rx_file( struct eth_device *eth, void *buf, size_t count )
ssize_t eth_read_rx_file( struct eth_device *eth, void *buf, size_t count )

powered by: WebSVN 2.1.0

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