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

Go to the source code of this file.

Data Structures

struct  ftmac100_txdes
 
struct  ftmac100_rxdes
 

Macros

#define FTMAC100_OFFSET_ISR   0x00
 
#define FTMAC100_OFFSET_IMR   0x04
 
#define FTMAC100_OFFSET_MAC_MADR   0x08
 
#define FTMAC100_OFFSET_MAC_LADR   0x0c
 
#define FTMAC100_OFFSET_MAHT0   0x10
 
#define FTMAC100_OFFSET_MAHT1   0x14
 
#define FTMAC100_OFFSET_TXPD   0x18
 
#define FTMAC100_OFFSET_RXPD   0x1c
 
#define FTMAC100_OFFSET_TXR_BADR   0x20
 
#define FTMAC100_OFFSET_RXR_BADR   0x24
 
#define FTMAC100_OFFSET_ITC   0x28
 
#define FTMAC100_OFFSET_APTC   0x2c
 
#define FTMAC100_OFFSET_DBLAC   0x30
 
#define FTMAC100_OFFSET_MACCR   0x88
 
#define FTMAC100_OFFSET_MACSR   0x8c
 
#define FTMAC100_OFFSET_PHYCR   0x90
 
#define FTMAC100_OFFSET_PHYWDATA   0x94
 
#define FTMAC100_OFFSET_FCR   0x98
 
#define FTMAC100_OFFSET_BPR   0x9c
 
#define FTMAC100_OFFSET_TS   0xc4
 
#define FTMAC100_OFFSET_DMAFIFOS   0xc8
 
#define FTMAC100_OFFSET_TM   0xcc
 
#define FTMAC100_OFFSET_TX_MCOL_SCOL   0xd4
 
#define FTMAC100_OFFSET_RPF_AEP   0xd8
 
#define FTMAC100_OFFSET_XM_PG   0xdc
 
#define FTMAC100_OFFSET_RUNT_TLCC   0xe0
 
#define FTMAC100_OFFSET_CRCER_FTL   0xe4
 
#define FTMAC100_OFFSET_RLC_RCC   0xe8
 
#define FTMAC100_OFFSET_BROC   0xec
 
#define FTMAC100_OFFSET_MULCA   0xf0
 
#define FTMAC100_OFFSET_RP   0xf4
 
#define FTMAC100_OFFSET_XP   0xf8
 
#define FTMAC100_INT_RPKT_FINISH   (1 << 0)
 
#define FTMAC100_INT_NORXBUF   (1 << 1)
 
#define FTMAC100_INT_XPKT_FINISH   (1 << 2)
 
#define FTMAC100_INT_NOTXBUF   (1 << 3)
 
#define FTMAC100_INT_XPKT_OK   (1 << 4)
 
#define FTMAC100_INT_XPKT_LOST   (1 << 5)
 
#define FTMAC100_INT_RPKT_SAV   (1 << 6)
 
#define FTMAC100_INT_RPKT_LOST   (1 << 7)
 
#define FTMAC100_INT_AHB_ERR   (1 << 8)
 
#define FTMAC100_INT_PHYSTS_CHG   (1 << 9)
 
#define FTMAC100_ITC_RXINT_CNT(x)   (((x) & 0xf) << 0)
 
#define FTMAC100_ITC_RXINT_THR(x)   (((x) & 0x7) << 4)
 
#define FTMAC100_ITC_RXINT_TIME_SEL   (1 << 7)
 
#define FTMAC100_ITC_TXINT_CNT(x)   (((x) & 0xf) << 8)
 
#define FTMAC100_ITC_TXINT_THR(x)   (((x) & 0x7) << 12)
 
#define FTMAC100_ITC_TXINT_TIME_SEL   (1 << 15)
 
#define FTMAC100_APTC_RXPOLL_CNT(x)   (((x) & 0xf) << 0)
 
#define FTMAC100_APTC_RXPOLL_TIME_SEL   (1 << 4)
 
#define FTMAC100_APTC_TXPOLL_CNT(x)   (((x) & 0xf) << 8)
 
#define FTMAC100_APTC_TXPOLL_TIME_SEL   (1 << 12)
 
#define FTMAC100_DBLAC_INCR4_EN   (1 << 0)
 
#define FTMAC100_DBLAC_INCR8_EN   (1 << 1)
 
#define FTMAC100_DBLAC_INCR16_EN   (1 << 2)
 
