Go to the source code of this file.
|
enum | _shr_error_t {
_SHR_E_NONE = 0,
_SHR_E_INTERNAL = -1,
_SHR_E_MEMORY = -2,
_SHR_E_UNIT = -3,
_SHR_E_PARAM = -4,
_SHR_E_EMPTY = -5,
_SHR_E_FULL = -6,
_SHR_E_NOT_FOUND = -7,
_SHR_E_EXISTS = -8,
_SHR_E_TIMEOUT = -9,
_SHR_E_BUSY = -10,
_SHR_E_FAIL = -11,
_SHR_E_DISABLED = -12,
_SHR_E_BADID = -13,
_SHR_E_RESOURCE = -14,
_SHR_E_CONFIG = -15,
_SHR_E_UNAVAIL = -16,
_SHR_E_INIT = -17,
_SHR_E_PORT = -18,
_SHR_E_LIMIT = -19
} |
|
enum | _shr_switch_event_t {
_SHR_SWITCH_EVENT_IO_ERROR = 1,
_SHR_SWITCH_EVENT_PARITY_ERROR = 2,
_SHR_SWITCH_EVENT_THREAD_ERROR = 3,
_SHR_SWITCH_EVENT_ACCESS_ERROR = 4,
_SHR_SWITCH_EVENT_ASSERT_ERROR = 5,
_SHR_SWITCH_EVENT_MODID_CHANGE = 6,
_SHR_SWITCH_EVENT_DOS_ATTACK = 7,
_SHR_SWITCH_EVENT_STABLE_FULL = 8,
_SHR_SWITCH_EVENT_STABLE_ERROR = 9,
_SHR_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN = 10,
_SHR_SWITCH_EVENT_WARM_BOOT_DOWNGRADE = 11,
_SHR_SWITCH_EVENT_TUNE_ERROR = 12,
_SHR_SWITCH_EVENT_DEVICE_INTERRUPT = 13,
_SHR_SWITCH_EVENT_ALARM = 14,
_SHR_SWITCH_EVENT_MMU_BST_TRIGGER = 15,
_SHR_SWITCH_EVENT_EPON_ALARM = 16,
_SHR_SWITCH_EVENT_RUNT_DETECT = 17,
_SHR_SWITCH_EVENT_AUTONEG_SPEED_ERROR = 18,
_SHR_SWITCH_EVENT_COUNT
} |
|
#define _SHR_E_FAILURE |
( |
|
rv | ) |
((rv) < 0) |
#define _SHR_E_IF_ERROR_CLEAN_RETURN |
( |
|
op, |
|
|
|
exop |
|
) |
| do { int __rv__; if ((__rv__ = (op)) < 0) { _SHR_ERROR_TRACE(__rv__); (exop); return(__rv__); } } while(0) |
#define _SHR_E_IF_ERROR_NOT_UNAVAIL_RETURN |
( |
|
op | ) |
|
Value:do { \
int __rv__; \
return(__rv__); \
} \
} while(0)
Definition at line 98 of file error.h.
#define _SHR_E_IF_ERROR_RETURN |
( |
|
op | ) |
do { int __rv__; if ((__rv__ = (op)) < 0) { _SHR_ERROR_TRACE(__rv__); return(__rv__); } } while(0) |
#define _SHR_E_SUCCESS |
( |
|
rv | ) |
((rv) >= 0) |
Value:{ \
"Ok", \
"Internal error", \
"Out of memory", \
"Invalid unit", \
"Invalid parameter", \
"Table empty", \
"Table full", \
"Entry not found", \
"Entry exists", \
"Operation timed out", \
"Operation still running", \
"Operation failed", \
"Operation disabled", \
"Invalid identifier", \
"No resources for operation", \
"Invalid configuration", \
"Feature unavailable", \
"Feature not initialized", \
"Invalid port", \
"Unknown error" \
}
Definition at line 55 of file error.h.
#define _SHR_ERROR_TRACE |
( |
|
__errcode__ | ) |
|
#define _SHR_RETURN |
( |
|
__expr__ | ) |
return (__expr__) |
- Enumerator:
_SHR_E_NONE |
|
_SHR_E_INTERNAL |
|
_SHR_E_MEMORY |
|
_SHR_E_UNIT |
|
_SHR_E_PARAM |
|
_SHR_E_EMPTY |
|
_SHR_E_FULL |
|
_SHR_E_NOT_FOUND |
|
_SHR_E_EXISTS |
|
_SHR_E_TIMEOUT |
|
_SHR_E_BUSY |
|
_SHR_E_FAIL |
|
_SHR_E_DISABLED |
|
_SHR_E_BADID |
|
_SHR_E_RESOURCE |
|
_SHR_E_CONFIG |
|
_SHR_E_UNAVAIL |
|
_SHR_E_INIT |
|
_SHR_E_PORT |
|
_SHR_E_LIMIT |
|
Definition at line 30 of file error.h.
- Enumerator:
_SHR_SWITCH_EVENT_IO_ERROR |
|
_SHR_SWITCH_EVENT_PARITY_ERROR |
|
_SHR_SWITCH_EVENT_THREAD_ERROR |
|
_SHR_SWITCH_EVENT_ACCESS_ERROR |
|
_SHR_SWITCH_EVENT_ASSERT_ERROR |
|
_SHR_SWITCH_EVENT_MODID_CHANGE |
|
_SHR_SWITCH_EVENT_DOS_ATTACK |
|
_SHR_SWITCH_EVENT_STABLE_FULL |
|
_SHR_SWITCH_EVENT_STABLE_ERROR |
|
_SHR_SWITCH_EVENT_UNCONTROLLED_SHUTDOWN |
|
_SHR_SWITCH_EVENT_WARM_BOOT_DOWNGRADE |
|
_SHR_SWITCH_EVENT_TUNE_ERROR |
|
_SHR_SWITCH_EVENT_DEVICE_INTERRUPT |
|
_SHR_SWITCH_EVENT_ALARM |
|
_SHR_SWITCH_EVENT_MMU_BST_TRIGGER |
|
_SHR_SWITCH_EVENT_EPON_ALARM |
|
_SHR_SWITCH_EVENT_RUNT_DETECT |
|
_SHR_SWITCH_EVENT_AUTONEG_SPEED_ERROR |
|
_SHR_SWITCH_EVENT_COUNT |
|
Definition at line 108 of file error.h.