Go to the documentation of this file.
25 #ifndef __DWMAC100_H__
26 #define __DWMAC100_H__
35 #define MAC_CONTROL 0x00000000
36 #define MAC_ADDR_HIGH 0x00000004
37 #define MAC_ADDR_LOW 0x00000008
38 #define MAC_HASH_HIGH 0x0000000c
39 #define MAC_HASH_LOW 0x00000010
40 #define MAC_MII_ADDR 0x00000014
41 #define MAC_MII_DATA 0x00000018
42 #define MAC_FLOW_CTRL 0x0000001c
43 #define MAC_VLAN1 0x00000020
44 #define MAC_VLAN2 0x00000024
47 #define MAC_CONTROL_RA 0x80000000
48 #define MAC_CONTROL_BLE 0x40000000
49 #define MAC_CONTROL_HBD 0x10000000
50 #define MAC_CONTROL_PS 0x08000000
51 #define MAC_CONTROL_DRO 0x00800000
52 #define MAC_CONTROL_EXT_LOOPBACK 0x00400000
53 #define MAC_CONTROL_OM 0x00200000
54 #define MAC_CONTROL_F 0x00100000
55 #define MAC_CONTROL_PM 0x00080000
56 #define MAC_CONTROL_PR 0x00040000
57 #define MAC_CONTROL_IF 0x00020000
58 #define MAC_CONTROL_PB 0x00010000
59 #define MAC_CONTROL_HO 0x00008000
60 #define MAC_CONTROL_HP 0x00002000
61 #define MAC_CONTROL_LCC 0x00001000
62 #define MAC_CONTROL_DBF 0x00000800
63 #define MAC_CONTROL_DRTY 0x00000400
64 #define MAC_CONTROL_ASTP 0x00000100
65 #define MAC_CONTROL_BOLMT_10 0x00000000
66 #define MAC_CONTROL_BOLMT_8 0x00000040
67 #define MAC_CONTROL_BOLMT_4 0x00000080
68 #define MAC_CONTROL_BOLMT_1 0x000000c0
69 #define MAC_CONTROL_DC 0x00000020
70 #define MAC_CONTROL_TE 0x00000008
71 #define MAC_CONTROL_RE 0x00000004
73 #define MAC_CORE_INIT (MAC_CONTROL_HBD | MAC_CONTROL_ASTP)
76 #define MAC_FLOW_CTRL_PT_MASK 0xffff0000
77 #define MAC_FLOW_CTRL_PT_SHIFT 16
78 #define MAC_FLOW_CTRL_PASS 0x00000004
79 #define MAC_FLOW_CTRL_ENABLE 0x00000002
80 #define MAC_FLOW_CTRL_PAUSE 0x00000001
83 #define MAC_MII_ADDR_WRITE 0x00000002
84 #define MAC_MII_ADDR_BUSY 0x00000001
91 #define DMA_BUS_MODE_DBO 0x00100000
92 #define DMA_BUS_MODE_BLE 0x00000080
93 #define DMA_BUS_MODE_PBL_MASK 0x00003f00
94 #define DMA_BUS_MODE_PBL_SHIFT 8
95 #define DMA_BUS_MODE_DSL_MASK 0x0000007c
96 #define DMA_BUS_MODE_DSL_SHIFT 2
97 #define DMA_BUS_MODE_BAR_BUS 0x00000002
98 #define DMA_BUS_MODE_SFT_RESET 0x00000001
99 #define DMA_BUS_MODE_DEFAULT 0x00000000
102 #define DMA_CONTROL_SF 0x00200000
119 #define DMA_MISSED_FRAME_OVE 0x10000000
120 #define DMA_MISSED_FRAME_OVE_CNTR 0x0ffe0000
121 #define DMA_MISSED_FRAME_OVE_M 0x00010000
122 #define DMA_MISSED_FRAME_M_CNTR 0x0000ffff