Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
s6gmac.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/if.h>
#include <linux/stddef.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <variant/hardware.h>
#include <variant/dmac.h>

Go to the source code of this file.

Data Structures

struct  s6gmac
 
struct  s6gmac_statinf
 

Macros

#define DRV_NAME   "s6gmac"
 
#define DRV_PRMT   DRV_NAME ": "
 
#define S6_GMAC_MACCONF1   0x000
 
#define S6_GMAC_MACCONF1_TXENA   0
 
#define S6_GMAC_MACCONF1_SYNCTX   1
 
#define S6_GMAC_MACCONF1_RXENA   2
 
#define S6_GMAC_MACCONF1_SYNCRX   3
 
#define S6_GMAC_MACCONF1_TXFLOWCTRL   4
 
#define S6_GMAC_MACCONF1_RXFLOWCTRL   5
 
#define S6_GMAC_MACCONF1_LOOPBACK   8
 
#define S6_GMAC_MACCONF1_RESTXFUNC   16
 
#define S6_GMAC_MACCONF1_RESRXFUNC   17
 
#define S6_GMAC_MACCONF1_RESTXMACCTRL   18
 
#define S6_GMAC_MACCONF1_RESRXMACCTRL   19
 
#define S6_GMAC_MACCONF1_SIMULRES   30
 
#define S6_GMAC_MACCONF1_SOFTRES   31
 
#define S6_GMAC_MACCONF2   0x004
 
#define S6_GMAC_MACCONF2_FULL   0
 
#define S6_GMAC_MACCONF2_CRCENA   1
 
#define S6_GMAC_MACCONF2_PADCRCENA   2
 
#define S6_GMAC_MACCONF2_LENGTHFCHK   4
 
#define S6_GMAC_MACCONF2_HUGEFRAMENA   5
 
#define S6_GMAC_MACCONF2_IFMODE   8
 
#define S6_GMAC_MACCONF2_IFMODE_NIBBLE   1
 
#define S6_GMAC_MACCONF2_IFMODE_BYTE   2
 
#define S6_GMAC_MACCONF2_IFMODE_MASK   3
 
#define S6_GMAC_MACCONF2_PREAMBLELEN   12
 
#define S6_GMAC_MACCONF2_PREAMBLELEN_MASK   0x0F
 
#define S6_GMAC_MACIPGIFG   0x008
 
#define S6_GMAC_MACIPGIFG_B2BINTERPGAP   0
 
#define S6_GMAC_MACIPGIFG_B2BINTERPGAP_MASK   0x7F
 
#define S6_GMAC_MACIPGIFG_MINIFGENFORCE   8
 
#define S6_GMAC_MACIPGIFG_B2BINTERPGAP2   16
 
#define S6_GMAC_MACIPGIFG_B2BINTERPGAP1   24
 
#define S6_GMAC_MACHALFDUPLEX   0x00C
 
#define S6_GMAC_MACHALFDUPLEX_COLLISWIN   0
 
#define S6_GMAC_MACHALFDUPLEX_COLLISWIN_MASK   0x3F
 
#define S6_GMAC_MACHALFDUPLEX_RETXMAX   12
 
#define S6_GMAC_MACHALFDUPLEX_RETXMAX_MASK   0x0F
 
#define S6_GMAC_MACHALFDUPLEX_EXCESSDEF   16
 
#define S6_GMAC_MACHALFDUPLEX_NOBACKOFF   17
 
#define S6_GMAC_MACHALFDUPLEX_BPNOBCKOF   18
 
#define S6_GMAC_MACHALFDUPLEX_ALTBEBENA   19
 
#define S6_GMAC_MACHALFDUPLEX_ALTBEBTRN   20
 
#define S6_GMAC_MACHALFDUPLEX_ALTBEBTR_MASK   0x0F
 
#define S6_GMAC_MACMAXFRAMELEN   0x010
 
#define S6_GMAC_MACMIICONF   0x020
 
#define S6_GMAC_MACMIICONF_CSEL   0
 
#define S6_GMAC_MACMIICONF_CSEL_DIV10   0
 
#define S6_GMAC_MACMIICONF_CSEL_DIV12   1
 
#define S6_GMAC_MACMIICONF_CSEL_DIV14   2
 
#define S6_GMAC_MACMIICONF_CSEL_DIV18   3
 
#define S6_GMAC_MACMIICONF_CSEL_DIV24   4
 
#define S6_GMAC_MACMIICONF_CSEL_DIV34   5
 
#define S6_GMAC_MACMIICONF_CSEL_DIV68   6
 
#define S6_GMAC_MACMIICONF_CSEL_DIV168   7
 
#define S6_GMAC_MACMIICONF_CSEL_MASK   7
 
#define S6_GMAC_MACMIICONF_PREAMBLESUPR   4
 
#define S6_GMAC_MACMIICONF_SCANAUTOINCR   5
 
#define S6_GMAC_MACMIICMD   0x024
 
#define S6_GMAC_MACMIICMD_READ   0
 
#define S6_GMAC_MACMIICMD_SCAN   1
 
#define S6_GMAC_MACMIIADDR   0x028
 
#define S6_GMAC_MACMIIADDR_REG   0
 
#define S6_GMAC_MACMIIADDR_REG_MASK   0x1F
 
#define S6_GMAC_MACMIIADDR_PHY   8
 
#define S6_GMAC_MACMIIADDR_PHY_MASK   0x1F
 
#define S6_GMAC_MACMIICTRL   0x02C
 
#define S6_GMAC_MACMIISTAT   0x030
 
#define S6_GMAC_MACMIIINDI   0x034
 
#define S6_GMAC_MACMIIINDI_BUSY   0
 
#define S6_GMAC_MACMIIINDI_SCAN   1
 
#define S6_GMAC_MACMIIINDI_INVAL   2
 
#define S6_GMAC_MACINTERFSTAT   0x03C
 
#define S6_GMAC_MACINTERFSTAT_LINKFAIL   3
 
#define S6_GMAC_MACINTERFSTAT_EXCESSDEF   9
 
#define S6_GMAC_MACSTATADDR1   0x040
 
#define S6_GMAC_MACSTATADDR2   0x044
 
