1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /* Microsemi Ocelot Switch driver
4 * Copyright (c) 2019 Microsemi Corporation
7 #ifndef _MSCC_OCELOT_POLICE_H_
8 #define _MSCC_OCELOT_POLICE_H_
12 struct ocelot_policer
{
13 u32 rate
; /* kilobit per second */
14 u32 burst
; /* bytes */
17 int ocelot_port_policer_add(struct ocelot
*ocelot
, int port
,
18 struct ocelot_policer
*pol
);
20 int ocelot_port_policer_del(struct ocelot
*ocelot
, int port
);
22 #endif /* _MSCC_OCELOT_POLICE_H_ */