OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
error.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_ERROR_H__
25
#define __OPENNSL_ERROR_H__
26
27
#include <
shared/error.h
>
28
35
typedef
enum
opennsl_error_e
{
36
OPENNSL_E_NONE
=
_SHR_E_NONE
,
37
OPENNSL_E_INTERNAL
=
_SHR_E_INTERNAL
,
38
OPENNSL_E_MEMORY
=
_SHR_E_MEMORY
,
39
OPENNSL_E_UNIT
=
_SHR_E_UNIT
,
40
OPENNSL_E_PARAM
=
_SHR_E_PARAM
,
41
OPENNSL_E_EMPTY
=
_SHR_E_EMPTY
,
42
OPENNSL_E_FULL
=
_SHR_E_FULL
,
43
OPENNSL_E_NOT_FOUND
=
_SHR_E_NOT_FOUND
,
44
OPENNSL_E_EXISTS
=
_SHR_E_EXISTS
,
45
OPENNSL_E_TIMEOUT
=
_SHR_E_TIMEOUT
,
46
OPENNSL_E_BUSY
=
_SHR_E_BUSY
,
47
OPENNSL_E_FAIL
=
_SHR_E_FAIL
,
48
OPENNSL_E_DISABLED
=
_SHR_E_DISABLED
,
49
OPENNSL_E_BADID
=
_SHR_E_BADID
,
50
OPENNSL_E_RESOURCE
=
_SHR_E_RESOURCE
,
51
OPENNSL_E_CONFIG
=
_SHR_E_CONFIG
,
52
OPENNSL_E_UNAVAIL
=
_SHR_E_UNAVAIL
,
53
OPENNSL_E_INIT
=
_SHR_E_INIT
,
54
OPENNSL_E_PORT
=
_SHR_E_PORT
55
}
opennsl_error_t
;
56
/* __doxy_func_body_end__ */
57
59
typedef
enum
opennsl_switch_event_e
{
60
OPENNSL_SWITCH_EVENT_PARITY_ERROR
=
_SHR_SWITCH_EVENT_PARITY_ERROR
,
61
OPENNSL_SWITCH_EVENT_STABLE_FULL
=
_SHR_SWITCH_EVENT_STABLE_FULL
,
62
OPENNSL_SWITCH_EVENT_STABLE_ERROR
=
_SHR_SWITCH_EVENT_STABLE_ERROR
,
63
OPENNSL_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN
=
_SHR_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN
,
64
OPENNSL_SWITCH_EVENT_WARM_BOOT_DOWNGRADE
=
_SHR_SWITCH_EVENT_WARM_BOOT_DOWNGRADE
,
65
OPENNSL_SWITCH_EVENT_MMU_BST_TRIGGER
=
_SHR_SWITCH_EVENT_MMU_BST_TRIGGER
,
66
}
opennsl_switch_event_t
;
67
/* __doxy_func_body_end__ */
68
69
#define OPENNSL_SUCCESS(rv) \
70
_SHR_E_SUCCESS(rv)
71
#define OPENNSL_FAILURE(rv) \
72
_SHR_E_FAILURE(rv)
73
#define OPENNSL_IF_ERROR_RETURN(op) \
74
_SHR_E_IF_ERROR_RETURN(op)
75
#define OPENNSL_IF_ERROR_NOT_UNAVAIL_RETURN(op) \
76
_SHR_E_IF_ERROR_NOT_UNAVAIL_RETURN(op)
77
#define opennsl_errmsg(rv) \
78
_SHR_ERRMSG(rv)
79
#include <
opennsl/errorX.h
>
80
#endif
/* __OPENNSL_ERROR_H__ */
81
© 2016-17 by Broadcom Limited. All rights reserved.