#define S6_GMAC_FIFOCONF0   0x048
 
#define S6_GMAC_FIFOCONF0_HSTRSTWT   0
 
#define S6_GMAC_FIFOCONF0_HSTRSTSR   1
 
#define S6_GMAC_FIFOCONF0_HSTRSTFR   2
 
#define S6_GMAC_FIFOCONF0_HSTRSTST   3
 
#define S6_GMAC_FIFOCONF0_HSTRSTFT   4
 
#define S6_GMAC_FIFOCONF0_WTMENREQ   8
 
#define S6_GMAC_FIFOCONF0_SRFENREQ   9
 
#define S6_GMAC_FIFOCONF0_FRFENREQ   10
 
#define S6_GMAC_FIFOCONF0_STFENREQ   11
 
#define S6_GMAC_FIFOCONF0_FTFENREQ   12
 
#define S6_GMAC_FIFOCONF0_WTMENRPLY   16
 
#define S6_GMAC_FIFOCONF0_SRFENRPLY   17
 
#define S6_GMAC_FIFOCONF0_FRFENRPLY   18
 
#define S6_GMAC_FIFOCONF0_STFENRPLY   19
 
#define S6_GMAC_FIFOCONF0_FTFENRPLY   20
 
#define S6_GMAC_FIFOCONF1   0x04C
 
#define S6_GMAC_FIFOCONF2   0x050
 
#define S6_GMAC_FIFOCONF2_CFGLWM   0
 
#define S6_GMAC_FIFOCONF2_CFGHWM   16
 
#define S6_GMAC_FIFOCONF3   0x054
 
#define S6_GMAC_FIFOCONF3_CFGFTTH   0
 
#define S6_GMAC_FIFOCONF3_CFGHWMFT   16
 
#define S6_GMAC_FIFOCONF4   0x058
 
#define S6_GMAC_FIFOCONF_RSV_PREVDROP   0
 
#define S6_GMAC_FIFOCONF_RSV_RUNT   1
 
#define S6_GMAC_FIFOCONF_RSV_FALSECAR   2
 
#define S6_GMAC_FIFOCONF_RSV_CODEERR   3
 
#define S6_GMAC_FIFOCONF_RSV_CRCERR   4
 
#define S6_GMAC_FIFOCONF_RSV_LENGTHERR   5
 
#define S6_GMAC_FIFOCONF_RSV_LENRANGE   6
 
#define S6_GMAC_FIFOCONF_RSV_OK   7
 
#define S6_GMAC_FIFOCONF_RSV_MULTICAST   8
 
#define S6_GMAC_FIFOCONF_RSV_BROADCAST   9
 
#define S6_GMAC_FIFOCONF_RSV_DRIBBLE   10
 
#define S6_GMAC_FIFOCONF_RSV_CTRLFRAME   11
 
#define S6_GMAC_FIFOCONF_RSV_PAUSECTRL   12
 
#define S6_GMAC_FIFOCONF_RSV_UNOPCODE   13
 
#define S6_GMAC_FIFOCONF_RSV_VLANTAG   14
 
#define S6_GMAC_FIFOCONF_RSV_LONGEVENT   15
 
#define S6_GMAC_FIFOCONF_RSV_TRUNCATED   16
 
#define S6_GMAC_FIFOCONF_RSV_MASK   0x3FFFF
 
#define S6_GMAC_FIFOCONF5   0x05C
 
#define S6_GMAC_FIFOCONF5_DROPLT64   18
 
#define S6_GMAC_FIFOCONF5_CFGBYTM   19
 
#define S6_GMAC_FIFOCONF5_RXDROPSIZE   20
 
#define S6_GMAC_FIFOCONF5_RXDROPSIZE_MASK   0xF
 
#define S6_GMAC_STAT_REGS   0x080
 
#define S6_GMAC_STAT_SIZE_MIN   12
 
#define S6_GMAC_STATTR64   0x080
 
#define S6_GMAC_STATTR64_SIZE   18
 
#define S6_GMAC_STATTR127   0x084
 
#define S6_GMAC_STATTR127_SIZE   18
 
#define S6_GMAC_STATTR255   0x088
 
#define S6_GMAC_STATTR255_SIZE   18
 
#define S6_GMAC_STATTR511   0x08C
 
#define S6_GMAC_STATTR511_SIZE   18
 
#define S6_GMAC_STATTR1K   0x090
 
#define S6_GMAC_STATTR1K_SIZE   18
 
#define S6_GMAC_STATTRMAX   0x094
 
#define S6_GMAC_STATTRMAX_SIZE   18
 
#define S6_GMAC_STATTRMGV   0x098
 
#define S6_GMAC_STATTRMGV_SIZE   18
 
#define S6_GMAC_STATRBYT   0x09C
 
#define S6_GMAC_STATRBYT_SIZE   24
 
#define S6_GMAC_STATRPKT   0x0A0
 
#define S6_GMAC_STATRPKT_SIZE   18
 
#define S6_GMAC_STATRFCS   0x0A4
 
#define S6_GMAC_STATRFCS_SIZE   12
 
#define S6_GMAC_STATRMCA   0x0A8
 
#define S6_GMAC_STATRMCA_SIZE   18
 
#define S6_GMAC_STATRBCA   0x0AC
 
#define S6_GMAC_STATRBCA_SIZE   22
 
#define S6_GMAC_STATRXCF   0x0B0
 
#define S6_GMAC_STATRXCF_SIZE   18
 
#define S6_GMAC_STATRXPF   0x0B4
 
#define S6_GMAC_STATRXPF_SIZE   12
 
#define S6_GMAC_STATRXUO   0x0B8
 
#define S6_GMAC_STATRXUO_SIZE   12
 
#define S6_GMAC_STATRALN   0x0BC
 
#define S6_GMAC_STATRALN_SIZE   12
 
#define S6_GMAC_STATRFLR   0x0C0
 
#define S6_GMAC_STATRFLR_SIZE   16
 
#define S6_GMAC_STATRCDE   0x0C4
 
#define S6_GMAC_STATRCDE_SIZE   12
 
#define S6_GMAC_STATRCSE   0x0C8
 
#define S6_GMAC_STATRCSE_SIZE   12
 
