Go to the documentation of this file.
29 #include <linux/netdevice.h>
31 #include <linux/module.h>
33 #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
34 #define STMMAC_VLAN_TAG_USED
35 #include <linux/if_vlan.h>
41 #undef CHIP_DEBUG_PRINT
45 #ifdef CHIP_DEBUG_PRINT
46 #define CHIP_DBG(fmt, args...) printk(fmt, ## args)
48 #define CHIP_DBG(fmt, args...) do { } while (0)
51 #undef FRAME_FILTER_DEBUG
114 #define CSR_F_35M 35000000
115 #define CSR_F_60M 60000000
116 #define CSR_F_100M 100000000
117 #define CSR_F_150M 150000000
118 #define CSR_F_250M 250000000
119 #define CSR_F_300M 300000000
121 #define MAC_CSR_H_FRQ_MASK 0x20
123 #define HASH_TABLE_SIZE 64
124 #define PAUSE_TIME 0x200
130 #define FLOW_AUTO (FLOW_TX | FLOW_RX)
132 #define SF_DMA_MODE 1
135 #define DMA_HW_FEAT_MIISEL 0x00000001
136 #define DMA_HW_FEAT_GMIISEL 0x00000002
137 #define DMA_HW_FEAT_HDSEL 0x00000004
138 #define DMA_HW_FEAT_EXTHASHEN 0x00000008
139 #define DMA_HW_FEAT_HASHSEL 0x00000010
140 #define DMA_HW_FEAT_ADDMACADRSEL 0x00000020
141 #define DMA_HW_FEAT_PCSSEL 0x00000040
142 #define DMA_HW_FEAT_L3L4FLTREN 0x00000080
143 #define DMA_HW_FEAT_SMASEL 0x00000100
144 #define DMA_HW_FEAT_RWKSEL 0x00000200
145 #define DMA_HW_FEAT_MGKSEL 0x00000400
146 #define DMA_HW_FEAT_MMCSEL 0x00000800
147 #define DMA_HW_FEAT_TSVER1SEL 0x00001000
148 #define DMA_HW_FEAT_TSVER2SEL 0x00002000
149 #define DMA_HW_FEAT_EEESEL 0x00004000
150 #define DMA_HW_FEAT_AVSEL 0x00008000
151 #define DMA_HW_FEAT_TXCOESEL 0x00010000
152 #define DMA_HW_FEAT_RXTYP1COE 0x00020000
153 #define DMA_HW_FEAT_RXTYP2COE 0x00040000
154 #define DMA_HW_FEAT_RXFIFOSIZE 0x00080000
155 #define DMA_HW_FEAT_RXCHCNT 0x00300000
156 #define DMA_HW_FEAT_TXCHCNT 0x00c00000
157 #define DMA_HW_FEAT_ENHDESSEL 0x01000000
158 #define DMA_HW_FEAT_INTTSEN 0x02000000
160 #define DMA_HW_FEAT_FLEXIPPSEN 0x04000000
161 #define DMA_HW_FEAT_SAVLANINS 0x08000000
162 #define DMA_HW_FEAT_ACTPHYIF 0x70000000
163 #define DEFAULT_DMA_PBL 8
221 #define BUF_SIZE_16KiB 16384
222 #define BUF_SIZE_8KiB 8192
223 #define BUF_SIZE_4KiB 4096
224 #define BUF_SIZE_2KiB 2048
227 #define PMT_NOT_SUPPORTED 0
228 #define PMT_SUPPORTED 1
231 #define MAC_CTRL_REG 0x00000000
232 #define MAC_ENABLE_TX 0x00000008
233 #define MAC_RNABLE_RX 0x00000004
236 #define STMMAC_DEFAULT_LIT_LS_TIMER 0x3E8
237 #define STMMAC_DEFAULT_TWT_LS_TIMER 0x0
314 unsigned int fc,
unsigned int pause_time);
364 unsigned int high,
unsigned int low);
366 unsigned int high,
unsigned int low);