fmq.h (1058B)
1 /* 2 * \file bcm_int/dnx/cosq/ingress/fmq.h 3 * 4 * 5 * Created on: Nov 8, 2018 6 * Author: si888124 7 */ 8 /* 9 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 10 * 11 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 12 */ 13 #ifndef _DNX_FMQ_INCLUDED__ 14 #define _DNX_FMQ_INCLUDED__ 15 16 #ifndef BCM_DNX_SUPPORT 17 #error "This file is for use by DNX family only!" 18 #endif 19 20 #include <shared/shrextend/shrextend_error.h> 21 22 /** 23 * \brief - Set FMQ scheduler mode (Enhanced/ Basic) 24 * 25 * \param [in] unit - Unit-ID 26 * \param [in] mode - FMQ scheduler mode 27 * \return 28 * See shr_error_e 29 * \see 30 * * None 31 */ 32 shr_error_e dnx_cosq_fmq_scheduler_mode_set( 33 int unit, 34 int mode); 35 36 /** 37 * \brief - Get FMQ scheduler mode (Enhanced/ Basic) 38 * 39 * \param [in] unit - Unit-ID 40 * \param [out] mode - FMQ scheduler mode 41 * \return 42 * See shr_error_e 43 * \see 44 * * None 45 */ 46 shr_error_e dnx_cosq_fmq_scheduler_mode_get( 47 int unit, 48 int *mode); 49 50 #endif /* _DNX_FMQ_INCLUDED__ */