policer.h (1375B)
1 /* 2 * 3 * 4 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 * 6 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 7 * 8 * DO NOT EDIT THIS FILE! 9 * This file is auto-generated. 10 * Edits to this file will be lost when it is regenerated. 11 */ 12 13 #ifndef __BCMX_POLICER_H__ 14 #define __BCMX_POLICER_H__ 15 16 #include <bcm/types.h> 17 #include <bcmx/bcmx.h> 18 #include <bcm/policer.h> 19 20 /* Policer Config Structure */ 21 typedef bcm_policer_config_t bcmx_policer_config_t; 22 23 /* Initialize a policer config structure. */ 24 extern void bcmx_policer_config_t_init( 25 bcmx_policer_config_t *pol_cfg); 26 27 /* Initialize policer module. */ 28 extern int bcmx_policer_init(void); 29 30 /* Create a policer entry. */ 31 extern int bcmx_policer_create( 32 bcmx_policer_config_t *pol_cfg, 33 bcm_policer_t *policer_id); 34 35 /* Destroy a policer entry. */ 36 extern int bcmx_policer_destroy( 37 bcm_policer_t policer_id); 38 39 /* Destroy all policer entries. */ 40 extern int bcmx_policer_destroy_all(void); 41 42 /* Set the config settings for a policer entry. */ 43 extern int bcmx_policer_set( 44 bcm_policer_t policer_id, 45 bcmx_policer_config_t *pol_cfg); 46 47 /* Get the config settings for a policer entry. */ 48 extern int bcmx_policer_get( 49 bcm_policer_t policer_id, 50 bcmx_policer_config_t *pol_cfg); 51 52 #endif /* __BCMX_POLICER_H__ */