#define FTMAC100_DBLAC_RXFIFO_LTHR(x)   (((x) & 0x7) << 3)
 
#define FTMAC100_DBLAC_RXFIFO_HTHR(x)   (((x) & 0x7) << 6)
 
#define FTMAC100_DBLAC_RX_THR_EN   (1 << 9)
 
#define FTMAC100_MACCR_XDMA_EN   (1 << 0)
 
#define FTMAC100_MACCR_RDMA_EN   (1 << 1)
 
#define FTMAC100_MACCR_SW_RST   (1 << 2)
 
#define FTMAC100_MACCR_LOOP_EN   (1 << 3)
 
#define FTMAC100_MACCR_CRC_DIS   (1 << 4)
 
#define FTMAC100_MACCR_XMT_EN   (1 << 5)
 
#define FTMAC100_MACCR_ENRX_IN_HALFTX   (1 << 6)
 
#define FTMAC100_MACCR_RCV_EN   (1 << 8)
 
#define FTMAC100_MACCR_HT_MULTI_EN   (1 << 9)
 
#define FTMAC100_MACCR_RX_RUNT   (1 << 10)
 
#define FTMAC100_MACCR_RX_FTL   (1 << 11)
 
#define FTMAC100_MACCR_RCV_ALL   (1 << 12)
 
#define FTMAC100_MACCR_CRC_APD   (1 << 14)
 
#define FTMAC100_MACCR_FULLDUP   (1 << 15)
 
#define FTMAC100_MACCR_RX_MULTIPKT   (1 << 16)
 
#define FTMAC100_MACCR_RX_BROADPKT   (1 << 17)
 
#define FTMAC100_PHYCR_MIIRDATA   0xffff
 
#define FTMAC100_PHYCR_PHYAD(x)   (((x) & 0x1f) << 16)
 
#define FTMAC100_PHYCR_REGAD(x)   (((x) & 0x1f) << 21)
 
#define FTMAC100_PHYCR_MIIRD   (1 << 26)
 
#define FTMAC100_PHYCR_MIIWR   (1 << 27)
 
#define FTMAC100_PHYWDATA_MIIWDATA(x)   ((x) & 0xffff)
 
#define FTMAC100_TXDES0_TXPKT_LATECOL   (1 << 0)
 
#define FTMAC100_TXDES0_TXPKT_EXSCOL   (1 << 1)
 
#define FTMAC100_TXDES0_TXDMA_OWN   (1 << 31)
 
#define FTMAC100_TXDES1_TXBUF_SIZE(x)   ((x) & 0x7ff)
 
#define FTMAC100_TXDES1_LTS   (1 << 27)
 
#define FTMAC100_TXDES1_FTS   (1 << 28)
 
#define FTMAC100_TXDES1_TX2FIC   (1 << 29)
 
#define FTMAC100_TXDES1_TXIC   (1 << 30)
 
#define FTMAC100_TXDES1_EDOTR   (1 << 31)
 
#define FTMAC100_RXDES0_RFL   0x7ff
 
#define FTMAC100_RXDES0_MULTICAST   (1 << 16)
 
#define FTMAC100_RXDES0_BROADCAST   (1 << 17)
 
#define FTMAC100_RXDES0_RX_ERR   (1 << 18)
 
#define FTMAC100_RXDES0_CRC_ERR   (1 << 19)
 
#define FTMAC100_RXDES0_FTL   (1 << 20)
 
#define FTMAC100_RXDES0_RUNT   (1 << 21)
 
#define FTMAC100_RXDES0_RX_ODD_NB   (1 << 22)
 
#define FTMAC100_RXDES0_LRS   (1 << 28)
 
#define FTMAC100_RXDES0_FRS   (1 << 29)
 
#define FTMAC100_RXDES0_RXDMA_OWN   (1 << 31)
 
#define FTMAC100_RXDES1_RXBUF_SIZE(x)   ((x) & 0x7ff)
 
#define FTMAC100_RXDES1_EDORR   (1 << 31)
 

Functions

struct ftmac100_txdes __attribute__ ((aligned(16)))
 

Variables

unsigned int txdes0
 
unsigned int txdes1
 
unsigned int txdes2
 
unsigned int txdes3
 
unsigned int rxdes0
 
unsigned int rxdes1
 
unsigned int rxdes2
 
unsigned int rxdes3
 

Macro Definition Documentation

#define FTMAC100_APTC_RXPOLL_CNT (   x)    (((x) & 0xf) << 0)

