diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2019-05-31 10:16:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-02 23:49:49 +0300 |
commit | b596229448dd2a263cdc4906e60b1b2249777ee4 (patch) | |
tree | 55c29da892d8f46d34f7388aa74725bb6da23fcd /drivers/net/ethernet/mscc/ocelot.h | |
parent | 6345266a9989287336ff6a2843cd3b033cda85a1 (diff) | |
download | linux-b596229448dd2a263cdc4906e60b1b2249777ee4.tar.xz |
net: mscc: ocelot: Add support for tcam
Add ACL support using the TCAM. Using ACL it is possible to create rules
in hardware to filter/redirect frames.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot.h')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot.h b/drivers/net/ethernet/mscc/ocelot.h index 04d87a7ecaba..f7eeb4806897 100644 --- a/drivers/net/ethernet/mscc/ocelot.h +++ b/drivers/net/ethernet/mscc/ocelot.h @@ -69,6 +69,7 @@ enum ocelot_target { QSYS, REW, SYS, + S2, HSIO, TARGET_MAX, }; @@ -335,6 +336,13 @@ enum ocelot_reg { SYS_CM_DATA_RD, SYS_CM_OP, SYS_CM_DATA, + S2_CORE_UPDATE_CTRL = S2 << TARGET_OFFSET, + S2_CORE_MV_CFG, + S2_CACHE_ENTRY_DAT, + S2_CACHE_MASK_DAT, + S2_CACHE_ACTION_DAT, + S2_CACHE_CNT_DAT, + S2_CACHE_TG_DAT, }; enum ocelot_regfield { |