#define S6_GMAC_STATRUND   0x0CC
 
#define S6_GMAC_STATRUND_SIZE   12
 
#define S6_GMAC_STATROVR   0x0D0
 
#define S6_GMAC_STATROVR_SIZE   12
 
#define S6_GMAC_STATRFRG   0x0D4
 
#define S6_GMAC_STATRFRG_SIZE   12
 
#define S6_GMAC_STATRJBR   0x0D8
 
#define S6_GMAC_STATRJBR_SIZE   12
 
#define S6_GMAC_STATRDRP   0x0DC
 
#define S6_GMAC_STATRDRP_SIZE   12
 
#define S6_GMAC_STATTBYT   0x0E0
 
#define S6_GMAC_STATTBYT_SIZE   24
 
#define S6_GMAC_STATTPKT   0x0E4
 
#define S6_GMAC_STATTPKT_SIZE   18
 
#define S6_GMAC_STATTMCA   0x0E8
 
#define S6_GMAC_STATTMCA_SIZE   18
 
#define S6_GMAC_STATTBCA   0x0EC
 
#define S6_GMAC_STATTBCA_SIZE   18
 
#define S6_GMAC_STATTXPF   0x0F0
 
#define S6_GMAC_STATTXPF_SIZE   12
 
#define S6_GMAC_STATTDFR   0x0F4
 
#define S6_GMAC_STATTDFR_SIZE   12
 
#define S6_GMAC_STATTEDF   0x0F8
 
#define S6_GMAC_STATTEDF_SIZE   12
 
#define S6_GMAC_STATTSCL   0x0FC
 
#define S6_GMAC_STATTSCL_SIZE   12
 
#define S6_GMAC_STATTMCL   0x100
 
#define S6_GMAC_STATTMCL_SIZE   12
 
#define S6_GMAC_STATTLCL   0x104
 
#define S6_GMAC_STATTLCL_SIZE   12
 
#define S6_GMAC_STATTXCL   0x108
 
#define S6_GMAC_STATTXCL_SIZE   12
 
#define S6_GMAC_STATTNCL   0x10C
 
#define S6_GMAC_STATTNCL_SIZE   13
 
#define S6_GMAC_STATTPFH   0x110
 
#define S6_GMAC_STATTPFH_SIZE   12
 
#define S6_GMAC_STATTDRP   0x114
 
#define S6_GMAC_STATTDRP_SIZE   12
 
#define S6_GMAC_STATTJBR   0x118
 
#define S6_GMAC_STATTJBR_SIZE   12
 
#define S6_GMAC_STATTFCS   0x11C
 
#define S6_GMAC_STATTFCS_SIZE   12
 
#define S6_GMAC_STATTXCF   0x120
 
#define S6_GMAC_STATTXCF_SIZE   12
 
#define S6_GMAC_STATTOVR   0x124
 
#define S6_GMAC_STATTOVR_SIZE   12
 
#define S6_GMAC_STATTUND   0x128
 
#define S6_GMAC_STATTUND_SIZE   12
 
#define S6_GMAC_STATTFRG   0x12C
 
#define S6_GMAC_STATTFRG_SIZE   12
 
#define S6_GMAC_STATCARRY(n)   (0x130 + 4*(n))
 
#define S6_GMAC_STATCARRYMSK(n)   (0x138 + 4*(n))
 
#define S6_GMAC_STATCARRY1_RDRP   0
 
#define S6_GMAC_STATCARRY1_RJBR   1
 
#define S6_GMAC_STATCARRY1_RFRG   2
 
#define S6_GMAC_STATCARRY1_ROVR   3
 
#define S6_GMAC_STATCARRY1_RUND   4
 
#define S6_GMAC_STATCARRY1_RCSE   5
 
#define S6_GMAC_STATCARRY1_RCDE   6
 
#define S6_GMAC_STATCARRY1_RFLR   7
 
#define S6_GMAC_STATCARRY1_RALN   8
 
#define S6_GMAC_STATCARRY1_RXUO   9
 
#define S6_GMAC_STATCARRY1_RXPF   10
 
#define S6_GMAC_STATCARRY1_RXCF   11
 
#define S6_GMAC_STATCARRY1_RBCA   12
 
#define S6_GMAC_STATCARRY1_RMCA   13
 
#define S6_GMAC_STATCARRY1_RFCS   14
 
#define S6_GMAC_STATCARRY1_RPKT   15
 
#define S6_GMAC_STATCARRY1_RBYT   16
 
#define S6_GMAC_STATCARRY1_TRMGV   25
 
#define S6_GMAC_STATCARRY1_TRMAX   26
 
#define S6_GMAC_STATCARRY1_TR1K   27
 
#define S6_GMAC_STATCARRY1_TR511   28
 
#define S6_GMAC_STATCARRY1_TR255   29
 
#define S6_GMAC_STATCARRY1_TR127   30
 
#define S6_GMAC_STATCARRY1_TR64   31
 
#define S6_GMAC_STATCARRY2_TDRP   0
 
#define S6_GMAC_STATCARRY2_TPFH   1
 
#define S6_GMAC_STATCARRY2_TNCL   2
 
#define S6_GMAC_STATCARRY2_TXCL   3
 
#define S6_GMAC_STATCARRY2_TLCL   4
 
#define S6_GMAC_STATCARRY2_TMCL   5
 
#define S6_GMAC_STATCARRY2_TSCL   6
 
#define S6_GMAC_STATCARRY2_TEDF   7
 
#define S6_GMAC_STATCARRY2_TDFR   8
 
#define S6_GMAC_STATCARRY2_TXPF   9
 
#define S6_GMAC_STATCARRY2_TBCA   10
 
#define S6_GMAC_STATCARRY2_TMCA   11
 
#define S6_GMAC_STATCARRY2_TPKT   12
 
#define S6_GMAC_STATCARRY2_TBYT   13
 
#define S6_GMAC_STATCARRY2_TFRG   14
 
#define S6_GMAC_STATCARRY2_TUND   15
 
#define S6_GMAC_STATCARRY2_TOVR   16
 
#define S6_GMAC_STATCARRY2_TXCF   17
 
#define S6_GMAC_STATCARRY2_TFCS   18
 