Definition at line 85 of file ftmac100.h.

#define FTMAC100_APTC_RXPOLL_TIME_SEL   (1 << 4)

Definition at line 86 of file ftmac100.h.

#define FTMAC100_APTC_TXPOLL_CNT (   x)    (((x) & 0xf) << 8)

Definition at line 87 of file ftmac100.h.

#define FTMAC100_APTC_TXPOLL_TIME_SEL   (1 << 12)

Definition at line 88 of file ftmac100.h.

#define FTMAC100_DBLAC_INCR16_EN   (1 << 2)

Definition at line 95 of file ftmac100.h.

#define FTMAC100_DBLAC_INCR4_EN   (1 << 0)

Definition at line 93 of file ftmac100.h.

#define FTMAC100_DBLAC_INCR8_EN   (1 << 1)

Definition at line 94 of file ftmac100.h.

#define FTMAC100_DBLAC_RX_THR_EN   (1 << 9)

Definition at line 98 of file ftmac100.h.

#define FTMAC100_DBLAC_RXFIFO_HTHR (   x)    (((x) & 0x7) << 6)

Definition at line 97 of file ftmac100.h.

#define FTMAC100_DBLAC_RXFIFO_LTHR (   x)    (((x) & 0x7) << 3)

Definition at line 96 of file ftmac100.h.

#define FTMAC100_INT_AHB_ERR   (1 << 8)

Definition at line 69 of file ftmac100.h.

#define FTMAC100_INT_NORXBUF   (1 << 1)

Definition at line 62 of file ftmac100.h.

#define FTMAC100_INT_NOTXBUF   (1 << 3)

Definition at line 64 of file ftmac100.h.

#define FTMAC100_INT_PHYSTS_CHG   (1 << 9)

Definition at line 70 of file ftmac100.h.

#define FTMAC100_INT_RPKT_FINISH   (1 << 0)

Definition at line 61 of file ftmac100.h.

#define FTMAC100_INT_RPKT_LOST   (1 << 7)

Definition at line 68 of file ftmac100.h.

#define FTMAC100_INT_RPKT_SAV   (1 << 6)

Definition at line 67 of file ftmac100.h.

#define FTMAC100_INT_XPKT_FINISH   (1 << 2)

Definition at line 63 of file ftmac100.h.

#define FTMAC100_INT_XPKT_LOST   (1 << 5)

Definition at line 66 of file ftmac100.h.

#define FTMAC100_INT_XPKT_OK   (1 << 4)

Definition at line 65 of file ftmac100.h.

#define FTMAC100_ITC_RXINT_CNT (   x)    (((x) & 0xf) << 0)

Definition at line 75 of file ftmac100.h.

#define FTMAC100_ITC_RXINT_THR (   x)    (((x) & 0x7) << 4)

Definition at line 76 of file ftmac100.h.

#define FTMAC100_ITC_RXINT_TIME_SEL   (1 << 7)

Definition at line 77 of file ftmac100.h.

#define FTMAC100_ITC_TXINT_CNT (   x)    (((x) & 0xf) << 8)

Definition at line 78 of file ftmac100.h.

#define FTMAC100_ITC_TXINT_THR (   x)    (((x) & 0x7) << 12)

Definition at line 79 of file ftmac100.h.

#define FTMAC100_ITC_TXINT_TIME_SEL   (1 << 15)

Definition at line 80 of file ftmac100.h.

#define FTMAC100_MACCR_CRC_APD   (1 << 14)

Definition at line 115 of file ftmac100.h.

#define FTMAC100_MACCR_CRC_DIS   (1 << 4)

Definition at line 107 of file ftmac100.h.

#define FTMAC100_MACCR_ENRX_IN_HALFTX   (1 << 6)

Definition at line 109 of file ftmac100.h.

#define FTMAC100_MACCR_FULLDUP   (1 << 15)

Definition at line 116 of file ftmac100.h.

#define FTMAC100_MACCR_HT_MULTI_EN   (1 << 9)

Definition at line 111 of file ftmac100.h.

#define FTMAC100_MACCR_LOOP_EN   (1 << 3)

Definition at line 106 of file ftmac100.h.

#define FTMAC100_MACCR_RCV_ALL   (1 << 12)

Definition at line 114 of file ftmac100.h.

#define FTMAC100_MACCR_RCV_EN   (1 << 8)

