OpenNSL API Guide and Reference Manual
link.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_LINK_H__
25 #define __OPENNSL_LINK_H__
26 
27 #include <opennsl/types.h>
28 #include <opennsl/port.h>
29 
31  int unit,
33  opennsl_port_info_t *info);
34 
35 #ifndef OPENNSL_HIDE_DISPATCHABLE
36 
37 /***************************************************************************/
51 extern int opennsl_linkscan_detach(
52  int unit) LIB_DLL_EXPORTED ;
53 
54 #endif /* OPENNSL_HIDE_DISPATCHABLE */
55 
56 #ifndef OPENNSL_HIDE_DISPATCHABLE
57 
58 /***************************************************************************/
79  int unit,
80  int us) LIB_DLL_EXPORTED ;
81 
82 /***************************************************************************/
102 extern int opennsl_linkscan_enable_get(
103  int unit,
104  int *us) LIB_DLL_EXPORTED ;
105 
106 #endif /* OPENNSL_HIDE_DISPATCHABLE */
107 
115 /* __doxy_func_body_end__ */
116 
117 #ifndef OPENNSL_HIDE_DISPATCHABLE
118 
119 /***************************************************************************/
147 extern int opennsl_linkscan_mode_set(
148  int unit,
150  int mode) LIB_DLL_EXPORTED ;
151 
152 /***************************************************************************/
181  int unit,
182  opennsl_pbmp_t pbm,
183  int mode) LIB_DLL_EXPORTED ;
184 
185 /***************************************************************************/
213 extern int opennsl_linkscan_mode_get(
214  int unit,
216  int *mode) LIB_DLL_EXPORTED ;
217 
218 /***************************************************************************/
237 extern int opennsl_linkscan_register(
238  int unit,
240 
241 /***************************************************************************/
260 extern int opennsl_linkscan_unregister(
261  int unit,
263 
264 #endif /* OPENNSL_HIDE_DISPATCHABLE */
265 
266 #include <opennsl/linkX.h>
267 #endif /* __OPENNSL_LINK_H__ */
268