OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
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
30
typedef
void (*
opennsl_linkscan_handler_t
)(
31
int
unit,
32
opennsl_port_t
port
,
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
/***************************************************************************/
78
extern
int
opennsl_linkscan_enable_set
(
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
109
typedef
enum
opennsl_linkscan_mode_e
{
110
OPENNSL_LINKSCAN_MODE_NONE
= 0,
111
OPENNSL_LINKSCAN_MODE_SW
= 1,
112
OPENNSL_LINKSCAN_MODE_HW
= 2,
113
OPENNSL_LINKSCAN_MODE_COUNT
= 3
114
}
opennsl_linkscan_mode_t
;
115
/* __doxy_func_body_end__ */
116
117
#ifndef OPENNSL_HIDE_DISPATCHABLE
118
119
/***************************************************************************/
147
extern
int
opennsl_linkscan_mode_set
(
148
int
unit,
149
opennsl_port_t
port
,
150
int
mode)
LIB_DLL_EXPORTED
;
151
152
/***************************************************************************/
180
extern
int
opennsl_linkscan_mode_set_pbm
(
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,
215
opennsl_port_t
port
,
216
int
*mode)
LIB_DLL_EXPORTED
;
217
218
/***************************************************************************/
237
extern
int
opennsl_linkscan_register
(
238
int
unit,
239
opennsl_linkscan_handler_t
f)
LIB_DLL_EXPORTED
;
240
241
/***************************************************************************/
260
extern
int
opennsl_linkscan_unregister
(
261
int
unit,
262
opennsl_linkscan_handler_t
f)
LIB_DLL_EXPORTED
;
263
264
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
265
266
#include <
opennsl/linkX.h
>
267
#endif
/* __OPENNSL_LINK_H__ */
268
© 2016-17 by Broadcom Limited. All rights reserved.