Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fec.h File Reference

Go to the source code of this file.

Data Structures

struct  bcom_fec_bd
 

Macros

#define BCOM_FEC_TX_BD_TFD   0x08000000ul /* transmit frame done */
 
#define BCOM_FEC_TX_BD_TC   0x04000000ul /* transmit CRC */
 
#define BCOM_FEC_TX_BD_ABC   0x02000000ul /* append bad CRC */
 
#define BCOM_FEC_RX_BD_L   0x08000000ul /* buffer is last in frame */
 
#define BCOM_FEC_RX_BD_BC   0x00800000ul /* DA is broadcast */
 
#define BCOM_FEC_RX_BD_MC   0x00400000ul /* DA is multicast and not broadcast */
 
#define BCOM_FEC_RX_BD_LG   0x00200000ul /* Rx frame length violation */
 
#define BCOM_FEC_RX_BD_NO   0x00100000ul /* Rx non-octet aligned frame */
 
#define BCOM_FEC_RX_BD_CR   0x00040000ul /* Rx CRC error */
 
#define BCOM_FEC_RX_BD_OV   0x00020000ul /* overrun */
 
#define BCOM_FEC_RX_BD_TR   0x00010000ul /* Rx frame truncated */
 
#define BCOM_FEC_RX_BD_LEN_MASK   0x000007fful /* mask for length of received frame */
 
#define BCOM_FEC_RX_BD_ERRORS
 

Functions

struct bcom_taskbcom_fec_rx_init (int queue_len, phys_addr_t fifo, int maxbufsize)
 
int bcom_fec_rx_reset (struct bcom_task *tsk)
 
void bcom_fec_rx_release (struct bcom_task *tsk)
 
struct bcom_taskbcom_fec_tx_init (int queue_len, phys_addr_t fifo)
 
int bcom_fec_tx_reset (struct bcom_task *tsk)
 
void bcom_fec_tx_release (struct bcom_task *tsk)
 

Macro Definition Documentation

#define BCOM_FEC_RX_BD_BC   0x00800000ul /* DA is broadcast */

Definition at line 28 of file fec.h.

#define BCOM_FEC_RX_BD_CR   0x00040000ul /* Rx CRC error */

Definition at line 32 of file fec.h.

#define BCOM_FEC_RX_BD_ERRORS
Value:

Definition at line 36 of file fec.h.

#define BCOM_FEC_RX_BD_L   0x08000000ul /* buffer is last in frame */

Definition at line 27 of file fec.h.

#define BCOM_FEC_RX_BD_LEN_MASK   0x000007fful /* mask for length of received frame */

Definition at line 35 of file fec.h.

#define BCOM_FEC_RX_BD_LG   0x00200000ul /* Rx frame length violation */

Definition at line 30 of file fec.h.

#define BCOM_FEC_RX_BD_MC   0x00400000ul /* DA is multicast and not broadcast */

Definition at line 29 of file fec.h.

#define BCOM_FEC_RX_BD_NO   0x00100000ul /* Rx non-octet aligned frame */

Definition at line 31 of file fec.h.

#define BCOM_FEC_RX_BD_OV   0x00020000ul /* overrun */

Definition at line 33 of file fec.h.

#define BCOM_FEC_RX_BD_TR   0x00010000ul /* Rx frame truncated */

Definition at line 34 of file fec.h.

#define BCOM_FEC_TX_BD_ABC   0x02000000ul /* append bad CRC */

Definition at line 25 of file fec.h.

#define BCOM_FEC_TX_BD_TC   0x04000000ul /* transmit CRC */

Definition at line 24 of file fec.h.

#define BCOM_FEC_TX_BD_TFD   0x08000000ul /* transmit frame done */

Definition at line 23 of file fec.h.

Function Documentation

struct bcom_task* bcom_fec_rx_init ( int  queue_len,
phys_addr_t  fifo,
int  maxbufsize 
)
read

Definition at line 85 of file fec.c.

void bcom_fec_rx_release ( struct bcom_task tsk)

Definition at line 158 of file fec.c.

int bcom_fec_rx_reset ( struct bcom_task tsk)

Definition at line 111 of file fec.c.

struct bcom_task* bcom_fec_tx_init ( int  queue_len,
phys_addr_t  fifo 
)
read

Definition at line 187 of file fec.c.

void bcom_fec_tx_release ( struct bcom_task tsk)

Definition at line 259 of file fec.c.

int bcom_fec_tx_reset ( struct bcom_task tsk)

Definition at line 212 of file fec.c.