Definition at line 110 of file ftmac100.h.

#define FTMAC100_MACCR_RDMA_EN   (1 << 1)

Definition at line 104 of file ftmac100.h.

#define FTMAC100_MACCR_RX_BROADPKT   (1 << 17)

Definition at line 118 of file ftmac100.h.

#define FTMAC100_MACCR_RX_FTL   (1 << 11)

Definition at line 113 of file ftmac100.h.

#define FTMAC100_MACCR_RX_MULTIPKT   (1 << 16)

Definition at line 117 of file ftmac100.h.

#define FTMAC100_MACCR_RX_RUNT   (1 << 10)

Definition at line 112 of file ftmac100.h.

#define FTMAC100_MACCR_SW_RST   (1 << 2)

Definition at line 105 of file ftmac100.h.

#define FTMAC100_MACCR_XDMA_EN   (1 << 0)

Definition at line 103 of file ftmac100.h.

#define FTMAC100_MACCR_XMT_EN   (1 << 5)

Definition at line 108 of file ftmac100.h.

#define FTMAC100_OFFSET_APTC   0x2c

Definition at line 36 of file ftmac100.h.

#define FTMAC100_OFFSET_BPR   0x9c

Definition at line 43 of file ftmac100.h.

#define FTMAC100_OFFSET_BROC   0xec

Definition at line 53 of file ftmac100.h.

#define FTMAC100_OFFSET_CRCER_FTL   0xe4

Definition at line 51 of file ftmac100.h.

#define FTMAC100_OFFSET_DBLAC   0x30

Definition at line 37 of file ftmac100.h.

#define FTMAC100_OFFSET_DMAFIFOS   0xc8

Definition at line 45 of file ftmac100.h.

#define FTMAC100_OFFSET_FCR   0x98

Definition at line 42 of file ftmac100.h.

#define FTMAC100_OFFSET_IMR   0x04

Definition at line 26 of file ftmac100.h.

#define FTMAC100_OFFSET_ISR   0x00

Definition at line 25 of file ftmac100.h.

#define FTMAC100_OFFSET_ITC   0x28

Definition at line 35 of file ftmac100.h.

#define FTMAC100_OFFSET_MAC_LADR   0x0c

Definition at line 28 of file ftmac100.h.

#define FTMAC100_OFFSET_MAC_MADR   0x08

Definition at line 27 of file ftmac100.h.

#define FTMAC100_OFFSET_MACCR   0x88

Definition at line 38 of file ftmac100.h.

#define FTMAC100_OFFSET_MACSR   0x8c

Definition at line 39 of file ftmac100.h.

#define FTMAC100_OFFSET_MAHT0   0x10

Definition at line 29 of file ftmac100.h.

#define FTMAC100_OFFSET_MAHT1   0x14

Definition at line 30 of file ftmac100.h.

#define FTMAC100_OFFSET_MULCA   0xf0

Definition at line 54 of file ftmac100.h.

#define FTMAC100_OFFSET_PHYCR   0x90

Definition at line 40 of file ftmac100.h.

#define FTMAC100_OFFSET_PHYWDATA   0x94

Definition at line 41 of file ftmac100.h.

#define FTMAC100_OFFSET_RLC_RCC   0xe8

Definition at line 52 of file ftmac100.h.

#define FTMAC100_OFFSET_RP   0xf4

Definition at line 55 of file ftmac100.h.

#define FTMAC100_OFFSET_RPF_AEP   0xd8

Definition at line 48 of file ftmac100.h.

#define FTMAC100_OFFSET_RUNT_TLCC   0xe0

Definition at line 50 of file ftmac100.h.

#define FTMAC100_OFFSET_RXPD   0x1c

Definition at line 32 of file ftmac100.h.

#define FTMAC100_OFFSET_RXR_BADR   0x24

Definition at line 34 of file ftmac100.h.

#define FTMAC100_OFFSET_TM   0xcc

Definition at line 46 of file ftmac100.h.

#define FTMAC100_OFFSET_TS   0xc4

Definition at line 44 of file ftmac100.h.

#define FTMAC100_OFFSET_TX_MCOL_SCOL   0xd4

Definition at line 47 of file ftmac100.h.

#define FTMAC100_OFFSET_TXPD   0x18

Definition at line 31 of file ftmac100.h.

#define FTMAC100_OFFSET_TXR_BADR   0x20

Definition at line 33 of file ftmac100.h.