#define S6_GMAC_STATCARRY2_TJBR   19
 
#define S6_GMAC_HOST_PBLKCTRL   0x140
 
#define S6_GMAC_HOST_PBLKCTRL_TXENA   0
 
#define S6_GMAC_HOST_PBLKCTRL_RXENA   1
 
#define S6_GMAC_HOST_PBLKCTRL_TXSRES   2
 
#define S6_GMAC_HOST_PBLKCTRL_RXSRES   3
 
#define S6_GMAC_HOST_PBLKCTRL_TXBSIZ   8
 
#define S6_GMAC_HOST_PBLKCTRL_RXBSIZ   12
 
#define S6_GMAC_HOST_PBLKCTRL_SIZ_16   4
 
#define S6_GMAC_HOST_PBLKCTRL_SIZ_32   5
 
#define S6_GMAC_HOST_PBLKCTRL_SIZ_64   6
 
#define S6_GMAC_HOST_PBLKCTRL_SIZ_128   7
 
#define S6_GMAC_HOST_PBLKCTRL_SIZ_MASK   0xF
 
#define S6_GMAC_HOST_PBLKCTRL_STATENA   16
 
#define S6_GMAC_HOST_PBLKCTRL_STATAUTOZ   17
 
#define S6_GMAC_HOST_PBLKCTRL_STATCLEAR   18
 
#define S6_GMAC_HOST_PBLKCTRL_RGMII   19
 
#define S6_GMAC_HOST_INTMASK   0x144
 
#define S6_GMAC_HOST_INTSTAT   0x148
 
#define S6_GMAC_HOST_INT_TXBURSTOVER   3
 
#define S6_GMAC_HOST_INT_TXPREWOVER   4
 
#define S6_GMAC_HOST_INT_RXBURSTUNDER   5
 
#define S6_GMAC_HOST_INT_RXPOSTRFULL   6
 
#define S6_GMAC_HOST_INT_RXPOSTRUNDER   7
 
#define S6_GMAC_HOST_RXFIFOHWM   0x14C
 
#define S6_GMAC_HOST_CTRLFRAMXP   0x150
 
#define S6_GMAC_HOST_DSTADDRLO(n)   (0x160 + 8*(n))
 
#define S6_GMAC_HOST_DSTADDRHI(n)   (0x164 + 8*(n))
 
#define S6_GMAC_HOST_DSTMASKLO(n)   (0x180 + 8*(n))
 
#define S6_GMAC_HOST_DSTMASKHI(n)   (0x184 + 8*(n))
 
#define S6_GMAC_BURST_PREWR   0x1B0
 
#define S6_GMAC_BURST_PREWR_LEN   0
 
#define S6_GMAC_BURST_PREWR_LEN_MASK   ((1 << 20) - 1)
 
#define S6_GMAC_BURST_PREWR_CFE   20
 
#define S6_GMAC_BURST_PREWR_PPE   21
 
#define S6_GMAC_BURST_PREWR_FCS   22
 
#define S6_GMAC_BURST_PREWR_PAD   23
 
#define S6_GMAC_BURST_POSTRD   0x1D0
 
#define S6_GMAC_BURST_POSTRD_LEN   0
 
#define S6_GMAC_BURST_POSTRD_LEN_MASK   ((1 << 20) - 1)
 
#define S6_GMAC_BURST_POSTRD_DROP   20
 
#define S6_NUM_TX_SKB   8 /* must be larger than TX fifo size */
 
#define S6_NUM_RX_SKB   16
 
#define S6_MAX_FRLEN   1536
 
#define S6_STATS_B   (8 * sizeof(u32))
 
#define S6_STATS_C(b, r, f)
 

