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_transmit.h (1704B)


      1 /** \file fabric_transmit.h
      2  *
      3  * Functions for handling Fabric transmit adapter.
      4  */
      5 /*
      6  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      7  * 
      8  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      9  */
     10 
     11 #ifndef __DNX_FABRIC_TRANSMIT_INCLUDED__
     12 /* { */
     13 #define __DNX_FABRIC_TRANSMIT_INCLUDED__
     14 
     15 #ifndef BCM_DNX_SUPPORT
     16 #error "This file is for use by DNX (Jr2) family only!"
     17 #endif
     18 
     19 /*************
     20  * INCLUDES  *
     21  */
     22 /* { */
     23 
     24 #include <shared/shrextend/shrextend_error.h>
     25 
     26 /* } */
     27 
     28 /*************
     29  * FUNCTIONS *
     30  */
     31 /* { */
     32 
     33 /**
     34  * \brief
     35  *   Initialize Fabric Transmit Adapter configurations,
     36  *   including DTQs, PDQs, etc.
     37  * \param [in] unit -
     38  *   The unit number.
     39  * \return
     40  *   See \ref shr_error_e
     41  * \remark
     42  *   * None.
     43  * \see
     44  *   * None.
     45  */
     46 shr_error_e dnx_fabric_transmit_init(
     47     int unit);
     48 
     49 /**
     50  * \brief
     51  *   Initialize DTQs contexts.
     52  * \param [in] unit -
     53  *   The unit number.
     54  * \return
     55  *   See \ref shr_error_e
     56  * \remark
     57  *   This function is called as part of the init sequence.
     58  * \see
     59  *   * None.
     60  */
     61 shr_error_e dnx_fabric_dtqs_contexts_init(
     62     int unit);
     63 
     64 /**
     65  * \brief
     66  *   Configure PDQs to DQCQs FC thresholds using the 'select' mechanism.
     67  *   Each FC sets to one of predefined FC thresholds.
     68  * \param [in] unit -
     69  *   The unit number.
     70  * \param [in] min_low_dqcq_priority -
     71  *   Maximal low priority in DQCQ
     72  * \return
     73  *   See \ref shr_error_e
     74  * \remark
     75  *   Can be used only when 8 priorities dqcq is supported.
     76  */
     77 shr_error_e dnx_fabric_transmit_dqcq_priority_update(
     78     int unit,
     79     int min_low_dqcq_priority);
     80 
     81 /* } */
     82 
     83 /* } __DNX_FABRIC_TRANSMIT_INCLUDED__*/
     84 #endif