cfe_error.h revision 330897
1/* $NetBSD: cfe_error.h,v 1.2 2003/02/07 17:38:48 cgd Exp $ */
2/* from: SiByte Id: cfe_error.h,v 1.2 2002/07/09 19:37:52 cgd Exp $ */
3
4/*-
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 * Copyright 2000, 2001, 2002
8 * Broadcom Corporation. All rights reserved.
9 *
10 * This software is furnished under license and may be used and copied only
11 * in accordance with the following terms and conditions.  Subject to these
12 * conditions, you may download, copy, install, use, modify and distribute
13 * modified or unmodified copies of this software in source and/or binary
14 * form. No title or ownership is transferred hereby.
15 *
16 * 1) Any source code used, modified or distributed must reproduce and
17 *    retain this copyright notice and list of conditions as they appear in
18 *    the source file.
19 *
20 * 2) No right is granted to use any trade name, trademark, or logo of
21 *    Broadcom Corporation.  The "Broadcom Corporation" name may not be
22 *    used to endorse or promote products derived from this software
23 *    without the prior written permission of Broadcom Corporation.
24 *
25 * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED
26 *    WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF
27 *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
28 *    NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE
29 *    FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE
30 *    LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 *    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 *    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
33 *    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 *    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
35 *    OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * $FreeBSD: stable/11/sys/dev/cfe/cfe_error.h 330897 2018-03-14 03:19:51Z eadler $
38 */
39
40/*  *********************************************************************
41    *
42    *  Broadcom Common Firmware Environment (CFE)
43    *
44    *  Error codes				File: cfe_error.h
45    *
46    *  CFE's global error code list is here.
47    *
48    *  Author:  Mitch Lichtenberg
49    *
50    ********************************************************************* */
51
52
53#define CFE_OK			 0
54#define CFE_ERR                 -1	/* generic error */
55#define CFE_ERR_INV_COMMAND	-2
56#define CFE_ERR_EOF		-3
57#define CFE_ERR_IOERR		-4
58#define CFE_ERR_NOMEM		-5
59#define CFE_ERR_DEVNOTFOUND	-6
60#define CFE_ERR_DEVOPEN		-7
61#define CFE_ERR_INV_PARAM	-8
62#define CFE_ERR_ENVNOTFOUND	-9
63#define CFE_ERR_ENVREADONLY	-10
64
65#define CFE_ERR_NOTELF		-11
66#define CFE_ERR_NOT32BIT 	-12
67#define CFE_ERR_WRONGENDIAN 	-13
68#define CFE_ERR_BADELFVERS 	-14
69#define CFE_ERR_NOTMIPS 	-15
70#define CFE_ERR_BADELFFMT 	-16
71#define CFE_ERR_BADADDR 	-17
72
73#define CFE_ERR_FILENOTFOUND	-18
74#define CFE_ERR_UNSUPPORTED	-19
75
76#define CFE_ERR_HOSTUNKNOWN	-20
77
78#define CFE_ERR_TIMEOUT		-21
79
80#define CFE_ERR_PROTOCOLERR	-22
81
82#define CFE_ERR_NETDOWN		-23
83#define CFE_ERR_NONAMESERVER	-24
84
85#define CFE_ERR_NOHANDLES	-25
86#define CFE_ERR_ALREADYBOUND	-26
87
88#define CFE_ERR_CANNOTSET	-27
89#define CFE_ERR_NOMORE		-28
90#define CFE_ERR_BADFILESYS	-29
91#define CFE_ERR_FSNOTAVAIL	-30
92
93#define CFE_ERR_INVBOOTBLOCK	-31
94#define CFE_ERR_WRONGDEVTYPE	-32
95#define CFE_ERR_BBCHECKSUM	-33
96#define CFE_ERR_BOOTPROGCHKSUM	-34
97
98#define CFE_ERR_LDRNOTAVAIL	-35
99
100#define CFE_ERR_NOTREADY	-36
101
102#define CFE_ERR_GETMEM          -37
103#define CFE_ERR_SETMEM          -38
104
105#define CFE_ERR_NOTCONN		-39
106#define CFE_ERR_ADDRINUSE	-40
107