Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ftgmac100_txdes |
struct | ftgmac100_rxdes |
Functions | |
struct ftgmac100_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 |
Definition at line 102 of file ftgmac100.h.
#define FTGMAC100_APTC_RXPOLL_TIME_SEL (1 << 4) |
Definition at line 103 of file ftgmac100.h.
Definition at line 104 of file ftgmac100.h.
#define FTGMAC100_APTC_TXPOLL_TIME_SEL (1 << 12) |
Definition at line 105 of file ftgmac100.h.
Definition at line 117 of file ftgmac100.h.
#define FTGMAC100_DBLAC_IFG_INC (1 << 23) |
Definition at line 118 of file ftgmac100.h.
#define FTGMAC100_DBLAC_RX_THR_EN (1 << 6) |
Definition at line 112 of file ftgmac100.h.
Definition at line 113 of file ftgmac100.h.
Definition at line 115 of file ftgmac100.h.
Definition at line 111 of file ftgmac100.h.
Definition at line 110 of file ftgmac100.h.
Definition at line 114 of file ftgmac100.h.
Definition at line 116 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXDMA1_SM | ( | dmafifos | ) | ((dmafifos) & 0xf) |
Definition at line 123 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXDMA2_SM | ( | dmafifos | ) | (((dmafifos) >> 4) & 0xf) |
Definition at line 124 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXDMA3_SM | ( | dmafifos | ) | (((dmafifos) >> 8) & 0x7) |
Definition at line 125 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXDMA_GRANT (1 << 28) |
Definition at line 131 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXDMA_REQ (1 << 30) |
Definition at line 133 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_RXFIFO_EMPTY (1 << 26) |
Definition at line 129 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXDMA1_SM | ( | dmafifos | ) | (((dmafifos) >> 12) & 0xf) |
Definition at line 126 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXDMA2_SM | ( | dmafifos | ) | (((dmafifos) >> 16) & 0x3) |
Definition at line 127 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXDMA3_SM | ( | dmafifos | ) | (((dmafifos) >> 18) & 0xf) |
Definition at line 128 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXDMA_GRANT (1 << 29) |
Definition at line 132 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXDMA_REQ (1 << 31) |
Definition at line 134 of file ftgmac100.h.
#define FTGMAC100_DMAFIFOS_TXFIFO_EMPTY (1 << 27) |
Definition at line 130 of file ftgmac100.h.
#define FTGMAC100_INT_AHB_ERR (1 << 8) |
Definition at line 85 of file ftgmac100.h.
#define FTGMAC100_INT_NO_HPTXBUF (1 << 10) |
Definition at line 87 of file ftgmac100.h.
#define FTGMAC100_INT_NO_NPTXBUF (1 << 6) |
Definition at line 83 of file ftgmac100.h.
#define FTGMAC100_INT_NO_RXBUF (1 << 2) |
Definition at line 79 of file ftgmac100.h.
#define FTGMAC100_INT_PHYSTS_CHG (1 << 9) |
Definition at line 86 of file ftgmac100.h.
#define FTGMAC100_INT_RPKT_BUF (1 << 0) |
Definition at line 77 of file ftgmac100.h.
#define FTGMAC100_INT_RPKT_FIFO (1 << 1) |
Definition at line 78 of file ftgmac100.h.
#define FTGMAC100_INT_RPKT_LOST (1 << 3) |
Definition at line 80 of file ftgmac100.h.
#define FTGMAC100_INT_XPKT_ETH (1 << 4) |
Definition at line 81 of file ftgmac100.h.
#define FTGMAC100_INT_XPKT_FIFO (1 << 5) |
Definition at line 82 of file ftgmac100.h.
#define FTGMAC100_INT_XPKT_LOST (1 << 7) |
Definition at line 84 of file ftgmac100.h.
Definition at line 92 of file ftgmac100.h.
Definition at line 93 of file ftgmac100.h.
#define FTGMAC100_ITC_RXINT_TIME_SEL (1 << 7) |
Definition at line 94 of file ftgmac100.h.
Definition at line 95 of file ftgmac100.h.
Definition at line 96 of file ftgmac100.h.
#define FTGMAC100_ITC_TXINT_TIME_SEL (1 << 15) |
Definition at line 97 of file ftgmac100.h.
#define FTGMAC100_MACCR_CRC_APD (1 << 10) |
Definition at line 154 of file ftgmac100.h.
#define FTGMAC100_MACCR_DISCARD_CRCERR (1 << 18) |
Definition at line 161 of file ftgmac100.h.
#define FTGMAC100_MACCR_ENRX_IN_HALFTX (1 << 7) |
Definition at line 151 of file ftgmac100.h.
#define FTGMAC100_MACCR_FAST_MODE (1 << 19) |
Definition at line 162 of file ftgmac100.h.
#define FTGMAC100_MACCR_FULLDUP (1 << 8) |
Definition at line 152 of file ftgmac100.h.
#define FTGMAC100_MACCR_GIGA_MODE (1 << 9) |
Definition at line 153 of file ftgmac100.h.
#define FTGMAC100_MACCR_HPTXR_EN (1 << 5) |
Definition at line 149 of file ftgmac100.h.
#define FTGMAC100_MACCR_HT_MULTI_EN (1 << 15) |
Definition at line 158 of file ftgmac100.h.
#define FTGMAC100_MACCR_JUMBO_LF (1 << 13) |
Definition at line 156 of file ftgmac100.h.
#define FTGMAC100_MACCR_LOOP_EN (1 << 6) |
Definition at line 150 of file ftgmac100.h.
#define FTGMAC100_MACCR_RM_VLAN (1 << 4) |
Definition at line 148 of file ftgmac100.h.
#define FTGMAC100_MACCR_RX_ALL (1 << 14) |
Definition at line 157 of file ftgmac100.h.
#define FTGMAC100_MACCR_RX_BROADPKT (1 << 17) |
Definition at line 160 of file ftgmac100.h.
#define FTGMAC100_MACCR_RX_MULTIPKT (1 << 16) |
Definition at line 159 of file ftgmac100.h.
#define FTGMAC100_MACCR_RX_RUNT (1 << 12) |
Definition at line 155 of file ftgmac100.h.
#define FTGMAC100_MACCR_RXDMA_EN (1 << 1) |
Definition at line 145 of file ftgmac100.h.
#define FTGMAC100_MACCR_RXMAC_EN (1 << 3) |
Definition at line 147 of file ftgmac100.h.
#define FTGMAC100_MACCR_SW_RST (1 << 31) |
Definition at line 163 of file ftgmac100.h.
#define FTGMAC100_MACCR_TXDMA_EN (1 << 0) |
Definition at line 144 of file ftgmac100.h.
#define FTGMAC100_MACCR_TXMAC_EN (1 << 2) |
Definition at line 146 of file ftgmac100.h.
#define FTGMAC100_OFFSET_APTC 0x34 |
Definition at line 38 of file ftgmac100.h.
#define FTGMAC100_OFFSET_BPR 0x6c |
Definition at line 51 of file ftgmac100.h.
#define FTGMAC100_OFFSET_DBLAC 0x38 |
Definition at line 39 of file ftgmac100.h.
#define FTGMAC100_OFFSET_DMAFIFOS 0x3c |
Definition at line 40 of file ftgmac100.h.
#define FTGMAC100_OFFSET_FCR 0x68 |
Definition at line 50 of file ftgmac100.h.
#define FTGMAC100_OFFSET_FEAR 0x44 |
Definition at line 42 of file ftgmac100.h.
#define FTGMAC100_OFFSET_HPTXPD 0x28 |
Definition at line 35 of file ftgmac100.h.
#define FTGMAC100_OFFSET_HPTXR_BADR 0x2c |
Definition at line 36 of file ftgmac100.h.
#define FTGMAC100_OFFSET_HPTXR_PTR 0x94 |
Definition at line 60 of file ftgmac100.h.
#define FTGMAC100_OFFSET_IER 0x04 |
Definition at line 26 of file ftgmac100.h.
#define FTGMAC100_OFFSET_ISR 0x00 |
Definition at line 25 of file ftgmac100.h.
#define FTGMAC100_OFFSET_ITC 0x30 |
Definition at line 37 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MAC_LADR 0x0c |
Definition at line 28 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MAC_MADR 0x08 |
Definition at line 27 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MACCR 0x50 |
Definition at line 45 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MACSR 0x54 |
Definition at line 46 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MAHT0 0x10 |
Definition at line 29 of file ftgmac100.h.
#define FTGMAC100_OFFSET_MAHT1 0x14 |
Definition at line 30 of file ftgmac100.h.
#define FTGMAC100_OFFSET_NPTXPD 0x18 |
Definition at line 31 of file ftgmac100.h.
#define FTGMAC100_OFFSET_NPTXR_BADR 0x20 |
Definition at line 33 of file ftgmac100.h.
#define FTGMAC100_OFFSET_NPTXR_PTR 0x90 |
Definition at line 59 of file ftgmac100.h.
#define FTGMAC100_OFFSET_PHYCR 0x60 |
Definition at line 48 of file ftgmac100.h.
#define FTGMAC100_OFFSET_PHYDATA 0x64 |
Definition at line 49 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RBSR 0x4c |
Definition at line 44 of file ftgmac100.h.
#define FTGMAC100_OFFSET_REVR 0x40 |
Definition at line 41 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX 0xb0 |
Definition at line 66 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_BC 0xb4 |
Definition at line 67 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_COL_LOST 0xc8 |
Definition at line 72 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_CRCER_FTL 0xc4 |
Definition at line 71 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_MC 0xb8 |
Definition at line 68 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_PF_AEP 0xbc |
Definition at line 69 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RX_RUNT 0xc0 |
Definition at line 70 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RXPD 0x1c |
Definition at line 32 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RXR_BADR 0x24 |
Definition at line 34 of file ftgmac100.h.
#define FTGMAC100_OFFSET_RXR_PTR 0x98 |
Definition at line 61 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TM 0x58 |
Definition at line 47 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TPAFCR 0x48 |
Definition at line 43 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TX 0xa0 |
Definition at line 62 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TX_ECOL_FAIL 0xa8 |
Definition at line 64 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TX_LCOL_UND 0xac |
Definition at line 65 of file ftgmac100.h.
#define FTGMAC100_OFFSET_TX_MCOL_SCOL 0xa4 |
Definition at line 63 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WFBM1 0x80 |
Definition at line 55 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WFBM2 0x84 |
Definition at line 56 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WFBM3 0x88 |
Definition at line 57 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WFBM4 0x8c |
Definition at line 58 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WFCRC 0x78 |
Definition at line 54 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WOLCR 0x70 |
Definition at line 52 of file ftgmac100.h.
#define FTGMAC100_OFFSET_WOLSR 0x74 |
Definition at line 53 of file ftgmac100.h.
Definition at line 169 of file ftgmac100.h.
#define FTGMAC100_PHYCR_MDC_CYCTHR_MASK 0x3f |
Definition at line 168 of file ftgmac100.h.
#define FTGMAC100_PHYCR_MIIRD (1 << 26) |
Definition at line 172 of file ftgmac100.h.
#define FTGMAC100_PHYCR_MIIWR (1 << 27) |
Definition at line 173 of file ftgmac100.h.
Definition at line 170 of file ftgmac100.h.
Definition at line 171 of file ftgmac100.h.
#define FTGMAC100_PHYDATA_MIIRDATA | ( | phydata | ) | (((phydata) >> 16) & 0xffff) |
Definition at line 179 of file ftgmac100.h.
Definition at line 178 of file ftgmac100.h.
Definition at line 139 of file ftgmac100.h.
#define FTGMAC100_RXDES0_BROADCAST (1 << 17) |
Definition at line 220 of file ftgmac100.h.
#define FTGMAC100_RXDES0_CRC_ERR (1 << 19) |
Definition at line 222 of file ftgmac100.h.
#define FTGMAC100_RXDES0_EDORR (1 << 15) |
Definition at line 218 of file ftgmac100.h.
#define FTGMAC100_RXDES0_FIFO_FULL (1 << 23) |
Definition at line 226 of file ftgmac100.h.
#define FTGMAC100_RXDES0_FRS (1 << 29) |
Definition at line 230 of file ftgmac100.h.
#define FTGMAC100_RXDES0_FTL (1 << 20) |
Definition at line 223 of file ftgmac100.h.
#define FTGMAC100_RXDES0_LRS (1 << 28) |
Definition at line 229 of file ftgmac100.h.
#define FTGMAC100_RXDES0_MULTICAST (1 << 16) |
Definition at line 219 of file ftgmac100.h.
#define FTGMAC100_RXDES0_PAUSE_FRAME (1 << 25) |
Definition at line 228 of file ftgmac100.h.
#define FTGMAC100_RXDES0_PAUSE_OPCODE (1 << 24) |
Definition at line 227 of file ftgmac100.h.
#define FTGMAC100_RXDES0_RUNT (1 << 21) |
Definition at line 224 of file ftgmac100.h.
#define FTGMAC100_RXDES0_RX_ERR (1 << 18) |
Definition at line 221 of file ftgmac100.h.
#define FTGMAC100_RXDES0_RX_ODD_NB (1 << 22) |
Definition at line 225 of file ftgmac100.h.
#define FTGMAC100_RXDES0_RXPKT_RDY (1 << 31) |
Definition at line 231 of file ftgmac100.h.
#define FTGMAC100_RXDES0_VDBC 0x3fff |
Definition at line 217 of file ftgmac100.h.
#define FTGMAC100_RXDES1_DF (1 << 23) |
Definition at line 240 of file ftgmac100.h.
#define FTGMAC100_RXDES1_IP_CHKSUM_ERR (1 << 27) |
Definition at line 244 of file ftgmac100.h.
#define FTGMAC100_RXDES1_LLC (1 << 22) |
Definition at line 239 of file ftgmac100.h.
#define FTGMAC100_RXDES1_PROT_IP (0x1 << 20) |
Definition at line 236 of file ftgmac100.h.
#define FTGMAC100_RXDES1_PROT_MASK (0x3 << 20) |
Definition at line 234 of file ftgmac100.h.
#define FTGMAC100_RXDES1_PROT_NONIP (0x0 << 20) |
Definition at line 235 of file ftgmac100.h.
#define FTGMAC100_RXDES1_PROT_TCPIP (0x2 << 20) |
Definition at line 237 of file ftgmac100.h.
#define FTGMAC100_RXDES1_PROT_UDPIP (0x3 << 20) |
Definition at line 238 of file ftgmac100.h.
#define FTGMAC100_RXDES1_TCP_CHKSUM_ERR (1 << 25) |
Definition at line 242 of file ftgmac100.h.
#define FTGMAC100_RXDES1_UDP_CHKSUM_ERR (1 << 26) |
Definition at line 243 of file ftgmac100.h.
#define FTGMAC100_RXDES1_VLANTAG_AVAIL (1 << 24) |
Definition at line 241 of file ftgmac100.h.
#define FTGMAC100_RXDES1_VLANTAG_CI 0xffff |
Definition at line 233 of file ftgmac100.h.
#define FTGMAC100_TXDES0_CRC_ERR (1 << 19) |
Definition at line 193 of file ftgmac100.h.
#define FTGMAC100_TXDES0_EDOTR (1 << 15) |
Definition at line 192 of file ftgmac100.h.
#define FTGMAC100_TXDES0_FTS (1 << 29) |
Definition at line 195 of file ftgmac100.h.
#define FTGMAC100_TXDES0_LTS (1 << 28) |
Definition at line 194 of file ftgmac100.h.
Definition at line 191 of file ftgmac100.h.
#define FTGMAC100_TXDES0_TXDMA_OWN (1 << 31) |
Definition at line 196 of file ftgmac100.h.
#define FTGMAC100_TXDES1_INS_VLANTAG (1 << 16) |
Definition at line 199 of file ftgmac100.h.
#define FTGMAC100_TXDES1_IP_CHKSUM (1 << 19) |
Definition at line 202 of file ftgmac100.h.
#define FTGMAC100_TXDES1_LLC (1 << 22) |
Definition at line 203 of file ftgmac100.h.
#define FTGMAC100_TXDES1_TCP_CHKSUM (1 << 17) |
Definition at line 200 of file ftgmac100.h.
#define FTGMAC100_TXDES1_TX2FIC (1 << 30) |
Definition at line 204 of file ftgmac100.h.
#define FTGMAC100_TXDES1_TXIC (1 << 31) |
Definition at line 205 of file ftgmac100.h.
#define FTGMAC100_TXDES1_UDP_CHKSUM (1 << 18) |
Definition at line 201 of file ftgmac100.h.
Definition at line 198 of file ftgmac100.h.
struct ftgmac100_txdes __attribute__ | ( | (aligned(16)) | ) |
unsigned int rxdes0 |
Definition at line 216 of file ftgmac100.h.
unsigned int rxdes1 |
Definition at line 217 of file ftgmac100.h.
unsigned int rxdes2 |
Definition at line 218 of file ftgmac100.h.
unsigned int rxdes3 |
Definition at line 219 of file ftgmac100.h.
unsigned int txdes0 |
Definition at line 190 of file ftgmac100.h.
unsigned int txdes1 |
Definition at line 191 of file ftgmac100.h.
unsigned int txdes2 |
Definition at line 192 of file ftgmac100.h.
unsigned int txdes3 |
Definition at line 193 of file ftgmac100.h.