1183370Simp/* $NetBSD: cfe_error.h,v 1.2 2003/02/07 17:38:48 cgd Exp $ */
2183370Simp/* from: SiByte Id: cfe_error.h,v 1.2 2002/07/09 19:37:52 cgd Exp $ */
3183370Simp
4183370Simp/*-
5183370Simp * Copyright 2000, 2001, 2002
6183370Simp * Broadcom Corporation. All rights reserved.
7183370Simp *
8183370Simp * This software is furnished under license and may be used and copied only
9183370Simp * in accordance with the following terms and conditions.  Subject to these
10183370Simp * conditions, you may download, copy, install, use, modify and distribute
11183370Simp * modified or unmodified copies of this software in source and/or binary
12183370Simp * form. No title or ownership is transferred hereby.
13183370Simp *
14183370Simp * 1) Any source code used, modified or distributed must reproduce and
15183370Simp *    retain this copyright notice and list of conditions as they appear in
16183370Simp *    the source file.
17183370Simp *
18183370Simp * 2) No right is granted to use any trade name, trademark, or logo of
19183370Simp *    Broadcom Corporation.  The "Broadcom Corporation" name may not be
20183370Simp *    used to endorse or promote products derived from this software
21183370Simp *    without the prior written permission of Broadcom Corporation.
22183370Simp *
23183370Simp * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR IMPLIED
24183370Simp *    WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF
25183370Simp *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
26183370Simp *    NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM BE LIABLE
27183370Simp *    FOR ANY DAMAGES WHATSOEVER, AND IN PARTICULAR, BROADCOM SHALL NOT BE
28183370Simp *    LIABLE FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29183370Simp *    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30183370Simp *    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
31183370Simp *    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32183370Simp *    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
33183370Simp *    OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34183370Simp *
35183370Simp * $FreeBSD$
36183370Simp */
37183370Simp
38183370Simp/*  *********************************************************************
39183370Simp    *
40183370Simp    *  Broadcom Common Firmware Environment (CFE)
41183370Simp    *
42183370Simp    *  Error codes				File: cfe_error.h
43183370Simp    *
44183370Simp    *  CFE's global error code list is here.
45183370Simp    *
46183370Simp    *  Author:  Mitch Lichtenberg
47183370Simp    *
48183370Simp    ********************************************************************* */
49183370Simp
50183370Simp
51183370Simp#define CFE_OK			 0
52183370Simp#define CFE_ERR                 -1	/* generic error */
53183370Simp#define CFE_ERR_INV_COMMAND	-2
54183370Simp#define CFE_ERR_EOF		-3
55183370Simp#define CFE_ERR_IOERR		-4
56183370Simp#define CFE_ERR_NOMEM		-5
57183370Simp#define CFE_ERR_DEVNOTFOUND	-6
58183370Simp#define CFE_ERR_DEVOPEN		-7
59183370Simp#define CFE_ERR_INV_PARAM	-8
60183370Simp#define CFE_ERR_ENVNOTFOUND	-9
61183370Simp#define CFE_ERR_ENVREADONLY	-10
62183370Simp
63183370Simp#define CFE_ERR_NOTELF		-11
64183370Simp#define CFE_ERR_NOT32BIT 	-12
65183370Simp#define CFE_ERR_WRONGENDIAN 	-13
66183370Simp#define CFE_ERR_BADELFVERS 	-14
67183370Simp#define CFE_ERR_NOTMIPS 	-15
68183370Simp#define CFE_ERR_BADELFFMT 	-16
69183370Simp#define CFE_ERR_BADADDR 	-17
70183370Simp
71183370Simp#define CFE_ERR_FILENOTFOUND	-18
72183370Simp#define CFE_ERR_UNSUPPORTED	-19
73183370Simp
74183370Simp#define CFE_ERR_HOSTUNKNOWN	-20
75183370Simp
76183370Simp#define CFE_ERR_TIMEOUT		-21
77183370Simp
78183370Simp#define CFE_ERR_PROTOCOLERR	-22
79183370Simp
80183370Simp#define CFE_ERR_NETDOWN		-23
81183370Simp#define CFE_ERR_NONAMESERVER	-24
82183370Simp
83183370Simp#define CFE_ERR_NOHANDLES	-25
84183370Simp#define CFE_ERR_ALREADYBOUND	-26
85183370Simp
86183370Simp#define CFE_ERR_CANNOTSET	-27
87183370Simp#define CFE_ERR_NOMORE		-28
88183370Simp#define CFE_ERR_BADFILESYS	-29
89183370Simp#define CFE_ERR_FSNOTAVAIL	-30
90183370Simp
91183370Simp#define CFE_ERR_INVBOOTBLOCK	-31
92183370Simp#define CFE_ERR_WRONGDEVTYPE	-32
93183370Simp#define CFE_ERR_BBCHECKSUM	-33
94183370Simp#define CFE_ERR_BOOTPROGCHKSUM	-34
95183370Simp
96183370Simp#define CFE_ERR_LDRNOTAVAIL	-35
97183370Simp
98183370Simp#define CFE_ERR_NOTREADY	-36
99183370Simp
100183370Simp#define CFE_ERR_GETMEM          -37
101183370Simp#define CFE_ERR_SETMEM          -38
102183370Simp
103183370Simp#define CFE_ERR_NOTCONN		-39
104183370Simp#define CFE_ERR_ADDRINUSE	-40
105