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