diff options
| author | MD Danish Anwar <danishanwar@ti.com> | 2024-04-04 12:38:03 +0530 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-04-12 13:54:43 -0600 |
| commit | 8ace0846725eed50c896900f889cbdb2dbaa6fe7 (patch) | |
| tree | 3b9444d8d669961a86ad2b3ba34c21ac411413d8 /drivers/net/ti/icssg_config.h | |
| parent | 737a668413b81875a60551b44ea5fe28132a73b6 (diff) | |
net: ti: icssg: Add support sending FDB command to update rx_flow_id
ICSSG firmware supports FDB commands. Add support to send FDB commands
from driver. Once rx_flow_id is obtained from dma, let firmware know that
we are using this rx_flow_id by sending a FDB command.
Reviewed-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Diffstat (limited to 'drivers/net/ti/icssg_config.h')
| -rw-r--r-- | drivers/net/ti/icssg_config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/ti/icssg_config.h b/drivers/net/ti/icssg_config.h index e2859c7b511..d388484c035 100644 --- a/drivers/net/ti/icssg_config.h +++ b/drivers/net/ti/icssg_config.h @@ -80,6 +80,7 @@ struct icssg_rxq_ctx { #define ICSSG_FW_MGMT_FDB_CMD_TYPE 0x03 #define ICSSG_FW_MGMT_CMD_TYPE 0x04 #define ICSSG_FW_MGMT_PKT 0x80000000 +#define ICSSG_FW_MGMT_FDB_CMD_TYPE_RX_FLOW 0x05 struct icssg_r30_cmd { u32 cmd[4]; @@ -156,6 +157,23 @@ struct icssg_setclock_desc { u32 CMP0_new; } __packed; +struct mgmt_cmd { + u8 param; + u8 seqnum; + u8 type; + u8 header; + u32 cmd_args[3]; +} __packed; + +struct mgmt_cmd_rsp { + u32 reserved; + u8 status; + u8 seqnum; + u8 type; + u8 header; + u32 cmd_args[3]; +} __packed; + #define ICSSG_CMD_POP_SLICE0 56 #define ICSSG_CMD_POP_SLICE1 60 |