#define FTMAC100_OFFSET_XM_PG   0xdc

Definition at line 49 of file ftmac100.h.

#define FTMAC100_OFFSET_XP   0xf8

Definition at line 56 of file ftmac100.h.

#define FTMAC100_PHYCR_MIIRD   (1 << 26)

Definition at line 126 of file ftmac100.h.

#define FTMAC100_PHYCR_MIIRDATA   0xffff

Definition at line 123 of file ftmac100.h.

#define FTMAC100_PHYCR_MIIWR   (1 << 27)

Definition at line 127 of file ftmac100.h.

#define FTMAC100_PHYCR_PHYAD (   x)    (((x) & 0x1f) << 16)

Definition at line 124 of file ftmac100.h.

#define FTMAC100_PHYCR_REGAD (   x)    (((x) & 0x1f) << 21)

Definition at line 125 of file ftmac100.h.

#define FTMAC100_PHYWDATA_MIIWDATA (   x)    ((x) & 0xffff)

Definition at line 132 of file ftmac100.h.

#define FTMAC100_RXDES0_BROADCAST   (1 << 17)

Definition at line 167 of file ftmac100.h.

#define FTMAC100_RXDES0_CRC_ERR   (1 << 19)

Definition at line 169 of file ftmac100.h.

#define FTMAC100_RXDES0_FRS   (1 << 29)

Definition at line 174 of file ftmac100.h.

#define FTMAC100_RXDES0_FTL   (1 << 20)

Definition at line 170 of file ftmac100.h.

#define FTMAC100_RXDES0_LRS   (1 << 28)

Definition at line 173 of file ftmac100.h.

#define FTMAC100_RXDES0_MULTICAST   (1 << 16)

Definition at line 166 of file ftmac100.h.

#define FTMAC100_RXDES0_RFL   0x7ff

Definition at line 165 of file ftmac100.h.

#define FTMAC100_RXDES0_RUNT   (1 << 21)

Definition at line 171 of file ftmac100.h.

#define FTMAC100_RXDES0_RX_ERR   (1 << 18)

Definition at line 168 of file ftmac100.h.

#define FTMAC100_RXDES0_RX_ODD_NB   (1 << 22)

Definition at line 172 of file ftmac100.h.

#define FTMAC100_RXDES0_RXDMA_OWN   (1 << 31)

Definition at line 175 of file ftmac100.h.

#define FTMAC100_RXDES1_EDORR   (1 << 31)

Definition at line 178 of file ftmac100.h.

#define FTMAC100_RXDES1_RXBUF_SIZE (   x)    ((x) & 0x7ff)

Definition at line 177 of file ftmac100.h.

#define FTMAC100_TXDES0_TXDMA_OWN   (1 << 31)

Definition at line 146 of file ftmac100.h.

#define FTMAC100_TXDES0_TXPKT_EXSCOL   (1 << 1)

Definition at line 145 of file ftmac100.h.

#define FTMAC100_TXDES0_TXPKT_LATECOL   (1 << 0)

Definition at line 144 of file ftmac100.h.

#define FTMAC100_TXDES1_EDOTR   (1 << 31)

Definition at line 153 of file ftmac100.h.

#define FTMAC100_TXDES1_FTS   (1 << 28)

Definition at line 150 of file ftmac100.h.

#define FTMAC100_TXDES1_LTS   (1 << 27)

Definition at line 149 of file ftmac100.h.

#define FTMAC100_TXDES1_TX2FIC   (1 << 29)

Definition at line 151 of file ftmac100.h.

#define FTMAC100_TXDES1_TXBUF_SIZE (   x)    ((x) & 0x7ff)

Definition at line 148 of file ftmac100.h.

#define FTMAC100_TXDES1_TXIC   (1 << 30)

Definition at line 152 of file ftmac100.h.

Function Documentation

Variable Documentation

unsigned int rxdes0

Definition at line 164 of file ftmac100.h.

unsigned int rxdes1

Definition at line 165 of file ftmac100.h.

unsigned int rxdes2

Definition at line 166 of file ftmac100.h.

unsigned int rxdes3

Definition at line 167 of file ftmac100.h.

unsigned int txdes0

Definition at line 143 of file ftmac100.h.

unsigned int txdes1

Definition at line 144 of file ftmac100.h.

unsigned int txdes2

Definition at line 145 of file ftmac100.h.

unsigned int txdes3

Definition at line 146 of file ftmac100.h.