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

fabric_control_cells.h (1796B)


      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-2020 Broadcom Inc. All rights reserved.
      5  */
      6 /*
      7  * ! \file bcm_int/dnx/fabric/fabric_control_cells.h
      8  * Reserved.$ 
      9  */
     10 
     11 #ifndef _DNX_FABRIC_CONTROL_CELLS_H_INCLUDED_
     12 #define _DNX_FABRIC_CONTROL_CELLS_H_INCLUDED_
     13 
     14 #ifndef BCM_DNX_SUPPORT
     15 #error "This file is for use by DNX (JR2) family only!"
     16 #endif
     17 
     18 #include <shared/shrextend/shrextend_error.h>
     19 
     20 /*
     21  * Typedefs:
     22  * {
     23  */
     24 /*
     25  * } 
     26  */
     27 
     28 /*
     29  * Functions:
     30  * {
     31  */
     32 
     33 /**
     34  * \brief
     35  *   Get whether the receiving and transmitting control cells is enabled
     36  *   in the device.
     37  * \param [in] unit -
     38  *   The unit number.
     39  * \param [out] enable -
     40  *   1 - enabled
     41  *   0 - disabled
     42  * \return
     43  *   See \ref shr_error_e
     44  * \remark
     45  *   * None.
     46  * \see
     47  *   * None.
     48  */
     49 shr_error_e dnx_fabric_ctrl_cells_enable_get(
     50     int unit,
     51     int *enable);
     52 
     53 /**
     54  * \brief
     55  *   Enable/Disable the device from receiving and transmitting control cells.
     56  * \param [in] unit -
     57  *   The unit number.
     58  * \param [in] enable -
     59  *   1 - enable
     60  *   0 - disable
     61  * \param [in] is_soft_reset -
     62  *   Is this function is called as part of soft reset.
     63  * \return
     64  *   See \ref shr_error_e
     65  * \remark
     66  *   * None.
     67  * \see
     68  *   * None.
     69  */
     70 shr_error_e dnx_fabric_ctrl_cells_enable_set(
     71     int unit,
     72     int enable,
     73     int is_soft_reset);
     74 
     75 /**
     76  * \brief
     77  *   Decide whether the device is standalone or not according to the
     78  *   received control cells.
     79  * \param [in] unit -
     80  *   The unit number.
     81  * \return
     82  *   See \ref shr_error_e
     83  * \remark
     84  *   * None.
     85  * \see
     86  *   * None.
     87  */
     88 shr_error_e dnx_fabric_ctrl_cells_standalone_state_modify(
     89     int unit);
     90 
     91 /*
     92  * } 
     93  */
     94 
     95 #endif /*_DNX_FABRIC_CONTROL_CELLS_H_INCLUDED_*/