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

ifa.h (1816B)


      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 BCMI_LTSW_IFA_H
     12 #define BCMI_LTSW_IFA_H
     13 
     14 #include <bcm_int/ltsw/ifa.h>
     15 
     16 #include <sal/sal_types.h>
     17 
     18 /*!
     19  * \brief Application switch control type of IFA for a specific device.
     20  */
     21 typedef enum bcmi_ltsw_ifa_control_s {
     22 
     23     /*! IFA protocol value. */
     24     bcmiIfaControlIfaProtocol = 0,
     25 
     26     /*! IFA protocol value. */
     27     bcmiIfaControlIntProbeMarker1 = 1,
     28 
     29     /*! IFA protocol value. */
     30     bcmiIfaControlIntProbeMarker2 = 2,
     31 
     32     /*! IFA control type count. */
     33     bcmiIfaControlCount = 3
     34 
     35 } bcmi_ltsw_ifa_control_t;
     36 
     37 #define BCMI_LTSW_IFA_CONTROL_STR \
     38 { \
     39     "IfaProtocol" \
     40     "IntProbeMarker1" \
     41     "IntProbeMarker2" \
     42 }
     43 
     44 /*!
     45  * \brief Specify IFA switch control behaviors.
     46  *
     47  * \param [in] unit Unit Number.
     48  * \param [in] control The desired configuration parameter to modify.
     49  * \param [in] value The value with which to set the parameter.
     50  *
     51  * \retval SHR_E_NONE Success.
     52  * \retval !SHR_E_NONE Failure.
     53  */
     54 extern int
     55 bcmi_ltsw_ifa_control_set(
     56     int unit,
     57     bcmi_ltsw_ifa_control_t control,
     58     uint32_t value);
     59 
     60 /*!
     61  * \brief Retrieve IFA switch control behaviors.
     62  *
     63  * \param [in] unit Unit Number.
     64  * \param [in] control The desired configuration parameter to retrieve.
     65  * \param [out] value Pointer to where the retrieved value will be written.
     66  *
     67  * \retval SHR_E_NONE Success.
     68  * \retval !SHR_E_NONE Failure.
     69  */
     70 extern int
     71 bcmi_ltsw_ifa_control_get(
     72     int unit,
     73     bcmi_ltsw_ifa_control_t control,
     74     uint32_t *value);
     75 
     76 #endif /* BCMI_LTSW_IFA_H */