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