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

qos.c (1582B)


      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  * All Rights Reserved.$
      7  *
      8  * QoS initializers
      9  */
     10 
     11 #include <sal/core/libc.h>
     12  
     13 #include <soc/drv.h>
     14 #include <soc/mem.h>
     15 #include <soc/l2u.h>
     16 #include <soc/util.h>
     17 #include <soc/debug.h>
     18 
     19 #include <bcm/port.h>
     20 #include <bcm/error.h> 
     21 #include <bcm/qos.h>
     22 
     23 /* 
     24  * Function:
     25  *      bcm_qos_map_t_init
     26  * Purpose:
     27  *      Initialize the QoS map struct
     28  * Parameters: 
     29  *      qos_map - Pointer to the struct to be init'ed
     30  */
     31 void
     32 bcm_qos_map_t_init(bcm_qos_map_t *qos_map)
     33 {
     34     if (qos_map != NULL) {
     35         sal_memset(qos_map, 0, sizeof(*qos_map));
     36     }
     37     return;
     38 }
     39 
     40 /* 
     41  * Function:
     42  *      bcm_qos_ingress_model_t_init
     43  * Purpose:
     44  *      Initialize the QoS ingress model struct
     45  * Parameters: 
     46  *      qos_ingress_model - Pointer to the struct to be init'ed
     47  */
     48 void
     49 bcm_qos_ingress_model_t_init(bcm_qos_ingress_model_t *qos_ingress_model)
     50 {
     51     if (qos_ingress_model != NULL) {
     52         sal_memset(qos_ingress_model, 0, sizeof(*qos_ingress_model));
     53     }
     54     return;
     55 }
     56 
     57 /* 
     58  * Function:
     59  *      bcm_qos_egress_model_t_init
     60  * Purpose:
     61  *      Initialize the QoS egress model struct
     62  * Parameters: 
     63  *      qos_egress_model - Pointer to the struct to be init'ed
     64  */
     65 void
     66 bcm_qos_egress_model_t_init(bcm_qos_egress_model_t *qos_egress_model)
     67 {
     68     if (qos_egress_model != NULL) {
     69         sal_memset(qos_egress_model, 0, sizeof(*qos_egress_model));
     70     }
     71     return;
     72 }
     73