oob.c (2194B)
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 * File: oob.c 8 * Purpose: Manages common OOB functions 9 */ 10 11 #include <sal/core/libc.h> 12 #include <sal/core/libc.h> 13 14 #include <soc/drv.h> 15 #include <soc/debug.h> 16 17 #include <bcm/oob.h> 18 19 /* 20 * Function: 21 * bcm_oob_fc_tx_config_t_init 22 * Purpose: 23 * Initialize the OOB FC Tx Global Config Structure 24 * Parameters: 25 * config - OOB FC Tx Global Config Structure to be init'ed 26 */ 27 28 void 29 bcm_oob_fc_tx_config_t_init(bcm_oob_fc_tx_config_t *config) 30 { 31 if (config != NULL) { 32 sal_memset(config, 0, sizeof(*config)); 33 } 34 } 35 36 /* 37 * Function: 38 * bcm_oob_fc_tx_info_t_init 39 * Purpose: 40 * Initialize the OOB FC Tx Global Info Structure 41 * Parameters: 42 * info - OOB FC Tx Global Info Structure to be init'ed 43 */ 44 45 void 46 bcm_oob_fc_tx_info_t_init(bcm_oob_fc_tx_info_t *info) 47 { 48 if (info != NULL) { 49 sal_memset(info, 0, sizeof(*info)); 50 } 51 } 52 53 /* 54 * Function: 55 * bcm_oob_fc_rx_config_t_init 56 * Purpose: 57 * Initialize the OOB FC Rx Global Config Structure 58 * Parameters: 59 * config - OOB FC Rx Global Config Structure to be init'ed 60 */ 61 62 void 63 bcm_oob_fc_rx_config_t_init(bcm_oob_fc_rx_config_t *config) 64 { 65 if (config != NULL) { 66 sal_memset(config, 0, sizeof(*config)); 67 } 68 } 69 70 /* 71 * Function: 72 * bcm_oob_stats_config_t_init 73 * Purpose: 74 * Initialize the OOB Stats Global Config Structure 75 * Parameters: 76 * config - OOB Stats Global Config Structure to be init'ed 77 */ 78 79 void 80 bcm_oob_stats_config_t_init(bcm_oob_stats_config_t *config) 81 { 82 if (config != NULL) { 83 sal_memset(config, 0, sizeof(*config)); 84 } 85 } 86 87 /* 88 * Function: 89 * bcm_oob_fc_tx_queue_config_t_init 90 * Purpose: 91 * Initialize the OOB Queue config structure. 92 * Parameters: 93 * config - OOB Stats Queue Config Structure to be init'ed 94 */ 95 96 void bcm_oob_fc_tx_queue_config_t_init( 97 bcm_oob_fc_tx_queue_config_t *config) 98 { 99 if (config != NULL) { 100 sal_memset(config, 0, sizeof(bcm_oob_fc_tx_queue_config_t)); 101 } 102 } 103