162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ 262306a36Sopenharmony_ci/* Microsemi Ocelot Switch driver 362306a36Sopenharmony_ci * Copyright (c) 2019 Microsemi Corporation 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _MSCC_OCELOT_VCAP_H_ 762306a36Sopenharmony_ci#define _MSCC_OCELOT_VCAP_H_ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include "ocelot.h" 1062306a36Sopenharmony_ci#include <soc/mscc/ocelot_vcap.h> 1162306a36Sopenharmony_ci#include <net/flow_offload.h> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define OCELOT_POLICER_DISCARD 0x17f 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciint ocelot_vcap_filter_stats_update(struct ocelot *ocelot, 1662306a36Sopenharmony_ci struct ocelot_vcap_filter *rule); 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciint ocelot_vcap_init(struct ocelot *ocelot); 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciint ocelot_setup_tc_cls_flower(struct ocelot_port_private *priv, 2162306a36Sopenharmony_ci struct flow_cls_offload *f, 2262306a36Sopenharmony_ci bool ingress); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#endif /* _MSCC_OCELOT_VCAP_H_ */ 25