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

range.c (945B)


      1 /* 
      2  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3  * 
      4  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5  */
      6 
      7 #include <soc/types.h>
      8 #include <soc/ll.h>
      9 
     10 #include <bcm/range.h>
     11 
     12 void 
     13 bcm_range_config_t_init (
     14         bcm_range_config_t *range_config)
     15 {
     16     if(range_config != NULL) {
     17         range_config->rid       = -1;
     18         range_config->rtype     = bcmRangeTypeCount;
     19         range_config->min       = 0;
     20         range_config->max       = 0;
     21         range_config->udf_id    = -1;
     22         range_config->width     = 0;
     23         range_config->offset    = 0;
     24         SOC_PBMP_CLEAR(range_config->ports);
     25     }
     26     return;
     27 }
     28 
     29 void
     30 bcm_range_group_config_t_init (
     31         bcm_range_group_config_t *range_grp_config)
     32 {
     33     if(range_grp_config != NULL) {
     34         sal_memset(range_grp_config, 0, sizeof(bcm_range_group_config_t));
     35     }
     36     return;
     37 }