Lines Matching refs:val
33 static void dsa_mv88e6161(int reg, u16 val) in dsa_mv88e6161() argument
37 REG(reg, "Port Status", val); in dsa_mv88e6161()
38 FIELD("Pause Enabled", "%u", !!(val & 0x8000)); in dsa_mv88e6161()
39 FIELD("My Pause", "%u", !!(val & 0x4000)); in dsa_mv88e6161()
40 FIELD("Half-duplex Flow Control", "%u", !!(val & 0x2000)); in dsa_mv88e6161()
41 FIELD("802.3 PHY Detected", "%u", !!(val & 0x1000)); in dsa_mv88e6161()
42 FIELD("Link Status", "%s", val & 0x0800 ? "Up" : "Down"); in dsa_mv88e6161()
43 FIELD("Duplex", "%s", val & 0x0400 ? "Full" : "Half"); in dsa_mv88e6161()
45 (val & 0x0300) == 0x0000 ? "10 Mbps" : in dsa_mv88e6161()
46 (val & 0x0300) == 0x0100 ? "100 Mbps" : in dsa_mv88e6161()
47 (val & 0x0300) == 0x0200 ? "1000 Mbps" : in dsa_mv88e6161()
48 (val & 0x0300) == 0x0300 ? "Reserved" : "?"); in dsa_mv88e6161()
49 FIELD("Auto-Media Detect Disable", "%u", !!(val & 0x0040)); in dsa_mv88e6161()
50 FIELD("Transmitter Paused", "%u", !!(val & 0x0020)); in dsa_mv88e6161()
51 FIELD("Flow Control", "%u", !!(val & 0x0010)); in dsa_mv88e6161()
52 FIELD("Config Duplex", "%s", val & 0x0008 ? "Full" : "Half"); in dsa_mv88e6161()
53 FIELD("Config Mode", "0x%x", val & 0x0007); in dsa_mv88e6161()
56 REG(reg, "PCS Control", val); in dsa_mv88e6161()
57 FIELD("Flow Control's Forced value", "%u", !!(val & 0x0080)); in dsa_mv88e6161()
58 FIELD("Force Flow Control", "%u", !!(val & 0x0040)); in dsa_mv88e6161()
59 FIELD("Link's Forced value", "%s", val & 0x0020 ? "Up" : "Down"); in dsa_mv88e6161()
60 FIELD("Force Link", "%u", !!(val & 0x0010)); in dsa_mv88e6161()
61 FIELD("Duplex's Forced value", "%s", val & 0x0008 ? "Full" : "Half"); in dsa_mv88e6161()
62 FIELD("Force Duplex", "%u", !!(val & 0x0004)); in dsa_mv88e6161()
64 (val & 0x0003) == 0x0000 ? "10 Mbps" : in dsa_mv88e6161()
65 (val & 0x0003) == 0x0001 ? "100 Mbps" : in dsa_mv88e6161()
66 (val & 0x0003) == 0x0002 ? "1000 Mbps" : in dsa_mv88e6161()
67 (val & 0x0003) == 0x0003 ? "Not forced" : "?"); in dsa_mv88e6161()
70 REG(reg, "Jamming Control", val); in dsa_mv88e6161()
73 REG(reg, "Switch Identifier", val); in dsa_mv88e6161()
76 REG(reg, "Port Control", val); in dsa_mv88e6161()
78 (val & 0xc000) == 0x0000 ? "Disabled" : in dsa_mv88e6161()
79 (val & 0xc000) == 0x4000 ? "Drop On Lock" : in dsa_mv88e6161()
80 (val & 0xc000) == 0x8000 ? "Drop On Unlock" : in dsa_mv88e6161()
81 (val & 0xc000) == 0xc000 ? "Drop to CPU" : "?"); in dsa_mv88e6161()
83 (val & 0x3000) == 0x0000 ? "Unmodified" : in dsa_mv88e6161()
84 (val & 0x3000) == 0x1000 ? "Untagged" : in dsa_mv88e6161()
85 (val & 0x3000) == 0x2000 ? "Tagged" : in dsa_mv88e6161()
86 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6161()
87 FIELD("Ingress & Egress Header Mode", "%u", !!(val & 0x0800)); in dsa_mv88e6161()
88 FIELD("IGMP and MLD Snooping", "%u", !!(val & 0x0400)); in dsa_mv88e6161()
90 (val & 0x0300) == 0x0000 ? "Normal" : in dsa_mv88e6161()
91 (val & 0x0300) == 0x0100 ? "DSA" : in dsa_mv88e6161()
92 (val & 0x0300) == 0x0200 ? "Provider" : in dsa_mv88e6161()
93 (val & 0x0300) == 0x0300 ? "Ether Type DSA" : "?"); in dsa_mv88e6161()
94 FIELD("VLAN Tunnel", "%u", !!(val & 0x0080)); in dsa_mv88e6161()
95 FIELD("TagIfBoth", "%u", !!(val & 0x0040)); in dsa_mv88e6161()
97 (val & 0x0030) == 0x0000 ? "Defaults" : in dsa_mv88e6161()
98 (val & 0x0030) == 0x0010 ? "Tag Priority" : in dsa_mv88e6161()
99 (val & 0x0030) == 0x0020 ? "IP Priority" : in dsa_mv88e6161()
100 (val & 0x0030) == 0x0030 ? "Tag & IP Priority" : "?"); in dsa_mv88e6161()
102 (val & 0x000c) == 0x0000 ? "No unknown DA" : in dsa_mv88e6161()
103 (val & 0x000c) == 0x0004 ? "No unknown multicast DA" : in dsa_mv88e6161()
104 (val & 0x000c) == 0x0008 ? "No unknown unicast DA" : in dsa_mv88e6161()
105 (val & 0x000c) == 0x000c ? "Allow unknown DA" : "?"); in dsa_mv88e6161()
107 (val & 0x0003) == 0x0000 ? "Disabled" : in dsa_mv88e6161()
108 (val & 0x0003) == 0x0001 ? "Blocking/Listening" : in dsa_mv88e6161()
109 (val & 0x0003) == 0x0002 ? "Learning" : in dsa_mv88e6161()
110 (val & 0x0003) == 0x0003 ? "Forwarding" : "?"); in dsa_mv88e6161()
113 REG(reg, "Port Control 1", val); in dsa_mv88e6161()
114 FIELD("Message Port", "%u", !!(val & 0x8000)); in dsa_mv88e6161()
115 FIELD("Trunk Port", "%u", !!(val & 0x4000)); in dsa_mv88e6161()
116 FIELD("Trunk ID", "%u", (val & 0x0f00) >> 8); in dsa_mv88e6161()
117 FIELD("FID[5:4]", "0x%.2x", (val & 0x0003) << 4); in dsa_mv88e6161()
120 REG(reg, "Port Base VLAN Map (Header)", val); in dsa_mv88e6161()
121 FIELD("FID[3:0]", "0x%.2x", (val & 0xf000) >> 12); in dsa_mv88e6161()
122 FIELD_BITMAP("VLANTable", val & 0x003f); in dsa_mv88e6161()
125 REG(reg, "Default VLAN ID & Priority", val); in dsa_mv88e6161()
126 FIELD("Default Priority", "0x%x", (val & 0xe000) >> 13); in dsa_mv88e6161()
127 FIELD("Force to use Default VID", "%u", !!(val & 0x1000)); in dsa_mv88e6161()
128 FIELD("Default VLAN Identifier", "%u", val & 0x0fff); in dsa_mv88e6161()
131 REG(reg, "Port Control 2", val); in dsa_mv88e6161()
132 FIELD("Force good FCS in the frame", "%u", !!(val & 0x8000)); in dsa_mv88e6161()
134 (val & 0x3000) == 0x0000 ? "1522" : in dsa_mv88e6161()
135 (val & 0x3000) == 0x1000 ? "2048" : in dsa_mv88e6161()
136 (val & 0x3000) == 0x2000 ? "10240" : in dsa_mv88e6161()
137 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6161()
139 (val & 0x0c00) == 0x0000 ? "Disabled" : in dsa_mv88e6161()
140 (val & 0x0c00) == 0x0400 ? "Fallback" : in dsa_mv88e6161()
141 (val & 0x0c00) == 0x0800 ? "Check" : in dsa_mv88e6161()
142 (val & 0x0c00) == 0x0c00 ? "Secure" : "?"); in dsa_mv88e6161()
143 FIELD("Discard Tagged Frames", "%u", !!(val & 0x0200)); in dsa_mv88e6161()
144 FIELD("Discard Untagged Frames", "%u", !!(val & 0x0100)); in dsa_mv88e6161()
145 FIELD("Map using DA hits", "%u", !!(val & 0x0080)); in dsa_mv88e6161()
146 FIELD("ARP Mirror enable", "%u", !!(val & 0x0040)); in dsa_mv88e6161()
147 FIELD("Egress Monitor Source Port", "%u", !!(val & 0x0020)); in dsa_mv88e6161()
148 FIELD("Ingress Monitor Source Port", "%u", !!(val & 0x0010)); in dsa_mv88e6161()
151 REG(reg, "Egress Rate Control", val); in dsa_mv88e6161()
154 REG(reg, "Egress Rate Control 2", val); in dsa_mv88e6161()
157 REG(reg, "Port Association Vector", val); in dsa_mv88e6161()
160 REG(reg, "Port ATU Control", val); in dsa_mv88e6161()
163 REG(reg, "Priority Override", val); in dsa_mv88e6161()
166 REG(reg, "PortEType", val); in dsa_mv88e6161()
169 REG(reg, "InDiscardsLo Frame Counter", val); in dsa_mv88e6161()
172 REG(reg, "InDiscardsHi Frame Counter", val); in dsa_mv88e6161()
175 REG(reg, "InFiltered Frame Counter", val); in dsa_mv88e6161()
178 REG(reg, "OutFiltered Frame Counter", val); in dsa_mv88e6161()
181 REG(reg, "Tag Remap 0-3", val); in dsa_mv88e6161()
184 REG(reg, "Tag Remap 4-7", val); in dsa_mv88e6161()
187 REG(reg, "Queue Counters", val); in dsa_mv88e6161()
190 REG(reg, "Reserved", val); in dsa_mv88e6161()
195 static void dsa_mv88e6185(int reg, u16 val) in dsa_mv88e6185() argument
199 REG(reg, "Port Status", val); in dsa_mv88e6185()
202 REG(reg, "PCS Control", val); in dsa_mv88e6185()
205 REG(reg, "Switch Identifier", val); in dsa_mv88e6185()
208 REG(reg, "Port Control", val); in dsa_mv88e6185()
211 REG(reg, "Port Control 1", val); in dsa_mv88e6185()
214 REG(reg, "Port Base VLAN Map (Header)", val); in dsa_mv88e6185()
217 REG(reg, "Default VLAN ID & Priority", val); in dsa_mv88e6185()
220 REG(reg, "Port Control 2", val); in dsa_mv88e6185()
223 REG(reg, "Rate Control", val); in dsa_mv88e6185()
226 REG(reg, "Rate Control 2", val); in dsa_mv88e6185()
229 REG(reg, "Port Association Vector", val); in dsa_mv88e6185()
232 REG(reg, "InDiscardsLo Frame Counter", val); in dsa_mv88e6185()
235 REG(reg, "InDiscardsHi Frame Counter", val); in dsa_mv88e6185()
238 REG(reg, "InFiltered Frame Counter", val); in dsa_mv88e6185()
241 REG(reg, "OutFiltered Frame Counter", val); in dsa_mv88e6185()
244 REG(reg, "Tag Remap 0-3", val); in dsa_mv88e6185()
247 REG(reg, "Tag Remap 4-7", val); in dsa_mv88e6185()
250 REG(reg, "Reserved", val); in dsa_mv88e6185()
255 static void dsa_mv88e6352(int reg, u16 val) in dsa_mv88e6352() argument
259 REG(reg, "Port Status", val); in dsa_mv88e6352()
260 FIELD("Pause Enabled", "%u", !!(val & 0x8000)); in dsa_mv88e6352()
261 FIELD("My Pause", "%u", !!(val & 0x4000)); in dsa_mv88e6352()
262 FIELD("802.3 PHY Detected", "%u", !!(val & 0x1000)); in dsa_mv88e6352()
263 FIELD("Link Status", "%s", val & 0x0800 ? "Up" : "Down"); in dsa_mv88e6352()
264 FIELD("Duplex", "%s", val & 0x0400 ? "Full" : "Half"); in dsa_mv88e6352()
266 (val & 0x0300) == 0x0000 ? "10 Mbps" : in dsa_mv88e6352()
267 (val & 0x0300) == 0x0100 ? "100 or 200 Mbps" : in dsa_mv88e6352()
268 (val & 0x0300) == 0x0200 ? "1000 Mbps" : in dsa_mv88e6352()
269 (val & 0x0300) == 0x0300 ? "Reserved" : "?"); in dsa_mv88e6352()
270 FIELD("EEE Enabled", "%u", !!(val & 0x0040)); in dsa_mv88e6352()
271 FIELD("Transmitter Paused", "%u", !!(val & 0x0020)); in dsa_mv88e6352()
272 FIELD("Flow Control", "%u", !!(val & 0x0010)); in dsa_mv88e6352()
273 FIELD("Config Mode", "0x%x", val & 0x000f); in dsa_mv88e6352()
276 REG(reg, "Physical Control", val); in dsa_mv88e6352()
277 FIELD("RGMII Receive Timing Control", "%s", val & 0x8000 ? "Delay" : "Default"); in dsa_mv88e6352()
278 FIELD("RGMII Transmit Timing Control", "%s", val & 0x4000 ? "Delay" : "Default"); in dsa_mv88e6352()
279 FIELD("200 BASE Mode", "%s", val & 0x1000 ? "200" : "100"); in dsa_mv88e6352()
280 FIELD("Flow Control's Forced value", "%u", !!(val & 0x0080)); in dsa_mv88e6352()
281 FIELD("Force Flow Control", "%u", !!(val & 0x0040)); in dsa_mv88e6352()
282 FIELD("Link's Forced value", "%s", val & 0x0020 ? "Up" : "Down"); in dsa_mv88e6352()
283 FIELD("Force Link", "%u", !!(val & 0x0010)); in dsa_mv88e6352()
284 FIELD("Duplex's Forced value", "%s", val & 0x0008 ? "Full" : "Half"); in dsa_mv88e6352()
285 FIELD("Force Duplex", "%u", !!(val & 0x0004)); in dsa_mv88e6352()
287 (val & 0x0003) == 0x0000 ? "10 Mbps" : in dsa_mv88e6352()
288 (val & 0x0003) == 0x0001 ? "100 or 200 Mbps" : in dsa_mv88e6352()
289 (val & 0x0003) == 0x0002 ? "1000 Mbps" : in dsa_mv88e6352()
290 (val & 0x0003) == 0x0003 ? "Not forced" : "?"); in dsa_mv88e6352()
293 REG(reg, "Jamming Control", val); in dsa_mv88e6352()
296 REG(reg, "Switch Identifier", val); in dsa_mv88e6352()
299 REG(reg, "Port Control", val); in dsa_mv88e6352()
301 (val & 0xc000) == 0x0000 ? "Disabled" : in dsa_mv88e6352()
302 (val & 0xc000) == 0x4000 ? "Drop On Lock" : in dsa_mv88e6352()
303 (val & 0xc000) == 0x8000 ? "Drop On Unlock" : in dsa_mv88e6352()
304 (val & 0xc000) == 0xc000 ? "Drop to CPU" : "?"); in dsa_mv88e6352()
306 (val & 0x3000) == 0x0000 ? "Unmodified" : in dsa_mv88e6352()
307 (val & 0x3000) == 0x1000 ? "Untagged" : in dsa_mv88e6352()
308 (val & 0x3000) == 0x2000 ? "Tagged" : in dsa_mv88e6352()
309 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6352()
310 FIELD("Ingress & Egress Header Mode", "%u", !!(val & 0x0800)); in dsa_mv88e6352()
311 FIELD("IGMP and MLD Snooping", "%u", !!(val & 0x0400)); in dsa_mv88e6352()
313 (val & 0x0300) == 0x0000 ? "Normal" : in dsa_mv88e6352()
314 (val & 0x0300) == 0x0100 ? "DSA" : in dsa_mv88e6352()
315 (val & 0x0300) == 0x0200 ? "Provider" : in dsa_mv88e6352()
316 (val & 0x0300) == 0x0300 ? "Ether Type DSA" : "?"); in dsa_mv88e6352()
317 FIELD("VLAN Tunnel", "%u", !!(val & 0x0080)); in dsa_mv88e6352()
318 FIELD("TagIfBoth", "%u", !!(val & 0x0040)); in dsa_mv88e6352()
320 (val & 0x0030) == 0x0000 ? "Defaults" : in dsa_mv88e6352()
321 (val & 0x0030) == 0x0010 ? "Tag Priority" : in dsa_mv88e6352()
322 (val & 0x0030) == 0x0020 ? "IP Priority" : in dsa_mv88e6352()
323 (val & 0x0030) == 0x0030 ? "Tag & IP Priority" : "?"); in dsa_mv88e6352()
325 (val & 0x000c) == 0x0000 ? "No unknown DA" : in dsa_mv88e6352()
326 (val & 0x000c) == 0x0004 ? "No unknown multicast DA" : in dsa_mv88e6352()
327 (val & 0x000c) == 0x0008 ? "No unknown unicast DA" : in dsa_mv88e6352()
328 (val & 0x000c) == 0x000c ? "Allow unknown DA" : "?"); in dsa_mv88e6352()
330 (val & 0x0003) == 0x0000 ? "Disabled" : in dsa_mv88e6352()
331 (val & 0x0003) == 0x0001 ? "Blocking/Listening" : in dsa_mv88e6352()
332 (val & 0x0003) == 0x0002 ? "Learning" : in dsa_mv88e6352()
333 (val & 0x0003) == 0x0003 ? "Forwarding" : "?"); in dsa_mv88e6352()
336 REG(reg, "Port Control 1", val); in dsa_mv88e6352()
337 FIELD("Message Port", "%u", !!(val & 0x8000)); in dsa_mv88e6352()
338 FIELD("Trunk Port", "%u", !!(val & 0x4000)); in dsa_mv88e6352()
339 FIELD("Trunk ID", "%u", (val & 0x0f00) >> 8); in dsa_mv88e6352()
340 FIELD("FID[11:4]", "0x%.3x", (val & 0x00ff) << 4); in dsa_mv88e6352()
343 REG(reg, "Port Base VLAN Map (Header)", val); in dsa_mv88e6352()
344 FIELD("FID[3:0]", "0x%.3x", (val & 0xf000) >> 12); in dsa_mv88e6352()
345 FIELD_BITMAP("VLANTable", val & 0x007f); in dsa_mv88e6352()
348 REG(reg, "Default VLAN ID & Priority", val); in dsa_mv88e6352()
349 FIELD("Default Priority", "0x%x", (val & 0xe000) >> 13); in dsa_mv88e6352()
350 FIELD("Force to use Default VID", "%u", !!(val & 0x1000)); in dsa_mv88e6352()
351 FIELD("Default VLAN Identifier", "%u", val & 0x0fff); in dsa_mv88e6352()
354 REG(reg, "Port Control 2", val); in dsa_mv88e6352()
355 FIELD("Force good FCS in the frame", "%u", !!(val & 0x8000)); in dsa_mv88e6352()
357 (val & 0x3000) == 0x0000 ? "1522" : in dsa_mv88e6352()
358 (val & 0x3000) == 0x1000 ? "2048" : in dsa_mv88e6352()
359 (val & 0x3000) == 0x2000 ? "10240" : in dsa_mv88e6352()
360 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6352()
362 (val & 0x0c00) == 0x0000 ? "Disabled" : in dsa_mv88e6352()
363 (val & 0x0c00) == 0x0400 ? "Fallback" : in dsa_mv88e6352()
364 (val & 0x0c00) == 0x0800 ? "Check" : in dsa_mv88e6352()
365 (val & 0x0c00) == 0x0c00 ? "Secure" : "?"); in dsa_mv88e6352()
366 FIELD("Discard Tagged Frames", "%u", !!(val & 0x0200)); in dsa_mv88e6352()
367 FIELD("Discard Untagged Frames", "%u", !!(val & 0x0100)); in dsa_mv88e6352()
368 FIELD("Map using DA hits", "%u", !!(val & 0x0080)); in dsa_mv88e6352()
369 FIELD("ARP Mirror enable", "%u", !!(val & 0x0040)); in dsa_mv88e6352()
370 FIELD("Egress Monitor Source Port", "%u", !!(val & 0x0020)); in dsa_mv88e6352()
371 FIELD("Ingress Monitor Source Port", "%u", !!(val & 0x0010)); in dsa_mv88e6352()
372 FIELD("Use Default Queue Priority", "%u", !!(val & 0x0008)); in dsa_mv88e6352()
373 FIELD("Default Queue Priority", "0x%x", (val & 0x0006) >> 1); in dsa_mv88e6352()
376 REG(reg, "Egress Rate Control", val); in dsa_mv88e6352()
379 REG(reg, "Egress Rate Control 2", val); in dsa_mv88e6352()
382 REG(reg, "Port Association Vector", val); in dsa_mv88e6352()
385 REG(reg, "Port ATU Control", val); in dsa_mv88e6352()
388 REG(reg, "Override", val); in dsa_mv88e6352()
391 REG(reg, "Policy Control", val); in dsa_mv88e6352()
394 REG(reg, "Port Ether Type", val); in dsa_mv88e6352()
397 REG(reg, "InDiscardsLo Frame Counter", val); in dsa_mv88e6352()
400 REG(reg, "InDiscardsHi Frame Counter", val); in dsa_mv88e6352()
403 REG(reg, "InFiltered/TcamCtr Frame Counter", val); in dsa_mv88e6352()
406 REG(reg, "Rx Frame Counter", val); in dsa_mv88e6352()
409 REG(reg, "LED Control", val); in dsa_mv88e6352()
412 REG(reg, "Tag Remap 0-3", val); in dsa_mv88e6352()
415 REG(reg, "Tag Remap 4-7", val); in dsa_mv88e6352()
418 REG(reg, "Queue Counters", val); in dsa_mv88e6352()
421 REG(reg, "Reserved", val); in dsa_mv88e6352()
426 static void dsa_mv88e6390(int reg, u16 val) in dsa_mv88e6390() argument
430 REG(reg, "Port Status", val); in dsa_mv88e6390()
431 FIELD("Transmit Pause Enable bit", "%u", !!(val & 0x8000)); in dsa_mv88e6390()
432 FIELD("Receive Pause Enable bit", "%u", !!(val & 0x4000)); in dsa_mv88e6390()
433 FIELD("802.3 PHY Detected", "%u", !!(val & 0x1000)); in dsa_mv88e6390()
434 FIELD("Link Status", "%s", val & 0x0800 ? "Up" : "Down"); in dsa_mv88e6390()
435 FIELD("Duplex", "%s", val & 0x0400 ? "Full" : "Half"); in dsa_mv88e6390()
437 (val & 0x0300) == 0x0000 ? "10 Mbps" : in dsa_mv88e6390()
438 (val & 0x0300) == 0x0100 ? "100 or 200 Mbps" : in dsa_mv88e6390()
439 (val & 0x0300) == 0x0200 ? "1000 Mbps" : in dsa_mv88e6390()
440 (val & 0x0300) == 0x0300 ? "10 Gb or 2500 Mbps" : "?"); in dsa_mv88e6390()
441 FIELD("Duplex Fixed", "%u", !!(val & 0x0080)); in dsa_mv88e6390()
442 FIELD("EEE Enabled", "%u", !!(val & 0x0040)); in dsa_mv88e6390()
443 FIELD("Transmitter Paused", "%u", !!(val & 0x0020)); in dsa_mv88e6390()
444 FIELD("Flow Control", "%u", !!(val & 0x0010)); in dsa_mv88e6390()
445 FIELD("Config Mode", "0x%x", val & 0x000f); in dsa_mv88e6390()
448 REG(reg, "Physical Control", val); in dsa_mv88e6390()
449 FIELD("RGMII Receive Timing Control", "%s", val & 0x8000 ? "Delay" : "Default"); in dsa_mv88e6390()
450 FIELD("RGMII Transmit Timing Control", "%s", val & 0x4000 ? "Delay" : "Default"); in dsa_mv88e6390()
451 FIELD("Force Speed", "%u", !!(val & 0x2000)); in dsa_mv88e6390()
452 FIELD("Alternate Speed Mode", "%s", val & 0x1000 ? "Alternate" : "Normal"); in dsa_mv88e6390()
453 FIELD("MII PHY Mode", "%s", val & 0x0800 ? "PHY" : "MAC"); in dsa_mv88e6390()
454 FIELD("EEE force value", "%u", !!(val & 0x0200)); in dsa_mv88e6390()
455 FIELD("Force EEE", "%u", !!(val & 0x0100)); in dsa_mv88e6390()
456 FIELD("Link's Forced value", "%s", val & 0x0020 ? "Up" : "Down"); in dsa_mv88e6390()
457 FIELD("Force Link", "%u", !!(val & 0x0010)); in dsa_mv88e6390()
458 FIELD("Duplex's Forced value", "%s", val & 0x0008 ? "Full" : "Half"); in dsa_mv88e6390()
459 FIELD("Force Duplex", "%u", !!(val & 0x0004)); in dsa_mv88e6390()
461 (val & 0x0003) == 0x0000 ? "10 Mbps" : in dsa_mv88e6390()
462 (val & 0x0003) == 0x0001 ? "100 or 200 Mbps" : in dsa_mv88e6390()
463 (val & 0x0003) == 0x0002 ? "1000 Mbps" : in dsa_mv88e6390()
464 (val & 0x0003) == 0x0003 ? "10 Gb or 2500 Mbps" : "?"); in dsa_mv88e6390()
467 REG(reg, "Flow Control", val); in dsa_mv88e6390()
470 REG(reg, "Switch Identifier", val); in dsa_mv88e6390()
473 REG(reg, "Port Control", val); in dsa_mv88e6390()
475 (val & 0xc000) == 0x0000 ? "Disabled" : in dsa_mv88e6390()
476 (val & 0xc000) == 0x4000 ? "Drop On Lock" : in dsa_mv88e6390()
477 (val & 0xc000) == 0x8000 ? "Drop On Unlock" : in dsa_mv88e6390()
478 (val & 0xc000) == 0xc000 ? "Drop to CPU" : "?"); in dsa_mv88e6390()
480 (val & 0x3000) == 0x0000 ? "Unmodified" : in dsa_mv88e6390()
481 (val & 0x3000) == 0x1000 ? "Untagged" : in dsa_mv88e6390()
482 (val & 0x3000) == 0x2000 ? "Tagged" : in dsa_mv88e6390()
483 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6390()
484 FIELD("Ingress & Egress Header Mode", "%u", !!(val & 0x0800)); in dsa_mv88e6390()
485 FIELD("IGMP and MLD Snooping", "%u", !!(val & 0x0400)); in dsa_mv88e6390()
487 (val & 0x0300) == 0x0000 ? "Normal" : in dsa_mv88e6390()
488 (val & 0x0300) == 0x0100 ? "DSA" : in dsa_mv88e6390()
489 (val & 0x0300) == 0x0200 ? "Provider" : in dsa_mv88e6390()
490 (val & 0x0300) == 0x0300 ? "Ether Type DSA" : "?"); in dsa_mv88e6390()
491 FIELD("VLAN Tunnel", "%u", !!(val & 0x0080)); in dsa_mv88e6390()
492 FIELD("TagIfBoth", "%u", !!(val & 0x0040)); in dsa_mv88e6390()
494 (val & 0x0030) == 0x0000 ? "Defaults" : in dsa_mv88e6390()
495 (val & 0x0030) == 0x0010 ? "Tag Priority" : in dsa_mv88e6390()
496 (val & 0x0030) == 0x0020 ? "IP Priority" : in dsa_mv88e6390()
497 (val & 0x0030) == 0x0030 ? "Tag & IP Priority" : "?"); in dsa_mv88e6390()
499 (val & 0x000c) == 0x0000 ? "No unknown DA" : in dsa_mv88e6390()
500 (val & 0x000c) == 0x0004 ? "No unknown multicast DA" : in dsa_mv88e6390()
501 (val & 0x000c) == 0x0008 ? "No unknown unicast DA" : in dsa_mv88e6390()
502 (val & 0x000c) == 0x000c ? "Allow unknown DA" : "?"); in dsa_mv88e6390()
504 (val & 0x0003) == 0x0000 ? "Disabled" : in dsa_mv88e6390()
505 (val & 0x0003) == 0x0001 ? "Blocking/Listening" : in dsa_mv88e6390()
506 (val & 0x0003) == 0x0002 ? "Learning" : in dsa_mv88e6390()
507 (val & 0x0003) == 0x0003 ? "Forwarding" : "?"); in dsa_mv88e6390()
510 REG(reg, "Port Control 1", val); in dsa_mv88e6390()
511 FIELD("Message Port", "%u", !!(val & 0x8000)); in dsa_mv88e6390()
512 FIELD("LAG Port", "%u", !!(val & 0x4000)); in dsa_mv88e6390()
513 FIELD("VTU Page", "%u", !!(val & 0x2000)); in dsa_mv88e6390()
514 FIELD("LAG ID", "%u", (val & 0x0f00) >> 8); in dsa_mv88e6390()
515 FIELD("FID[11:4]", "0x%.3x", (val & 0x00ff) << 4); in dsa_mv88e6390()
518 REG(reg, "Port Base VLAN Map (Header)", val); in dsa_mv88e6390()
519 FIELD("FID[3:0]", "0x%.3x", (val & 0xf000) >> 12); in dsa_mv88e6390()
520 FIELD("Force Mapping", "%u", !!(val & 0x0800)); in dsa_mv88e6390()
521 FIELD_BITMAP("VLANTable", val & 0x007ff); in dsa_mv88e6390()
524 REG(reg, "Default VLAN ID & Priority", val); in dsa_mv88e6390()
525 FIELD("Default Priority", "0x%x", (val & 0xe000) >> 13); in dsa_mv88e6390()
526 FIELD("Force to use Default VID", "%u", !!(val & 0x1000)); in dsa_mv88e6390()
527 FIELD("Default VLAN Identifier", "%u", val & 0x0fff); in dsa_mv88e6390()
530 REG(reg, "Port Control 2", val); in dsa_mv88e6390()
531 FIELD("Force good FCS in the frame", "%u", !!(val & 0x8000)); in dsa_mv88e6390()
532 FIELD("Allow bad FCS", "%u", !!(val & 0x4000)); in dsa_mv88e6390()
534 (val & 0x3000) == 0x0000 ? "1522" : in dsa_mv88e6390()
535 (val & 0x3000) == 0x1000 ? "2048" : in dsa_mv88e6390()
536 (val & 0x3000) == 0x2000 ? "10240" : in dsa_mv88e6390()
537 (val & 0x3000) == 0x3000 ? "Reserved" : "?"); in dsa_mv88e6390()
539 (val & 0x0c00) == 0x0000 ? "Disabled" : in dsa_mv88e6390()
540 (val & 0x0c00) == 0x0400 ? "Fallback" : in dsa_mv88e6390()
541 (val & 0x0c00) == 0x0800 ? "Check" : in dsa_mv88e6390()
542 (val & 0x0c00) == 0x0c00 ? "Secure" : "?"); in dsa_mv88e6390()
543 FIELD("Discard Tagged Frames", "%u", !!(val & 0x0200)); in dsa_mv88e6390()
544 FIELD("Discard Untagged Frames", "%u", !!(val & 0x0100)); in dsa_mv88e6390()
545 FIELD("Map using DA hits", "%u", !!(val & 0x0080)); in dsa_mv88e6390()
546 FIELD("ARP Mirror enable", "%u", !!(val & 0x0040)); in dsa_mv88e6390()
547 FIELD("Egress Monitor Source Port", "%u", !!(val & 0x0020)); in dsa_mv88e6390()
548 FIELD("Ingress Monitor Source Port", "%u", !!(val & 0x0010)); in dsa_mv88e6390()
549 FIELD("Allow VID of Zero", "%u", !!(val & 0x0008)); in dsa_mv88e6390()
550 FIELD("Default Queue Priority", "0x%x", val & 0x0007); in dsa_mv88e6390()
553 REG(reg, "Egress Rate Control", val); in dsa_mv88e6390()
556 REG(reg, "Egress Rate Control 2", val); in dsa_mv88e6390()
559 REG(reg, "Port Association Vector", val); in dsa_mv88e6390()
562 REG(reg, "Port ATU Control", val); in dsa_mv88e6390()
565 REG(reg, "Override", val); in dsa_mv88e6390()
568 REG(reg, "Policy Control", val); in dsa_mv88e6390()
571 REG(reg, "Port Ether Type", val); in dsa_mv88e6390()
574 REG(reg, "LED Control", val); in dsa_mv88e6390()
577 REG(reg, "IP Priority Mapping Table", val); in dsa_mv88e6390()
580 REG(reg, "IEEE Priority Mapping Table", val); in dsa_mv88e6390()
583 REG(reg, "Port Control 3", val); in dsa_mv88e6390()
586 REG(reg, "Queue Counters", val); in dsa_mv88e6390()
589 REG(reg, "Queue Control", val); in dsa_mv88e6390()
592 REG(reg, "Cut Through Control", val); in dsa_mv88e6390()
595 REG(reg, "Debug Counters", val); in dsa_mv88e6390()
598 REG(reg, "Reserved", val); in dsa_mv88e6390()
604 void (*dump)(int reg, u16 val);