1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /* Microsemi Ocelot Switch driver
3 *
4 * Copyright (c) 2019 Microsemi Corporation
5 */
6
7 #ifndef _MSCC_OCELOT_POLICE_H_
8 #define _MSCC_OCELOT_POLICE_H_
9
10 #include "ocelot.h"
11
12 struct ocelot_policer {
13 u32 rate; /* kilobit per second */
14 u32 burst; /* bytes */
15 };
16
17 int ocelot_port_policer_add(struct ocelot_port *port,
18 struct ocelot_policer *pol);
19
20 int ocelot_port_policer_del(struct ocelot_port *port);
21
22 #endif /* _MSCC_OCELOT_POLICE_H_ */