openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

sum.c (834B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * SUM - Switch Utilization Monitor Embedded Application APP interface
      8  * Purpose: API to Initialize SUM embedded app Structures.
      9  */
     10 #include <shared/bslenum.h>
     11 #include <shared/bsl.h>
     12 
     13 #include <soc/defs.h>
     14 #include <soc/drv.h>
     15 
     16 #include <bcm/error.h>
     17 #include <bcm/sum.h>
     18 
     19 /* Initialize a sum config information structure. */
     20 void bcm_sum_config_t_init(bcm_sum_config_t *config_info)
     21 {
     22     sal_memset(config_info, 0, sizeof(bcm_sum_config_t));
     23 }
     24 
     25 /* Initialize a sum stats information structure. */
     26 void bcm_sum_stat_info_t_init(bcm_sum_stat_info_t *stat_info)
     27 {
     28     sal_memset(stat_info, 0, sizeof(bcm_sum_stat_info_t));
     29 }