Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
greth.h File Reference
#include <linux/phy.h>

Go to the source code of this file.

Data Structures

struct  greth_regs
 
struct  greth_bd
 
struct  greth_private
 

Macros

#define GRETH_RESET   0x40
 
#define GRETH_MII_BUSY   0x8
 
#define GRETH_MII_NVALID   0x10
 
#define GRETH_CTRL_FD   0x10
 
#define GRETH_CTRL_PR   0x20
 
#define GRETH_CTRL_SP   0x80
 
#define GRETH_CTRL_GB   0x100
 
#define GRETH_CTRL_PSTATIEN   0x400
 
#define GRETH_CTRL_MCEN   0x800
 
#define GRETH_CTRL_DISDUPLEX   0x1000
 
#define GRETH_STATUS_PHYSTAT   0x100
 
#define GRETH_BD_EN   0x800
 
#define GRETH_BD_WR   0x1000
 
#define GRETH_BD_IE   0x2000
 
#define GRETH_BD_LEN   0x7FF
 
#define GRETH_TXEN   0x1
 
#define GRETH_INT_TE   0x2
 
#define GRETH_INT_TX   0x8
 
#define GRETH_TXI   0x4
 
#define GRETH_TXBD_STATUS   0x0001C000
 
#define GRETH_TXBD_MORE   0x20000
 
#define GRETH_TXBD_IPCS   0x40000
 
#define GRETH_TXBD_TCPCS   0x80000
 
#define GRETH_TXBD_UDPCS   0x100000
 
#define GRETH_TXBD_CSALL   (GRETH_TXBD_IPCS | GRETH_TXBD_TCPCS | GRETH_TXBD_UDPCS)
 
#define GRETH_TXBD_ERR_LC   0x10000
 
#define GRETH_TXBD_ERR_UE   0x4000
 
#define GRETH_TXBD_ERR_AL   0x8000
 
#define GRETH_INT_RE   0x1
 
#define GRETH_INT_RX   0x4
 
#define GRETH_RXEN   0x2
 
#define GRETH_RXI   0x8
 
#define GRETH_RXBD_STATUS   0xFFFFC000
 
#define GRETH_RXBD_ERR_AE   0x4000
 
#define GRETH_RXBD_ERR_FT   0x8000
 
#define GRETH_RXBD_ERR_CRC   0x10000
 
#define GRETH_RXBD_ERR_OE   0x20000
 
#define GRETH_RXBD_ERR_LE   0x40000
 
#define GRETH_RXBD_IP   0x80000
 
#define GRETH_RXBD_IP_CSERR   0x100000
 
#define GRETH_RXBD_UDP   0x200000
 
#define GRETH_RXBD_UDP_CSERR   0x400000
 
#define GRETH_RXBD_TCP   0x800000
 
#define GRETH_RXBD_TCP_CSERR   0x1000000
 
#define GRETH_RXBD_IP_FRAG   0x2000000
 
#define GRETH_RXBD_MCAST   0x4000000
 
#define GRETH_TXBD_NUM   128
 
#define GRETH_TXBD_NUM_MASK   (GRETH_TXBD_NUM-1)
 
#define GRETH_TX_BUF_SIZE   2048
 
#define GRETH_RXBD_NUM   128
 
#define GRETH_RXBD_NUM_MASK   (GRETH_RXBD_NUM-1)
 
#define GRETH_RX_BUF_SIZE   2048
 
#define GRETH_RX_BUF_PPGAE   (PAGE_SIZE/GRETH_RX_BUF_SIZE)
 
#define GRETH_TX_BUF_PPGAE   (PAGE_SIZE/GRETH_TX_BUF_SIZE)
 
#define GRETH_RX_BUF_PAGE_NUM   (GRETH_RXBD_NUM/GRETH_RX_BUF_PPGAE)
 
#define GRETH_TX_BUF_PAGE_NUM   (GRETH_TXBD_NUM/GRETH_TX_BUF_PPGAE)
 
#define MAX_FRAME_SIZE   1520
 

Macro Definition Documentation

#define GRETH_BD_EN   0x800

Definition at line 20 of file greth.h.

#define GRETH_BD_IE   0x2000

Definition at line 22 of file greth.h.

#define GRETH_BD_LEN   0x7FF

Definition at line 23 of file greth.h.

#define GRETH_BD_WR   0x1000

Definition at line 21 of file greth.h.

#define GRETH_CTRL_DISDUPLEX   0x1000

Definition at line 17 of file greth.h.

#define GRETH_CTRL_FD   0x10

Definition at line 11 of file greth.h.

#define GRETH_CTRL_GB   0x100

Definition at line 14 of file greth.h.

#define GRETH_CTRL_MCEN   0x800

Definition at line 16 of file greth.h.

#define GRETH_CTRL_PR   0x20

Definition at line 12 of file greth.h.

#define GRETH_CTRL_PSTATIEN   0x400

Definition at line 15 of file greth.h.