Functions

 module_init (s6gmac_init)
 
 module_exit (s6gmac_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("S6105 on chip Ethernet driver")
 
 MODULE_AUTHOR ("Oskar Schirmer <[email protected]>")
 

Macro Definition Documentation

#define DRV_NAME   "s6gmac"

Definition at line 29 of file s6gmac.c.

#define DRV_PRMT   DRV_NAME ": "

Definition at line 30 of file s6gmac.c.

#define S6_GMAC_BURST_POSTRD   0x1D0

Definition at line 334 of file s6gmac.c.

#define S6_GMAC_BURST_POSTRD_DROP   20

Definition at line 337 of file s6gmac.c.

#define S6_GMAC_BURST_POSTRD_LEN   0

Definition at line 335 of file s6gmac.c.

#define S6_GMAC_BURST_POSTRD_LEN_MASK   ((1 << 20) - 1)

Definition at line 336 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR   0x1B0

Definition at line 327 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_CFE   20

Definition at line 330 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_FCS   22

Definition at line 332 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_LEN   0

Definition at line 328 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_LEN_MASK   ((1 << 20) - 1)

Definition at line 329 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_PAD   23

Definition at line 333 of file s6gmac.c.

#define S6_GMAC_BURST_PREWR_PPE   21

Definition at line 331 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0   0x048

Definition at line 112 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_FRFENREQ   10

Definition at line 120 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_FRFENRPLY   18

Definition at line 125 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_FTFENREQ   12

Definition at line 122 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_FTFENRPLY   20

Definition at line 127 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_HSTRSTFR   2

Definition at line 115 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_HSTRSTFT   4

Definition at line 117 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_HSTRSTSR   1

Definition at line 114 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_HSTRSTST   3

Definition at line 116 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_HSTRSTWT   0

Definition at line 113 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_SRFENREQ   9

Definition at line 119 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_SRFENRPLY   17

Definition at line 124 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_STFENREQ   11

Definition at line 121 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_STFENRPLY   19

Definition at line 126 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_WTMENREQ   8

Definition at line 118 of file s6gmac.c.

#define S6_GMAC_FIFOCONF0_WTMENRPLY   16

Definition at line 123 of file s6gmac.c.

#define S6_GMAC_FIFOCONF1   0x04C

Definition at line 128 of file s6gmac.c.

#define S6_GMAC_FIFOCONF2   0x050

Definition at line 129 of file s6gmac.c.

#define S6_GMAC_FIFOCONF2_CFGHWM   16

Definition at line 131 of file s6gmac.c.

#define S6_GMAC_FIFOCONF2_CFGLWM   0

Definition at line 130 of file s6gmac.c.

#define S6_GMAC_FIFOCONF3   0x054

Definition at line 132 of file s6gmac.c.

#define S6_GMAC_FIFOCONF3_CFGFTTH   0

Definition at line 133 of file s6gmac.c.

#define S6_GMAC_FIFOCONF3_CFGHWMFT   16

Definition at line 134 of file s6gmac.c.

#define S6_GMAC_FIFOCONF4   0x058

Definition at line 135 of file s6gmac.c.

#define S6_GMAC_FIFOCONF5   0x05C

Definition at line 154 of file s6gmac.c.

#define S6_GMAC_FIFOCONF5_CFGBYTM   19

Definition at line 156 of file s6gmac.c.

#define S6_GMAC_FIFOCONF5_DROPLT64   18

Definition at line 155 of file s6gmac.c.

#define S6_GMAC_FIFOCONF5_RXDROPSIZE   20

Definition at line 157 of file s6gmac.c.

#define S6_GMAC_FIFOCONF5_RXDROPSIZE_MASK   0xF

Definition at line 158 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_BROADCAST   9

Definition at line 145 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_CODEERR   3

Definition at line 139 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_CRCERR   4

Definition at line 140 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_CTRLFRAME   11

Definition at line 147 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_DRIBBLE   10

Definition at line 146 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_FALSECAR   2

Definition at line 138 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_LENGTHERR   5

Definition at line 141 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_LENRANGE   6

Definition at line 142 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_LONGEVENT   15

Definition at line 151 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_MASK   0x3FFFF

Definition at line 153 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_MULTICAST   8

Definition at line 144 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_OK   7

Definition at line 143 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_PAUSECTRL   12

Definition at line 148 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_PREVDROP   0

Definition at line 136 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_RUNT   1

Definition at line 137 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_TRUNCATED   16

Definition at line 152 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_UNOPCODE   13

Definition at line 149 of file s6gmac.c.

#define S6_GMAC_FIFOCONF_RSV_VLANTAG   14

Definition at line 150 of file s6gmac.c.

#define S6_GMAC_HOST_CTRLFRAMXP   0x150

Definition at line 321 of file s6gmac.c.

#define S6_GMAC_HOST_DSTADDRHI (   n)    (0x164 + 8*(n))

Definition at line 323 of file s6gmac.c.

#define S6_GMAC_HOST_DSTADDRLO (   n)    (0x160 + 8*(n))

Definition at line 322 of file s6gmac.c.

#define S6_GMAC_HOST_DSTMASKHI (   n)    (0x184 + 8*(n))

Definition at line 325 of file s6gmac.c.

#define S6_GMAC_HOST_DSTMASKLO (   n)    (0x180 + 8*(n))

Definition at line 324 of file s6gmac.c.

#define S6_GMAC_HOST_INT_RXBURSTUNDER   5

Definition at line 317 of file s6gmac.c.

#define S6_GMAC_HOST_INT_RXPOSTRFULL   6

Definition at line 318 of file s6gmac.c.

#define S6_GMAC_HOST_INT_RXPOSTRUNDER   7

Definition at line 319 of file s6gmac.c.

#define S6_GMAC_HOST_INT_TXBURSTOVER   3

Definition at line 315 of file s6gmac.c.

#define S6_GMAC_HOST_INT_TXPREWOVER   4

Definition at line 316 of file s6gmac.c.

#define S6_GMAC_HOST_INTMASK   0x144

Definition at line 313 of file s6gmac.c.

#define S6_GMAC_HOST_INTSTAT   0x148

Definition at line 314 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL   0x140

Definition at line 297 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_RGMII   19

Definition at line 312 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_RXBSIZ   12

Definition at line 303 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_RXENA   1

Definition at line 299 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_RXSRES   3

Definition at line 301 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_SIZ_128   7

Definition at line 307 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_SIZ_16   4

Definition at line 304 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_SIZ_32   5

Definition at line 305 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_SIZ_64   6

Definition at line 306 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_SIZ_MASK   0xF

Definition at line 308 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_STATAUTOZ   17

Definition at line 310 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_STATCLEAR   18

Definition at line 311 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_STATENA   16

Definition at line 309 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_TXBSIZ   8

Definition at line 302 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_TXENA   0

Definition at line 298 of file s6gmac.c.

#define S6_GMAC_HOST_PBLKCTRL_TXSRES   2

Definition at line 300 of file s6gmac.c.

#define S6_GMAC_HOST_RXFIFOHWM   0x14C

Definition at line 320 of file s6gmac.c.

#define S6_GMAC_MACCONF1   0x000

Definition at line 35 of file s6gmac.c.

#define S6_GMAC_MACCONF1_LOOPBACK   8

Definition at line 42 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RESRXFUNC   17

Definition at line 44 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RESRXMACCTRL   19

Definition at line 46 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RESTXFUNC   16

Definition at line 43 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RESTXMACCTRL   18

Definition at line 45 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RXENA   2

Definition at line 38 of file s6gmac.c.

#define S6_GMAC_MACCONF1_RXFLOWCTRL   5

Definition at line 41 of file s6gmac.c.

#define S6_GMAC_MACCONF1_SIMULRES   30

Definition at line 47 of file s6gmac.c.

#define S6_GMAC_MACCONF1_SOFTRES   31

Definition at line 48 of file s6gmac.c.

#define S6_GMAC_MACCONF1_SYNCRX   3

Definition at line 39 of file s6gmac.c.

#define S6_GMAC_MACCONF1_SYNCTX   1

Definition at line 37 of file s6gmac.c.

#define S6_GMAC_MACCONF1_TXENA   0

Definition at line 36 of file s6gmac.c.

#define S6_GMAC_MACCONF1_TXFLOWCTRL   4

Definition at line 40 of file s6gmac.c.

#define S6_GMAC_MACCONF2   0x004

Definition at line 49 of file s6gmac.c.

#define S6_GMAC_MACCONF2_CRCENA   1

Definition at line 51 of file s6gmac.c.

#define S6_GMAC_MACCONF2_FULL   0

Definition at line 50 of file s6gmac.c.

#define S6_GMAC_MACCONF2_HUGEFRAMENA   5

Definition at line 54 of file s6gmac.c.

#define S6_GMAC_MACCONF2_IFMODE   8

Definition at line 55 of file s6gmac.c.

#define S6_GMAC_MACCONF2_IFMODE_BYTE   2

Definition at line 57 of file s6gmac.c.

#define S6_GMAC_MACCONF2_IFMODE_MASK   3

Definition at line 58 of file s6gmac.c.

#define S6_GMAC_MACCONF2_IFMODE_NIBBLE   1

Definition at line 56 of file s6gmac.c.

#define S6_GMAC_MACCONF2_LENGTHFCHK   4

Definition at line 53 of file s6gmac.c.

#define S6_GMAC_MACCONF2_PADCRCENA   2

Definition at line 52 of file s6gmac.c.

#define S6_GMAC_MACCONF2_PREAMBLELEN   12

Definition at line 59 of file s6gmac.c.

#define S6_GMAC_MACCONF2_PREAMBLELEN_MASK   0x0F

Definition at line 60 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX   0x00C

Definition at line 67 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_ALTBEBENA   19

Definition at line 75 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_ALTBEBTR_MASK   0x0F

Definition at line 77 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_ALTBEBTRN   20

Definition at line 76 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_BPNOBCKOF   18

Definition at line 74 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_COLLISWIN   0

Definition at line 68 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_COLLISWIN_MASK   0x3F

Definition at line 69 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_EXCESSDEF   16

Definition at line 72 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_NOBACKOFF   17

Definition at line 73 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_RETXMAX   12

Definition at line 70 of file s6gmac.c.

#define S6_GMAC_MACHALFDUPLEX_RETXMAX_MASK   0x0F

Definition at line 71 of file s6gmac.c.

#define S6_GMAC_MACINTERFSTAT   0x03C

Definition at line 106 of file s6gmac.c.

#define S6_GMAC_MACINTERFSTAT_EXCESSDEF   9

Definition at line 108 of file s6gmac.c.

#define S6_GMAC_MACINTERFSTAT_LINKFAIL   3

Definition at line 107 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG   0x008

Definition at line 61 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG_B2BINTERPGAP   0

Definition at line 62 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG_B2BINTERPGAP1   24

Definition at line 66 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG_B2BINTERPGAP2   16

Definition at line 65 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG_B2BINTERPGAP_MASK   0x7F

Definition at line 63 of file s6gmac.c.

#define S6_GMAC_MACIPGIFG_MINIFGENFORCE   8

Definition at line 64 of file s6gmac.c.

#define S6_GMAC_MACMAXFRAMELEN   0x010

Definition at line 78 of file s6gmac.c.

#define S6_GMAC_MACMIIADDR   0x028

Definition at line 95 of file s6gmac.c.

#define S6_GMAC_MACMIIADDR_PHY   8

Definition at line 98 of file s6gmac.c.

#define S6_GMAC_MACMIIADDR_PHY_MASK   0x1F

Definition at line 99 of file s6gmac.c.

#define S6_GMAC_MACMIIADDR_REG   0

Definition at line 96 of file s6gmac.c.

#define S6_GMAC_MACMIIADDR_REG_MASK   0x1F

Definition at line 97 of file s6gmac.c.

#define S6_GMAC_MACMIICMD   0x024

Definition at line 92 of file s6gmac.c.

#define S6_GMAC_MACMIICMD_READ   0

Definition at line 93 of file s6gmac.c.

#define S6_GMAC_MACMIICMD_SCAN   1

Definition at line 94 of file s6gmac.c.

#define S6_GMAC_MACMIICONF   0x020

Definition at line 79 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL   0

Definition at line 80 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV10   0

Definition at line 81 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV12   1

Definition at line 82 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV14   2

Definition at line 83 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV168   7

Definition at line 88 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV18   3

Definition at line 84 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV24   4

Definition at line 85 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV34   5

Definition at line 86 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_DIV68   6

Definition at line 87 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_CSEL_MASK   7

Definition at line 89 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_PREAMBLESUPR   4

Definition at line 90 of file s6gmac.c.

#define S6_GMAC_MACMIICONF_SCANAUTOINCR   5

Definition at line 91 of file s6gmac.c.

#define S6_GMAC_MACMIICTRL   0x02C

Definition at line 100 of file s6gmac.c.

#define S6_GMAC_MACMIIINDI   0x034

Definition at line 102 of file s6gmac.c.

#define S6_GMAC_MACMIIINDI_BUSY   0

Definition at line 103 of file s6gmac.c.

#define S6_GMAC_MACMIIINDI_INVAL   2

Definition at line 105 of file s6gmac.c.

#define S6_GMAC_MACMIIINDI_SCAN   1

Definition at line 104 of file s6gmac.c.

#define S6_GMAC_MACMIISTAT   0x030

Definition at line 101 of file s6gmac.c.

#define S6_GMAC_MACSTATADDR1   0x040

Definition at line 109 of file s6gmac.c.

#define S6_GMAC_MACSTATADDR2   0x044

Definition at line 110 of file s6gmac.c.

#define S6_GMAC_STAT_REGS   0x080

Definition at line 160 of file s6gmac.c.

#define S6_GMAC_STAT_SIZE_MIN   12

Definition at line 161 of file s6gmac.c.

#define S6_GMAC_STATCARRY (   n)    (0x130 + 4*(n))

Definition at line 250 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RALN   8

Definition at line 260 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RBCA   12

Definition at line 264 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RBYT   16

Definition at line 268 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RCDE   6

Definition at line 258 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RCSE   5

Definition at line 257 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RDRP   0

Definition at line 252 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RFCS   14

Definition at line 266 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RFLR   7

Definition at line 259 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RFRG   2

Definition at line 254 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RJBR   1

Definition at line 253 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RMCA   13

Definition at line 265 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_ROVR   3

Definition at line 255 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RPKT   15

Definition at line 267 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RUND   4

Definition at line 256 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RXCF   11

Definition at line 263 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RXPF   10

Definition at line 262 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_RXUO   9

Definition at line 261 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TR127   30

Definition at line 274 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TR1K   27

Definition at line 271 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TR255   29

Definition at line 273 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TR511   28

Definition at line 272 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TR64   31

Definition at line 275 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TRMAX   26

Definition at line 270 of file s6gmac.c.

#define S6_GMAC_STATCARRY1_TRMGV   25

Definition at line 269 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TBCA   10

Definition at line 286 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TBYT   13

Definition at line 289 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TDFR   8

Definition at line 284 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TDRP   0

Definition at line 276 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TEDF   7

Definition at line 283 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TFCS   18

Definition at line 294 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TFRG   14

Definition at line 290 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TJBR   19

Definition at line 295 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TLCL   4

Definition at line 280 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TMCA   11

Definition at line 287 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TMCL   5

Definition at line 281 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TNCL   2

Definition at line 278 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TOVR   16

Definition at line 292 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TPFH   1

Definition at line 277 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TPKT   12

Definition at line 288 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TSCL   6

Definition at line 282 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TUND   15

Definition at line 291 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TXCF   17

Definition at line 293 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TXCL   3

Definition at line 279 of file s6gmac.c.

#define S6_GMAC_STATCARRY2_TXPF   9

Definition at line 285 of file s6gmac.c.

#define S6_GMAC_STATCARRYMSK (   n)    (0x138 + 4*(n))

Definition at line 251 of file s6gmac.c.

#define S6_GMAC_STATRALN   0x0BC

Definition at line 192 of file s6gmac.c.

#define S6_GMAC_STATRALN_SIZE   12

Definition at line 193 of file s6gmac.c.

#define S6_GMAC_STATRBCA   0x0AC

Definition at line 184 of file s6gmac.c.

#define S6_GMAC_STATRBCA_SIZE   22

Definition at line 185 of file s6gmac.c.

#define S6_GMAC_STATRBYT   0x09C

Definition at line 176 of file s6gmac.c.

#define S6_GMAC_STATRBYT_SIZE   24

Definition at line 177 of file s6gmac.c.

#define S6_GMAC_STATRCDE   0x0C4

Definition at line 196 of file s6gmac.c.

#define S6_GMAC_STATRCDE_SIZE   12

Definition at line 197 of file s6gmac.c.

#define S6_GMAC_STATRCSE   0x0C8

Definition at line 198 of file s6gmac.c.

#define S6_GMAC_STATRCSE_SIZE   12

Definition at line 199 of file s6gmac.c.

#define S6_GMAC_STATRDRP   0x0DC

Definition at line 208 of file s6gmac.c.

#define S6_GMAC_STATRDRP_SIZE   12

Definition at line 209 of file s6gmac.c.

#define S6_GMAC_STATRFCS   0x0A4

Definition at line 180 of file s6gmac.c.

#define S6_GMAC_STATRFCS_SIZE   12

Definition at line 181 of file s6gmac.c.

#define S6_GMAC_STATRFLR   0x0C0

Definition at line 194 of file s6gmac.c.

#define S6_GMAC_STATRFLR_SIZE   16

Definition at line 195 of file s6gmac.c.

#define S6_GMAC_STATRFRG   0x0D4

Definition at line 204 of file s6gmac.c.

#define S6_GMAC_STATRFRG_SIZE   12

Definition at line 205 of file s6gmac.c.

#define S6_GMAC_STATRJBR   0x0D8

Definition at line 206 of file s6gmac.c.

#define S6_GMAC_STATRJBR_SIZE   12

Definition at line 207 of file s6gmac.c.

#define S6_GMAC_STATRMCA   0x0A8

Definition at line 182 of file s6gmac.c.

#define S6_GMAC_STATRMCA_SIZE   18

Definition at line 183 of file s6gmac.c.

#define S6_GMAC_STATROVR   0x0D0

Definition at line 202 of file s6gmac.c.

#define S6_GMAC_STATROVR_SIZE   12

Definition at line 203 of file s6gmac.c.

#define S6_GMAC_STATRPKT   0x0A0

Definition at line 178 of file s6gmac.c.

#define S6_GMAC_STATRPKT_SIZE   18

Definition at line 179 of file s6gmac.c.

#define S6_GMAC_STATRUND   0x0CC

Definition at line 200 of file s6gmac.c.

#define S6_GMAC_STATRUND_SIZE   12

Definition at line 201 of file s6gmac.c.

#define S6_GMAC_STATRXCF   0x0B0

Definition at line 186 of file s6gmac.c.

#define S6_GMAC_STATRXCF_SIZE   18

Definition at line 187 of file s6gmac.c.

#define S6_GMAC_STATRXPF   0x0B4

Definition at line 188 of file s6gmac.c.

#define S6_GMAC_STATRXPF_SIZE   12

Definition at line 189 of file s6gmac.c.

#define S6_GMAC_STATRXUO   0x0B8

Definition at line 190 of file s6gmac.c.

#define S6_GMAC_STATRXUO_SIZE   12

Definition at line 191 of file s6gmac.c.

#define S6_GMAC_STATTBCA   0x0EC

Definition at line 216 of file s6gmac.c.

#define S6_GMAC_STATTBCA_SIZE   18

Definition at line 217 of file s6gmac.c.

#define S6_GMAC_STATTBYT   0x0E0

Definition at line 210 of file s6gmac.c.

#define S6_GMAC_STATTBYT_SIZE   24

Definition at line 211 of file s6gmac.c.

#define S6_GMAC_STATTDFR   0x0F4

Definition at line 220 of file s6gmac.c.

#define S6_GMAC_STATTDFR_SIZE   12

Definition at line 221 of file s6gmac.c.

#define S6_GMAC_STATTDRP   0x114

Definition at line 236 of file s6gmac.c.

#define S6_GMAC_STATTDRP_SIZE   12

Definition at line 237 of file s6gmac.c.

#define S6_GMAC_STATTEDF   0x0F8

Definition at line 222 of file s6gmac.c.

#define S6_GMAC_STATTEDF_SIZE   12

Definition at line 223 of file s6gmac.c.

#define S6_GMAC_STATTFCS   0x11C

Definition at line 240 of file s6gmac.c.

#define S6_GMAC_STATTFCS_SIZE   12

Definition at line 241 of file s6gmac.c.

#define S6_GMAC_STATTFRG   0x12C

Definition at line 248 of file s6gmac.c.

#define S6_GMAC_STATTFRG_SIZE   12

Definition at line 249 of file s6gmac.c.

#define S6_GMAC_STATTJBR   0x118

Definition at line 238 of file s6gmac.c.

#define S6_GMAC_STATTJBR_SIZE   12

Definition at line 239 of file s6gmac.c.

#define S6_GMAC_STATTLCL   0x104

Definition at line 228 of file s6gmac.c.

#define S6_GMAC_STATTLCL_SIZE   12

Definition at line 229 of file s6gmac.c.

#define S6_GMAC_STATTMCA   0x0E8

Definition at line 214 of file s6gmac.c.

#define S6_GMAC_STATTMCA_SIZE   18

Definition at line 215 of file s6gmac.c.

#define S6_GMAC_STATTMCL   0x100

Definition at line 226 of file s6gmac.c.

#define S6_GMAC_STATTMCL_SIZE   12

Definition at line 227 of file s6gmac.c.

#define S6_GMAC_STATTNCL   0x10C

Definition at line 232 of file s6gmac.c.

#define S6_GMAC_STATTNCL_SIZE   13

Definition at line 233 of file s6gmac.c.

#define S6_GMAC_STATTOVR   0x124

Definition at line 244 of file s6gmac.c.

#define S6_GMAC_STATTOVR_SIZE   12

Definition at line 245 of file s6gmac.c.

#define S6_GMAC_STATTPFH   0x110

Definition at line 234 of file s6gmac.c.

#define S6_GMAC_STATTPFH_SIZE   12

Definition at line 235 of file s6gmac.c.

#define S6_GMAC_STATTPKT   0x0E4

Definition at line 212 of file s6gmac.c.

#define S6_GMAC_STATTPKT_SIZE   18

Definition at line 213 of file s6gmac.c.

#define S6_GMAC_STATTR127   0x084

Definition at line 164 of file s6gmac.c.

#define S6_GMAC_STATTR127_SIZE   18

Definition at line 165 of file s6gmac.c.

#define S6_GMAC_STATTR1K   0x090

Definition at line 170 of file s6gmac.c.

#define S6_GMAC_STATTR1K_SIZE   18

Definition at line 171 of file s6gmac.c.

#define S6_GMAC_STATTR255   0x088

Definition at line 166 of file s6gmac.c.

#define S6_GMAC_STATTR255_SIZE   18

Definition at line 167 of file s6gmac.c.

#define S6_GMAC_STATTR511   0x08C

Definition at line 168 of file s6gmac.c.

#define S6_GMAC_STATTR511_SIZE   18

Definition at line 169 of file s6gmac.c.

#define S6_GMAC_STATTR64   0x080

Definition at line 162 of file s6gmac.c.

#define S6_GMAC_STATTR64_SIZE   18

Definition at line 163 of file s6gmac.c.

#define S6_GMAC_STATTRMAX   0x094

Definition at line 172 of file s6gmac.c.

#define S6_GMAC_STATTRMAX_SIZE   18

Definition at line 173 of file s6gmac.c.

#define S6_GMAC_STATTRMGV   0x098

Definition at line 174 of file s6gmac.c.

#define S6_GMAC_STATTRMGV_SIZE   18

Definition at line 175 of file s6gmac.c.

#define S6_GMAC_STATTSCL   0x0FC

Definition at line 224 of file s6gmac.c.

#define S6_GMAC_STATTSCL_SIZE   12

Definition at line 225 of file s6gmac.c.

#define S6_GMAC_STATTUND   0x128

Definition at line 246 of file s6gmac.c.

#define S6_GMAC_STATTUND_SIZE   12

Definition at line 247 of file s6gmac.c.

#define S6_GMAC_STATTXCF   0x120

Definition at line 242 of file s6gmac.c.

#define S6_GMAC_STATTXCF_SIZE   12

Definition at line 243 of file s6gmac.c.

#define S6_GMAC_STATTXCL   0x108

Definition at line 230 of file s6gmac.c.

#define S6_GMAC_STATTXCL_SIZE   12

Definition at line 231 of file s6gmac.c.

#define S6_GMAC_STATTXPF   0x0F0

Definition at line 218 of file s6gmac.c.

#define S6_GMAC_STATTXPF_SIZE   12

Definition at line 219 of file s6gmac.c.

#define S6_MAX_FRLEN   1536

Definition at line 344 of file s6gmac.c.

#define S6_NUM_RX_SKB   16

Definition at line 343 of file s6gmac.c.

#define S6_NUM_TX_SKB   8 /* must be larger than TX fifo size */

Definition at line 342 of file s6gmac.c.

#define S6_STATS_B   (8 * sizeof(u32))

Definition at line 424 of file s6gmac.c.

#define S6_STATS_C (   b,
  r,
  f 
)
Value:
[b] = { \
BUILD_BUG_ON_ZERO(r##_SIZE < S6_GMAC_STAT_SIZE_MIN) + \
BUILD_BUG_ON_ZERO((r##_SIZE - (S6_GMAC_STAT_SIZE_MIN - 1)) \
>= (1<<4)) + \
r##_SIZE - (S6_GMAC_STAT_SIZE_MIN - 1), \
BUILD_BUG_ON_ZERO(((unsigned)((r - S6_GMAC_STAT_REGS) / sizeof(u32))) \
>= ((1<<6)-1)) + \
(r - S6_GMAC_STAT_REGS) / sizeof(u32), \
% sizeof(unsigned long)) + \
BUILD_BUG_ON_ZERO((((unsigned)(offsetof(struct net_device_stats, f)) \
/ sizeof(unsigned long)) >= (1<<6))) + \
BUILD_BUG_ON_ZERO((sizeof(((struct net_device_stats *)0)->f) \
!= sizeof(unsigned long))) + \
(offsetof(struct net_device_stats, f)) / sizeof(unsigned long)},

Definition at line 425 of file s6gmac.c.

Function Documentation

MODULE_AUTHOR ( "Oskar Schirmer <[email protected]>"  )
MODULE_DESCRIPTION ( "S6105 on chip Ethernet driver )
module_exit ( s6gmac_exit  )
module_init ( s6gmac_init  )
MODULE_LICENSE ( "GPL"  )