URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 817 |
Rev 833 |
Line 8... |
Line 8... |
#define ETH_RXBD_NUM 8
|
#define ETH_RXBD_NUM 8
|
#define ETH_RXBD_NUM_MASK (ETH_RXBD_NUM - 1)
|
#define ETH_RXBD_NUM_MASK (ETH_RXBD_NUM - 1)
|
|
|
/* Ethernet buffer descriptor */
|
/* Ethernet buffer descriptor */
|
typedef struct _eth_bd {
|
typedef struct _eth_bd {
|
unsigned short len; /* Buffer length */
|
volatile unsigned short len; /* Buffer length */
|
unsigned short status; /* Buffer status */
|
volatile unsigned short status; /* Buffer status */
|
unsigned long addr; /* Buffer address */
|
volatile unsigned long addr; /* Buffer address */
|
} eth_bd;
|
} eth_bd;
|
|
|
extern void eth_init (void (*rec)(volatile unsigned char *, int));
|
extern void eth_init (void (*rec)(volatile unsigned char *, int));
|
extern void *eth_get_tx_buf (void);
|
extern void *eth_get_tx_buf (void);
|
extern void eth_send (void *buf, unsigned long len);
|
extern void eth_send (void *buf, unsigned long len);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.