#define GRETH_CTRL_SP   0x80

Definition at line 13 of file greth.h.

#define GRETH_INT_RE   0x1

Definition at line 39 of file greth.h.

#define GRETH_INT_RX   0x4

Definition at line 40 of file greth.h.

#define GRETH_INT_TE   0x2

Definition at line 26 of file greth.h.

#define GRETH_INT_TX   0x8

Definition at line 27 of file greth.h.

#define GRETH_MII_BUSY   0x8

Definition at line 8 of file greth.h.

#define GRETH_MII_NVALID   0x10

Definition at line 9 of file greth.h.

#define GRETH_RESET   0x40

Definition at line 7 of file greth.h.

#define GRETH_RX_BUF_PAGE_NUM   (GRETH_RXBD_NUM/GRETH_RX_BUF_PPGAE)

Definition at line 71 of file greth.h.

#define GRETH_RX_BUF_PPGAE   (PAGE_SIZE/GRETH_RX_BUF_SIZE)

Definition at line 67 of file greth.h.

#define GRETH_RX_BUF_SIZE   2048

Definition at line 64 of file greth.h.

#define GRETH_RXBD_ERR_AE   0x4000

Definition at line 44 of file greth.h.

#define GRETH_RXBD_ERR_CRC   0x10000

Definition at line 46 of file greth.h.

#define GRETH_RXBD_ERR_FT   0x8000

Definition at line 45 of file greth.h.

#define GRETH_RXBD_ERR_LE   0x40000

Definition at line 48 of file greth.h.

#define GRETH_RXBD_ERR_OE   0x20000

Definition at line 47 of file greth.h.

#define GRETH_RXBD_IP   0x80000

Definition at line 49 of file greth.h.

#define GRETH_RXBD_IP_CSERR   0x100000

Definition at line 50 of file greth.h.

#define GRETH_RXBD_IP_FRAG   0x2000000

Definition at line 55 of file greth.h.

#define GRETH_RXBD_MCAST   0x4000000

Definition at line 56 of file greth.h.

#define GRETH_RXBD_NUM   128

Definition at line 62 of file greth.h.

#define GRETH_RXBD_NUM_MASK   (GRETH_RXBD_NUM-1)

Definition at line 63 of file greth.h.

#define GRETH_RXBD_STATUS   0xFFFFC000

Definition at line 43 of file greth.h.

#define GRETH_RXBD_TCP   0x800000

Definition at line 53 of file greth.h.

#define GRETH_RXBD_TCP_CSERR   0x1000000

Definition at line 54 of file greth.h.

#define GRETH_RXBD_UDP   0x200000

Definition at line 51 of file greth.h.

#define GRETH_RXBD_UDP_CSERR   0x400000

Definition at line 52 of file greth.h.

#define GRETH_RXEN   0x2

Definition at line 41 of file greth.h.

#define GRETH_RXI   0x8

Definition at line 42 of file greth.h.

#define GRETH_STATUS_PHYSTAT   0x100

Definition at line 18 of file greth.h.

#define GRETH_TX_BUF_PAGE_NUM   (GRETH_TXBD_NUM/GRETH_TX_BUF_PPGAE)

Definition at line 72 of file greth.h.

#define GRETH_TX_BUF_PPGAE   (PAGE_SIZE/GRETH_TX_BUF_SIZE)

Definition at line 68 of file greth.h.

#define GRETH_TX_BUF_SIZE   2048

Definition at line 61 of file greth.h.

#define GRETH_TXBD_CSALL   (GRETH_TXBD_IPCS | GRETH_TXBD_TCPCS | GRETH_TXBD_UDPCS)

Definition at line 34 of file greth.h.

#define GRETH_TXBD_ERR_AL   0x8000

Definition at line 37 of file greth.h.

#define GRETH_TXBD_ERR_LC   0x10000

Definition at line 35 of file greth.h.

#define GRETH_TXBD_ERR_UE   0x4000

Definition at line 36 of file greth.h.

#define GRETH_TXBD_IPCS   0x40000

Definition at line 31 of file greth.h.

#define GRETH_TXBD_MORE   0x20000

Definition at line 30 of file greth.h.

#define GRETH_TXBD_NUM   128

Definition at line 59 of file greth.h.

#define GRETH_TXBD_NUM_MASK   (GRETH_TXBD_NUM-1)

Definition at line 60 of file greth.h.

#define GRETH_TXBD_STATUS   0x0001C000

Definition at line 29 of file greth.h.

#define GRETH_TXBD_TCPCS   0x80000

Definition at line 32 of file greth.h.

#define GRETH_TXBD_UDPCS   0x100000

Definition at line 33 of file greth.h.

#define GRETH_TXEN   0x1

Definition at line 25 of file greth.h.

#define GRETH_TXI   0x4

Definition at line 28 of file greth.h.

#define MAX_FRAME_SIZE   1520

Definition at line 78 of file greth.h.