blob: 3412f2ef8e5601378c714d8c1670b4428106aa10 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001/******************************************************************************
2 *
3 * <:copyright-BRCM:2016:DUAL/GPL:standard
4 *
5 * Copyright (c) 2016 Broadcom
6 * All Rights Reserved
7 *
8 * Unless you and Broadcom execute a separate written software license
9 * agreement governing use of this software, this software is licensed
10 * to you under the terms of the GNU General Public License version 2
11 * (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php,
12 * with the following added to such license:
13 *
14 * As a special exception, the copyright holders of this software give
15 * you permission to link this software with independent modules, and
16 * to copy and distribute the resulting executable under terms of your
17 * choice, provided that you also meet, for each linked independent
18 * module, the terms and conditions of the license of that module.
19 * An independent module is a module which is not derived from this
20 * software. The special exception does not apply to any modifications
21 * of the software.
22 *
23 * Not withstanding the above, under no circumstances may you combine
24 * this software in any way with any other Broadcom software provided
25 * under a license other than the GPL, without Broadcom's express prior
26 * written consent.
27 *
28 * :>
29 *
30 *****************************************************************************/
31
32/**
33 * @file bal_switch_tm_sched.c
34 * @brief BAL Switch util functions that handle tm requests
35 * @addtogroup sw_util
36 */
37
38 /*@{*/
39
40#include <bal_common.h>
41#include <bcm_dev_log.h>
42#include <bal_msg.h>
43#include "bcmos_errno.h"
44#include "bal_switch_util.h"
45
46#include "tm_sched_fsm.h"
47
48
49
50/* sw_util_tm_sched_validate() is called by the Core to validate the attributes of the tm_sched object
51 * p_msg a pointer to the object bcmbal_tm_sched_cfg
52 */
53bcmos_errno sw_util_tm_sched_validate(void *p_msg)
54{
55 return BCM_ERR_OK;
56}
57
58/* sw_util_tm_sched_set() is called by the Core to create an instance of TM scheduler in the switch
59 * p_tm_sched_inst a pointer to the data structure tm_sched_inst that used in the Core to manage
60 * the received tm_sched configuration request from the BAL client
61 *
62 * Required attributes
63 * Key - key to unique identify the TM sched
64 * Owner types - Interface, Subscriber_Terminal
65** Owner id - id of interface or subscriber terminal
66 * Schedule types - SP, WFQ, SP_WFQ
67** Num_of_priority - 1 - 16
68* TM objects in the schedule_level this TM sched can support */
69bcmos_errno sw_util_tm_sched_set(tm_sched_inst *p_tm_sched_inst)
70{
71 return BCM_ERR_OK;
72}
73
74/* sw_util_tm_sched_clear() is called by the Core to remove an instance of TM scheduler in the switch
75* p_tm_sched_inst a pointer to the data structure tm_sched_inst that used in the Core to manage
76* the received tm_sched configuration request from the BAL client
77*
78* Required attributes
79* Key - key to unique identify the TM sched
80*/
81bcmos_errno sw_util_tm_sched_clear(tm_sched_inst *p_tm_sched_inst)
82{
83 return BCM_ERR_OK;
84}
85/*@}*/
86
87
88