xref: /onnv-gate/usr/src/lib/storage/common/l_error.h (revision 7836:4e95154b5b7a)
1*7836SJohn.Forte@Sun.COM /*
2*7836SJohn.Forte@Sun.COM  * CDDL HEADER START
3*7836SJohn.Forte@Sun.COM  *
4*7836SJohn.Forte@Sun.COM  * The contents of this file are subject to the terms of the
5*7836SJohn.Forte@Sun.COM  * Common Development and Distribution License (the "License").
6*7836SJohn.Forte@Sun.COM  * You may not use this file except in compliance with the License.
7*7836SJohn.Forte@Sun.COM  *
8*7836SJohn.Forte@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7836SJohn.Forte@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*7836SJohn.Forte@Sun.COM  * See the License for the specific language governing permissions
11*7836SJohn.Forte@Sun.COM  * and limitations under the License.
12*7836SJohn.Forte@Sun.COM  *
13*7836SJohn.Forte@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*7836SJohn.Forte@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7836SJohn.Forte@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*7836SJohn.Forte@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*7836SJohn.Forte@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*7836SJohn.Forte@Sun.COM  *
19*7836SJohn.Forte@Sun.COM  * CDDL HEADER END
20*7836SJohn.Forte@Sun.COM  */
21*7836SJohn.Forte@Sun.COM /*
22*7836SJohn.Forte@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*7836SJohn.Forte@Sun.COM  * Use is subject to license terms.
24*7836SJohn.Forte@Sun.COM  */
25*7836SJohn.Forte@Sun.COM 
26*7836SJohn.Forte@Sun.COM /*
27*7836SJohn.Forte@Sun.COM  * PHOTON CONFIGURATION MANAGER
28*7836SJohn.Forte@Sun.COM  * Error definitions
29*7836SJohn.Forte@Sun.COM  */
30*7836SJohn.Forte@Sun.COM 
31*7836SJohn.Forte@Sun.COM #ifndef	_L_ERROR_H
32*7836SJohn.Forte@Sun.COM #define	_L_ERROR_H
33*7836SJohn.Forte@Sun.COM 
34*7836SJohn.Forte@Sun.COM 
35*7836SJohn.Forte@Sun.COM 
36*7836SJohn.Forte@Sun.COM /*
37*7836SJohn.Forte@Sun.COM  * Include any headers you depend on.
38*7836SJohn.Forte@Sun.COM  */
39*7836SJohn.Forte@Sun.COM 
40*7836SJohn.Forte@Sun.COM /*
41*7836SJohn.Forte@Sun.COM  * I18N message number ranges
42*7836SJohn.Forte@Sun.COM  *  This file: 15000 - 15499
43*7836SJohn.Forte@Sun.COM  *  Shared common messages: 1 - 1999
44*7836SJohn.Forte@Sun.COM  */
45*7836SJohn.Forte@Sun.COM 
46*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
47*7836SJohn.Forte@Sun.COM extern "C" {
48*7836SJohn.Forte@Sun.COM #endif
49*7836SJohn.Forte@Sun.COM 
50*7836SJohn.Forte@Sun.COM 
51*7836SJohn.Forte@Sun.COM /*
52*7836SJohn.Forte@Sun.COM  * This header file contains the error definitions
53*7836SJohn.Forte@Sun.COM  * which are not exported but are used internally.
54*7836SJohn.Forte@Sun.COM  */
55*7836SJohn.Forte@Sun.COM 
56*7836SJohn.Forte@Sun.COM /* Persistant Rservation: Invalid transfer length */
57*7836SJohn.Forte@Sun.COM #define	L_PR_INVLD_TRNSFR_LEN		0x10001
58*7836SJohn.Forte@Sun.COM 
59*7836SJohn.Forte@Sun.COM /*
60*7836SJohn.Forte@Sun.COM  * Error definitions
61*7836SJohn.Forte@Sun.COM  * for Format Errors.
62*7836SJohn.Forte@Sun.COM  */
63*7836SJohn.Forte@Sun.COM /* box name conflicts with the SSA name */
64*7836SJohn.Forte@Sun.COM #define	L_SSA_CONFLICT			0x20013
65*7836SJohn.Forte@Sun.COM 
66*7836SJohn.Forte@Sun.COM 
67*7836SJohn.Forte@Sun.COM /*
68*7836SJohn.Forte@Sun.COM  * Error definitions
69*7836SJohn.Forte@Sun.COM  * for System Errors
70*7836SJohn.Forte@Sun.COM  */
71*7836SJohn.Forte@Sun.COM /* drvconfig fail */
72*7836SJohn.Forte@Sun.COM #define	L_DRVCONFIG_ERROR		0x31001
73*7836SJohn.Forte@Sun.COM 
74*7836SJohn.Forte@Sun.COM /* disks program failed */
75*7836SJohn.Forte@Sun.COM #define	L_DISKS_ERROR			0x31002
76*7836SJohn.Forte@Sun.COM 
77*7836SJohn.Forte@Sun.COM /* devlinks program failed */
78*7836SJohn.Forte@Sun.COM #define	L_DEVLINKS_ERROR		0x31003
79*7836SJohn.Forte@Sun.COM 
80*7836SJohn.Forte@Sun.COM /* fail to read /dev/rdsk directory. */
81*7836SJohn.Forte@Sun.COM #define	L_READ_DEV_DIR_ERROR		0x31004
82*7836SJohn.Forte@Sun.COM 
83*7836SJohn.Forte@Sun.COM /* Failed to open /dev/es/ directory. */
84*7836SJohn.Forte@Sun.COM #define	L_OPEN_ES_DIR_FAILED		0x31005
85*7836SJohn.Forte@Sun.COM 
86*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/es directory. */
87*7836SJohn.Forte@Sun.COM #define	L_LSTAT_ES_DIR_ERROR		0x31006
88*7836SJohn.Forte@Sun.COM 
89*7836SJohn.Forte@Sun.COM /* disks program failed */
90*7836SJohn.Forte@Sun.COM #define	L_TAPES_ERROR			0x31007
91*7836SJohn.Forte@Sun.COM 
92*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/rmt/directory. */
93*7836SJohn.Forte@Sun.COM #define	L_STAT_RMT_DIR_ERROR		0x31008
94*7836SJohn.Forte@Sun.COM 
95*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/rmt/directory. */
96*7836SJohn.Forte@Sun.COM #define	L_STAT_DEV_DIR_ERROR		0x31009
97*7836SJohn.Forte@Sun.COM 
98*7836SJohn.Forte@Sun.COM 
99*7836SJohn.Forte@Sun.COM /*
100*7836SJohn.Forte@Sun.COM  * Error definitions
101*7836SJohn.Forte@Sun.COM  * specific to Back plane.
102*7836SJohn.Forte@Sun.COM  */
103*7836SJohn.Forte@Sun.COM /* Backplane: Busy or reserved disks found */
104*7836SJohn.Forte@Sun.COM #define	L_BP_BUSY_RESERVED		0x50000
105*7836SJohn.Forte@Sun.COM 
106*7836SJohn.Forte@Sun.COM /* Backplane: one or more busy disks found */
107*7836SJohn.Forte@Sun.COM #define	L_BP_BUSY			0x50001
108*7836SJohn.Forte@Sun.COM 
109*7836SJohn.Forte@Sun.COM /* Backplane: one or more reserved disks found */
110*7836SJohn.Forte@Sun.COM #define	L_BP_RESERVED			0x50002
111*7836SJohn.Forte@Sun.COM 
112*7836SJohn.Forte@Sun.COM /* No BP element found in the enclosure */
113*7836SJohn.Forte@Sun.COM #define	L_NO_BP_ELEM_FOUND		0x50003
114*7836SJohn.Forte@Sun.COM 
115*7836SJohn.Forte@Sun.COM /*
116*7836SJohn.Forte@Sun.COM  * Thread errors.
117*7836SJohn.Forte@Sun.COM  */
118*7836SJohn.Forte@Sun.COM #define	L_TH_CREATE			0x60000
119*7836SJohn.Forte@Sun.COM #define	L_TH_JOIN			0x60001
120*7836SJohn.Forte@Sun.COM 
121*7836SJohn.Forte@Sun.COM 
122*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
123*7836SJohn.Forte@Sun.COM }
124*7836SJohn.Forte@Sun.COM #endif
125*7836SJohn.Forte@Sun.COM 
126*7836SJohn.Forte@Sun.COM #endif	/* _L_ERROR_H */
127