OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
init.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_INIT_H__
25
#define __OPENNSL_INIT_H__
26
27
#include <
opennsl/types.h
>
28
30
typedef
struct
opennsl_info_s
{
31
uint32
device
;
32
uint32
revision
;
33
}
opennsl_info_t
;
34
/* __doxy_func_body_end__ */
35
36
/***************************************************************************/
57
extern
int
opennsl_attach
(
58
int
unit,
59
char
*type,
60
char
*subtype,
61
int
remunit)
LIB_DLL_EXPORTED
;
62
63
/***************************************************************************/
78
extern
int
opennsl_detach
(
79
int
unit)
LIB_DLL_EXPORTED
;
80
81
/***************************************************************************/
90
extern
int
opennsl_attach_check
(
91
int
unit)
LIB_DLL_EXPORTED
;
92
93
/***************************************************************************/
104
extern
int
opennsl_attach_max
(
105
int
*max_units)
LIB_DLL_EXPORTED
;
106
107
#ifndef OPENNSL_HIDE_DISPATCHABLE
108
109
/***************************************************************************/
121
extern
int
opennsl_info_get
(
122
int
unit,
123
opennsl_info_t
*info)
LIB_DLL_EXPORTED
;
124
125
#endif
/* OPENNSL_HIDE_DISPATCHABLE */
126
127
/***************************************************************************/
142
extern
void
opennsl_info_t_init
(
143
opennsl_info_t
*info)
LIB_DLL_EXPORTED
;
144
145
#if !defined(OPENNSL_WARM_BOOT_SUPPORT)
146
#define _opennsl_shutdown(unit) OPENNSL_E_NONE
147
#endif
148
#include <
opennsl/initX.h
>
149
#endif
/* __OPENNSL_INIT_H__ */
150
© 2016-17 by Broadcom Limited. All rights reserved.