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

flexstate.h (3363B)


      1 /*
      2  * DO NOT EDIT THIS FILE!
      3  * This file is auto-generated.
      4  * Edits to this file will be lost when it is regenerated.
      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 BCMINT_LTSW_MBCM_FLEXSTATE_H
     12 #define BCMINT_LTSW_MBCM_FLEXSTATE_H
     13 
     14 #include <bcm_int/ltsw/flexstate_int.h>
     15 
     16 /*!
     17  * \brief Get flex state source information.
     18  *
     19  * \param [in] unit Unit Number.
     20  * \param [in] source Flex source.
     21  * \param [out] source_info Flex counter source info.
     22  *
     23  * \retval SHR_E_NONE No errors.
     24  * \retval !SHR_E_NONE Failure.
     25  */
     26 typedef int (*flexstate_source_info_get_f)(
     27     int unit,
     28     int source,
     29     bcmint_flexstate_source_info_t **source_info);
     30 
     31 /*!
     32  * \brief Get flex state object information.
     33  *
     34  * \param [in] unit Unit Number.
     35  * \param [in] object Flex object.
     36  * \param [out] object_info Flex counter object info.
     37  *
     38  * \retval SHR_E_NONE No errors.
     39  * \retval !SHR_E_NONE Failure.
     40  */
     41 typedef int (*flexstate_object_info_get_f)(
     42     int unit,
     43     int object,
     44     bcmint_flexstate_object_info_t **object_info);
     45 
     46 /*!
     47  * \brief Get static flex state stage information.
     48  *
     49  * \param [in] unit Unit Number.
     50  * \param [out] stage_info Flex state stage info.
     51  *
     52  * \retval SHR_E_NONE No errors.
     53  * \retval !SHR_E_NONE Failure.
     54  */
     55 typedef int (*flexstate_stage_info_get_f)(
     56     int unit,
     57     bcmint_flexstate_stage_info_t **stage_info);
     58 
     59 /*!
     60  * \brief Flexstate driver structure.
     61  */
     62 typedef struct mbcm_ltsw_flexstate_drv_s {
     63 
     64     /*! Get flex state source information. */
     65     flexstate_source_info_get_f flexstate_source_info_get;
     66 
     67     /*! Get flex state object information. */
     68     flexstate_object_info_get_f flexstate_object_info_get;
     69 
     70     /*! Get static flex state stage information. */
     71     flexstate_stage_info_get_f flexstate_stage_info_get;
     72 
     73 } mbcm_ltsw_flexstate_drv_t;
     74 
     75 /*!
     76  * \brief Set the FLEXSTATE driver of the device.
     77  *
     78  * \param [in] unit Unit Number.
     79  * \param [in] drv Flexstate driver to set.
     80  *
     81  * \retval SHR_E_NONE No errors.
     82  * \retval !SHR_E_NONE Failure.
     83  */
     84 extern int
     85 mbcm_ltsw_flexstate_drv_set(
     86     int unit,
     87     mbcm_ltsw_flexstate_drv_t *drv);
     88 
     89 /*!
     90  * \brief Get flex state source information.
     91  *
     92  * \param [in] unit Unit Number.
     93  * \param [in] source Flex source.
     94  * \param [out] source_info Flex counter source info.
     95  *
     96  * \retval SHR_E_NONE No errors.
     97  * \retval !SHR_E_NONE Failure.
     98  */
     99 extern int
    100 mbcm_ltsw_flexstate_source_info_get(
    101     int unit,
    102     int source,
    103     bcmint_flexstate_source_info_t **source_info);
    104 
    105 /*!
    106  * \brief Get flex state object information.
    107  *
    108  * \param [in] unit Unit Number.
    109  * \param [in] object Flex object.
    110  * \param [out] object_info Flex counter object info.
    111  *
    112  * \retval SHR_E_NONE No errors.
    113  * \retval !SHR_E_NONE Failure.
    114  */
    115 extern int
    116 mbcm_ltsw_flexstate_object_info_get(
    117     int unit,
    118     int object,
    119     bcmint_flexstate_object_info_t **object_info);
    120 
    121 /*!
    122  * \brief Get static flex state stage information.
    123  *
    124  * \param [in] unit Unit Number.
    125  * \param [out] stage_info Flex state stage info.
    126  *
    127  * \retval SHR_E_NONE No errors.
    128  * \retval !SHR_E_NONE Failure.
    129  */
    130 extern int
    131 mbcm_ltsw_flexstate_stage_info_get(
    132     int unit,
    133     bcmint_flexstate_stage_info_t **stage_info);
    134 
    135 #endif /* BCMINT_LTSW_MBCM_FLEXSTATE_H */