Skip to content

Commit d67cc29

Browse files
IoanaCiorneigregkh
authored andcommitted
bus: fsl-mc: list more commands as accepted through the ioctl
Add some new MC firmware commands that can be received through the userspace ioctl interface - *get_max_frame_length and *_get_counter. Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20210208170949.3070898-4-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e70ba1b commit d67cc29

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

drivers/bus/fsl-mc/fsl-mc-uapi.c

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ enum fsl_mc_cmd_index {
6060
DPNI_GET_PRIM_MAC,
6161
DPNI_GET_STATISTICS,
6262
DPNI_GET_LINK_STATE,
63+
DPNI_GET_MAX_FRAME_LENGTH,
64+
DPSW_GET_TAILDROP,
65+
DPSW_SET_TAILDROP,
66+
DPSW_IF_GET_COUNTER,
67+
DPSW_IF_GET_MAX_FRAME_LENGTH,
68+
DPDMUX_GET_COUNTER,
69+
DPDMUX_IF_GET_MAX_FRAME_LENGTH,
6370
GET_ATTR,
6471
GET_IRQ_MASK,
6572
GET_IRQ_STATUS,
@@ -261,6 +268,49 @@ static struct fsl_mc_cmd_desc fsl_mc_accepted_cmds[] = {
261268
.token = true,
262269
.size = 8,
263270
},
271+
[DPNI_GET_MAX_FRAME_LENGTH] = {
272+
.cmdid_value = 0x2170,
273+
.cmdid_mask = 0xFFF0,
274+
.token = true,
275+
.size = 8,
276+
},
277+
[DPSW_GET_TAILDROP] = {
278+
.cmdid_value = 0x0A80,
279+
.cmdid_mask = 0xFFF0,
280+
.token = true,
281+
.size = 14,
282+
},
283+
[DPSW_SET_TAILDROP] = {
284+
.cmdid_value = 0x0A90,
285+
.cmdid_mask = 0xFFF0,
286+
.token = true,
287+
.size = 24,
288+
.flags = FSL_MC_CAP_NET_ADMIN_NEEDED,
289+
},
290+
[DPSW_IF_GET_COUNTER] = {
291+
.cmdid_value = 0x0340,
292+
.cmdid_mask = 0xFFF0,
293+
.token = true,
294+
.size = 11,
295+
},
296+
[DPSW_IF_GET_MAX_FRAME_LENGTH] = {
297+
.cmdid_value = 0x0450,
298+
.cmdid_mask = 0xFFF0,
299+
.token = true,
300+
.size = 10,
301+
},
302+
[DPDMUX_GET_COUNTER] = {
303+
.cmdid_value = 0x0b20,
304+
.cmdid_mask = 0xFFF0,
305+
.token = true,
306+
.size = 11,
307+
},
308+
[DPDMUX_IF_GET_MAX_FRAME_LENGTH] = {
309+
.cmdid_value = 0x0a20,
310+
.cmdid_mask = 0xFFF0,
311+
.token = true,
312+
.size = 10,
313+
},
264314
[GET_ATTR] = {
265315
.cmdid_value = 0x0040,
266316
.cmdid_mask = 0xFFF0,

0 commit comments

Comments
 (0)