OpenNSL API Guide and Reference Manual
stg.h
Go to the documentation of this file.
1 
4 /*****************************************************************************
5  *
6  * (C) Copyright Broadcom Corporation 2013-2016
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  *
11  * You may obtain a copy of the License at
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  ***************************************************************************/
24 #ifndef __OPENNSL_STG_H__
25 #define __OPENNSL_STG_H__
26 
27 #include <shared/port.h>
28 #include <opennsl/types.h>
29 
31 typedef enum opennsl_stg_stp_e {
39 /* __doxy_func_body_end__ */
40 
41 #ifndef OPENNSL_HIDE_DISPATCHABLE
42 
43 /***************************************************************************/
57 extern int opennsl_stg_init(
58  int unit) LIB_DLL_EXPORTED ;
59 
60 /***************************************************************************/
74 extern int opennsl_stg_clear(
75  int unit) LIB_DLL_EXPORTED ;
76 
77 /***************************************************************************/
91 extern int opennsl_stg_default_set(
92  int unit,
94 
95 /***************************************************************************/
106 extern int opennsl_stg_default_get(
107  int unit,
108  opennsl_stg_t *stg_ptr) LIB_DLL_EXPORTED ;
109 
110 /***************************************************************************/
130 extern int opennsl_stg_vlan_add(
131  int unit,
132  opennsl_stg_t stg,
134 
135 /***************************************************************************/
151 extern int opennsl_stg_vlan_remove(
152  int unit,
153  opennsl_stg_t stg,
155 
156 /***************************************************************************/
171 extern int opennsl_stg_vlan_remove_all(
172  int unit,
174 
175 /***************************************************************************/
197 extern int opennsl_stg_vlan_list(
198  int unit,
199  opennsl_stg_t stg,
200  opennsl_vlan_t **list,
201  int *count) LIB_DLL_EXPORTED ;
202 
203 /***************************************************************************/
218  int unit,
219  opennsl_vlan_t *list,
220  int count) LIB_DLL_EXPORTED ;
221 
222 /***************************************************************************/
237 extern int opennsl_stg_create(
238  int unit,
239  opennsl_stg_t *stg_ptr) LIB_DLL_EXPORTED ;
240 
241 /***************************************************************************/
257 extern int opennsl_stg_destroy(
258  int unit,
260 
261 /***************************************************************************/
278 extern int opennsl_stg_list(
279  int unit,
280  opennsl_stg_t **list,
281  int *count) LIB_DLL_EXPORTED ;
282 
283 /***************************************************************************/
298 extern int opennsl_stg_list_destroy(
299  int unit,
300  opennsl_stg_t *list,
301  int count) LIB_DLL_EXPORTED ;
302 
303 /***************************************************************************/
325 extern int opennsl_stg_stp_set(
326  int unit,
327  opennsl_stg_t stg,
329  int stp_state) LIB_DLL_EXPORTED ;
330 
331 /***************************************************************************/
351 extern int opennsl_stg_stp_get(
352  int unit,
353  opennsl_stg_t stg,
355  int *stp_state) LIB_DLL_EXPORTED ;
356 
357 /***************************************************************************/
371 extern int opennsl_stg_count_get(
372  int unit,
373  int *max_stg) LIB_DLL_EXPORTED ;
374 
375 #endif /* OPENNSL_HIDE_DISPATCHABLE */
376 
377 #include <opennsl/stgX.h>
378 #endif /* __OPENNSL_STG_H__ */
379