Go to the documentation of this file.
22 #ifndef __DWMAC1000_H__
23 #define __DWMAC1000_H__
28 #define GMAC_CONTROL 0x00000000
29 #define GMAC_FRAME_FILTER 0x00000004
30 #define GMAC_HASH_HIGH 0x00000008
31 #define GMAC_HASH_LOW 0x0000000c
32 #define GMAC_MII_ADDR 0x00000010
33 #define GMAC_MII_DATA 0x00000014
34 #define GMAC_FLOW_CTRL 0x00000018
35 #define GMAC_VLAN_TAG 0x0000001c
36 #define GMAC_VERSION 0x00000020
37 #define GMAC_WAKEUP_FILTER 0x00000028
39 #define GMAC_INT_STATUS 0x00000038
52 #define GMAC_INT_MASK 0x0000003c
55 #define GMAC_PMT 0x0000002c
70 #define LPI_CTRL_STATUS 0x0030
71 #define LPI_TIMER_CTRL 0x0034
74 #define LPI_CTRL_STATUS_LPITXA 0x00080000
75 #define LPI_CTRL_STATUS_PLSEN 0x00040000
76 #define LPI_CTRL_STATUS_PLS 0x00020000
77 #define LPI_CTRL_STATUS_LPIEN 0x00010000
78 #define LPI_CTRL_STATUS_RLPIST 0x00000200
79 #define LPI_CTRL_STATUS_TLPIST 0x00000100
80 #define LPI_CTRL_STATUS_RLPIEX 0x00000008
81 #define LPI_CTRL_STATUS_RLPIEN 0x00000004
82 #define LPI_CTRL_STATUS_TLPIEX 0x00000002
83 #define LPI_CTRL_STATUS_TLPIEN 0x00000001
86 #define GMAC_ADDR_HIGH(reg) (((reg > 15) ? 0x00000800 : 0x00000040) + \
88 #define GMAC_ADDR_LOW(reg) (((reg > 15) ? 0x00000804 : 0x00000044) + \
90 #define GMAC_MAX_PERFECT_ADDRESSES 32
92 #define GMAC_AN_CTRL 0x000000c0
93 #define GMAC_AN_STATUS 0x000000c4
94 #define GMAC_ANE_ADV 0x000000c8
95 #define GMAC_ANE_LINK 0x000000cc
96 #define GMAC_ANE_EXP 0x000000d0
97 #define GMAC_TBI 0x000000d4
98 #define GMAC_GMII_STATUS 0x000000d8
101 #define GMAC_CONTROL_TC 0x01000000
102 #define GMAC_CONTROL_WD 0x00800000
103 #define GMAC_CONTROL_JD 0x00400000
104 #define GMAC_CONTROL_BE 0x00200000
105 #define GMAC_CONTROL_JE 0x00100000
111 #define GMAC_CONTROL_DCRS 0x00010000
112 #define GMAC_CONTROL_PS 0x00008000
113 #define GMAC_CONTROL_FES 0x00004000
114 #define GMAC_CONTROL_DO 0x00002000
115 #define GMAC_CONTROL_LM 0x00001000
116 #define GMAC_CONTROL_DM 0x00000800
117 #define GMAC_CONTROL_IPC 0x00000400
118 #define GMAC_CONTROL_DR 0x00000200
119 #define GMAC_CONTROL_LUD 0x00000100
120 #define GMAC_CONTROL_ACS 0x00000080
121 #define GMAC_CONTROL_DC 0x00000010
122 #define GMAC_CONTROL_TE 0x00000008
123 #define GMAC_CONTROL_RE 0x00000004
125 #define GMAC_CORE_INIT (GMAC_CONTROL_JD | GMAC_CONTROL_PS | GMAC_CONTROL_ACS | \
126 GMAC_CONTROL_JE | GMAC_CONTROL_BE)
129 #define GMAC_FRAME_FILTER_PR 0x00000001
130 #define GMAC_FRAME_FILTER_HUC 0x00000002
131 #define GMAC_FRAME_FILTER_HMC 0x00000004
132 #define GMAC_FRAME_FILTER_DAIF 0x00000008
133 #define GMAC_FRAME_FILTER_PM 0x00000010
134 #define GMAC_FRAME_FILTER_DBF 0x00000020
135 #define GMAC_FRAME_FILTER_SAIF 0x00000100
136 #define GMAC_FRAME_FILTER_SAF 0x00000200
137 #define GMAC_FRAME_FILTER_HPF 0x00000400
138 #define GMAC_FRAME_FILTER_RA 0x80000000
140 #define GMAC_MII_ADDR_WRITE 0x00000002
141 #define GMAC_MII_ADDR_BUSY 0x00000001
143 #define GMAC_FLOW_CTRL_PT_MASK 0xffff0000
144 #define GMAC_FLOW_CTRL_PT_SHIFT 16
145 #define GMAC_FLOW_CTRL_RFE 0x00000004
146 #define GMAC_FLOW_CTRL_TFE 0x00000002
147 #define GMAC_FLOW_CTRL_FCB_BPA 0x00000001
151 #define DMA_BUS_MODE_SFT_RESET 0x00000001
152 #define DMA_BUS_MODE_DA 0x00000002
153 #define DMA_BUS_MODE_DSL_MASK 0x0000007c
154 #define DMA_BUS_MODE_DSL_SHIFT 2
156 #define DMA_BUS_MODE_PBL_MASK 0x00003f00
157 #define DMA_BUS_MODE_PBL_SHIFT 8
165 #define DMA_BUS_MODE_FB 0x00010000
166 #define DMA_BUS_MODE_MB 0x04000000
167 #define DMA_BUS_MODE_RPBL_MASK 0x003e0000
168 #define DMA_BUS_MODE_RPBL_SHIFT 17
169 #define DMA_BUS_MODE_USP 0x00800000
170 #define DMA_BUS_MODE_PBL 0x01000000
171 #define DMA_BUS_MODE_AAL 0x02000000
174 #define DMA_HOST_TX_DESC 0x00001048
175 #define DMA_HOST_RX_DESC 0x0000104c
177 #define DMA_BUS_PR_RATIO_MASK 0x0000c000
178 #define DMA_BUS_PR_RATIO_SHIFT 14
179 #define DMA_BUS_FB 0x00010000
182 #define DMA_CONTROL_DT 0x04000000
183 #define DMA_CONTROL_RSF 0x02000000
184 #define DMA_CONTROL_DFF 0x01000000
199 #define DMA_CONTROL_TSF 0x00200000
211 #define DMA_CONTROL_TC_TX_MASK 0xfffe3fff
213 #define DMA_CONTROL_EFC 0x00000100
214 #define DMA_CONTROL_FEF 0x00000080
215 #define DMA_CONTROL_FUF 0x00000040
223 #define DMA_CONTROL_TC_RX_MASK 0xffffffe7
225 #define DMA_CONTROL_OSF 0x00000004
228 #define GMAC_MMC_CTRL 0x100
229 #define GMAC_MMC_RX_INTR 0x104
230 #define GMAC_MMC_TX_INTR 0x108
231 #define GMAC_MMC_RX_CSUM_OFFLOAD 0x208
234 #define DWMAC_CORE_3_40 0x34