feature.h (1328B)
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_FEATURE_H 12 #define BCMINT_LTSW_MBCM_FEATURE_H 13 14 /*! 15 * \brief Initialize features to be supported. 16 * 17 * \param [in] unit Unit Number. 18 * 19 * \retval SHR_E_NONE No errors. 20 * \retval !SHR_E_NONE Failure. 21 */ 22 typedef int (*feature_init_f)(int unit); 23 24 /*! 25 * \brief Feature driver structure. 26 */ 27 typedef struct mbcm_ltsw_feature_drv_s { 28 29 /*! Initialize features to be supported. */ 30 feature_init_f feature_init; 31 32 } mbcm_ltsw_feature_drv_t; 33 34 /*! 35 * \brief Set the FEATURE driver of the device. 36 * 37 * \param [in] unit Unit Number. 38 * \param [in] drv Feature driver to set. 39 * 40 * \retval SHR_E_NONE No errors. 41 * \retval !SHR_E_NONE Failure. 42 */ 43 extern int 44 mbcm_ltsw_feature_drv_set( 45 int unit, 46 mbcm_ltsw_feature_drv_t *drv); 47 48 /*! 49 * \brief Initialize features to be supported. 50 * 51 * \param [in] unit Unit Number. 52 * 53 * \retval SHR_E_NONE No errors. 54 * \retval !SHR_E_NONE Failure. 55 */ 56 extern int 57 mbcm_ltsw_feature_init(int unit); 58 59 #endif /* BCMINT_LTSW_MBCM_FEATURE_H */