Go to the documentation of this file.
25 #include <linux/kernel.h>
31 #define MMC_CNTRL 0x00000100
32 #define MMC_RX_INTR 0x00000104
33 #define MMC_TX_INTR 0x00000108
34 #define MMC_RX_INTR_MASK 0x0000010c
35 #define MMC_TX_INTR_MASK 0x00000110
36 #define MMC_DEFAULT_MASK 0xffffffff
44 #define MMC_TX_OCTETCOUNT_GB 0x00000114
45 #define MMC_TX_FRAMECOUNT_GB 0x00000118
46 #define MMC_TX_BROADCASTFRAME_G 0x0000011c
47 #define MMC_TX_MULTICASTFRAME_G 0x00000120
48 #define MMC_TX_64_OCTETS_GB 0x00000124
49 #define MMC_TX_65_TO_127_OCTETS_GB 0x00000128
50 #define MMC_TX_128_TO_255_OCTETS_GB 0x0000012c
51 #define MMC_TX_256_TO_511_OCTETS_GB 0x00000130
52 #define MMC_TX_512_TO_1023_OCTETS_GB 0x00000134
53 #define MMC_TX_1024_TO_MAX_OCTETS_GB 0x00000138
54 #define MMC_TX_UNICAST_GB 0x0000013c
55 #define MMC_TX_MULTICAST_GB 0x00000140
56 #define MMC_TX_BROADCAST_GB 0x00000144
57 #define MMC_TX_UNDERFLOW_ERROR 0x00000148
58 #define MMC_TX_SINGLECOL_G 0x0000014c
59 #define MMC_TX_MULTICOL_G 0x00000150
60 #define MMC_TX_DEFERRED 0x00000154
61 #define MMC_TX_LATECOL 0x00000158
62 #define MMC_TX_EXESSCOL 0x0000015c
63 #define MMC_TX_CARRIER_ERROR 0x00000160
64 #define MMC_TX_OCTETCOUNT_G 0x00000164
65 #define MMC_TX_FRAMECOUNT_G 0x00000168
66 #define MMC_TX_EXCESSDEF 0x0000016c
67 #define MMC_TX_PAUSE_FRAME 0x00000170
68 #define MMC_TX_VLAN_FRAME_G 0x00000174
71 #define MMC_RX_FRAMECOUNT_GB 0x00000180
72 #define MMC_RX_OCTETCOUNT_GB 0x00000184
73 #define MMC_RX_OCTETCOUNT_G 0x00000188
74 #define MMC_RX_BROADCASTFRAME_G 0x0000018c
75 #define MMC_RX_MULTICASTFRAME_G 0x00000190
76 #define MMC_RX_CRC_ERRROR 0x00000194
77 #define MMC_RX_ALIGN_ERROR 0x00000198
78 #define MMC_RX_RUN_ERROR 0x0000019C
79 #define MMC_RX_JABBER_ERROR 0x000001A0
80 #define MMC_RX_UNDERSIZE_G 0x000001A4
81 #define MMC_RX_OVERSIZE_G 0x000001A8
82 #define MMC_RX_64_OCTETS_GB 0x000001AC
83 #define MMC_RX_65_TO_127_OCTETS_GB 0x000001b0
84 #define MMC_RX_128_TO_255_OCTETS_GB 0x000001b4
85 #define MMC_RX_256_TO_511_OCTETS_GB 0x000001b8
86 #define MMC_RX_512_TO_1023_OCTETS_GB 0x000001bc
87 #define MMC_RX_1024_TO_MAX_OCTETS_GB 0x000001c0
88 #define MMC_RX_UNICAST_G 0x000001c4
89 #define MMC_RX_LENGTH_ERROR 0x000001c8
90 #define MMC_RX_AUTOFRANGETYPE 0x000001cc
91 #define MMC_RX_PAUSE_FRAMES 0x000001d0
92 #define MMC_RX_FIFO_OVERFLOW 0x000001d4
93 #define MMC_RX_VLAN_FRAMES_GB 0x000001d8
94 #define MMC_RX_WATCHDOG_ERROR 0x000001dc
96 #define MMC_RX_IPC_INTR_MASK 0x00000200
97 #define MMC_RX_IPC_INTR 0x00000208
99 #define MMC_RX_IPV4_GD 0x00000210
100 #define MMC_RX_IPV4_HDERR 0x00000214
101 #define MMC_RX_IPV4_NOPAY 0x00000218
102 #define MMC_RX_IPV4_FRAG 0x0000021C
103 #define MMC_RX_IPV4_UDSBL 0x00000220
105 #define MMC_RX_IPV4_GD_OCTETS 0x00000250
106 #define MMC_RX_IPV4_HDERR_OCTETS 0x00000254
107 #define MMC_RX_IPV4_NOPAY_OCTETS 0x00000258
108 #define MMC_RX_IPV4_FRAG_OCTETS 0x0000025c
109 #define MMC_RX_IPV4_UDSBL_OCTETS 0x00000260
112 #define MMC_RX_IPV6_GD_OCTETS 0x00000264
113 #define MMC_RX_IPV6_HDERR_OCTETS 0x00000268
114 #define MMC_RX_IPV6_NOPAY_OCTETS 0x0000026c
116 #define MMC_RX_IPV6_GD 0x00000224
117 #define MMC_RX_IPV6_HDERR 0x00000228
118 #define MMC_RX_IPV6_NOPAY 0x0000022c
121 #define MMC_RX_UDP_GD 0x00000230
122 #define MMC_RX_UDP_ERR 0x00000234
123 #define MMC_RX_TCP_GD 0x00000238
124 #define MMC_RX_TCP_ERR 0x0000023c
125 #define MMC_RX_ICMP_GD 0x00000240
126 #define MMC_RX_ICMP_ERR 0x00000244
128 #define MMC_RX_UDP_GD_OCTETS 0x00000270
129 #define MMC_RX_UDP_ERR_OCTETS 0x00000274
130 #define MMC_RX_TCP_GD_OCTETS 0x00000278
131 #define MMC_RX_TCP_ERR_OCTETS 0x0000027c
132 #define MMC_RX_ICMP_GD_OCTETS 0x00000280
133 #define MMC_RX_ICMP_ERR_OCTETS 0x00000284
139 value |= (mode & 0x3F);
143 pr_debug(
"stmmac: MMC ctrl register (offset 0x%x): 0x%08x\n",