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

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [sw/] [drivers/] [eth.h] - Diff between revs 36 and 53

Show entire file | Details | Blame | View Log

Rev 36 Rev 53
Line 1... Line 1...
 
 
void eth_init();
void eth_init();
void eth_interrupt();
void eth_interrupt();
void eth_recv_ack(void);
void eth_recv_ack(void);
 
 
int eth_send(int length);   //return (-1) or length (still processing previous) or asserted
int eth_send(int length);   //return (-1) or length (still processing previous) or asserted
Line 32... Line 31...
 
 
#define ETH_RXBD0H              0x604   //this depends on TX_BD_NUM but this is the standard value
#define ETH_RXBD0H              0x604   //this depends on TX_BD_NUM but this is the standard value
#define ETH_RXBD0L              0x600   //this depends on TX_BD_NUM but this is the standard value
#define ETH_RXBD0L              0x600   //this depends on TX_BD_NUM but this is the standard value
 
 
//MODER BITS
//MODER BITS
#define ETH_RECSMALL        0x00010000
#define ETH_RECSMAL             0x00010000
#define ETH_PAD                 0x00008000
#define ETH_PAD                 0x00008000
#define ETH_HUGEN               0x00004000
#define ETH_HUGEN               0x00004000
#define ETH_CRCEN               0x00002000
#define ETH_CRCEN               0x00002000
#define ETH_DLYCRCEN        0x00001000
#define ETH_DLYCRCEN        0x00001000
#define ETH_FULLD               0x00000400
#define ETH_FULLD               0x00000400
Line 106... Line 105...
#define RX_READY    ( ETH_RXBD_EMPTY | ETH_RXBD_IRQ | ETH_RXBD_WRAP )
#define RX_READY    ( ETH_RXBD_EMPTY | ETH_RXBD_IRQ | ETH_RXBD_WRAP )
#define TX_READY ( ETH_TXBD_IRQ | ETH_TXBD_WRAP | ETH_TXBD_PAD | ETH_TXBD_CRC )
#define TX_READY ( ETH_TXBD_IRQ | ETH_TXBD_WRAP | ETH_TXBD_PAD | ETH_TXBD_CRC )
 
 
//~user defines
//~user defines
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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