xref: /onnv-gate/usr/src/cmd/luxadm/errorcodes.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 #ifndef	_ERRORCODES_H
27*7836SJohn.Forte@Sun.COM #define	_ERRORCODES_H
28*7836SJohn.Forte@Sun.COM 
29*7836SJohn.Forte@Sun.COM 
30*7836SJohn.Forte@Sun.COM 
31*7836SJohn.Forte@Sun.COM 
32*7836SJohn.Forte@Sun.COM /*
33*7836SJohn.Forte@Sun.COM  * Include any headers you depend on.
34*7836SJohn.Forte@Sun.COM  */
35*7836SJohn.Forte@Sun.COM 
36*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
37*7836SJohn.Forte@Sun.COM extern "C" {
38*7836SJohn.Forte@Sun.COM #endif
39*7836SJohn.Forte@Sun.COM 
40*7836SJohn.Forte@Sun.COM 
41*7836SJohn.Forte@Sun.COM /* On the sparc platform, error codes come from stgcom.h */
42*7836SJohn.Forte@Sun.COM #ifdef __x86
43*7836SJohn.Forte@Sun.COM 
44*7836SJohn.Forte@Sun.COM /*
45*7836SJohn.Forte@Sun.COM  * All error numbers below this base value
46*7836SJohn.Forte@Sun.COM  * are assumed to be UNIX error codes.
47*7836SJohn.Forte@Sun.COM  */
48*7836SJohn.Forte@Sun.COM 
49*7836SJohn.Forte@Sun.COM #define	L_BASE				L_SCSI_ERROR
50*7836SJohn.Forte@Sun.COM 
51*7836SJohn.Forte@Sun.COM /*
52*7836SJohn.Forte@Sun.COM  * SCSI Errors
53*7836SJohn.Forte@Sun.COM  *
54*7836SJohn.Forte@Sun.COM  */
55*7836SJohn.Forte@Sun.COM /* SCSI error */
56*7836SJohn.Forte@Sun.COM #define	L_SCSI_ERROR			0x10000
57*7836SJohn.Forte@Sun.COM 
58*7836SJohn.Forte@Sun.COM /* Receive Diagnostics: Transfer length is not word aligned */
59*7836SJohn.Forte@Sun.COM #define	L_RD_INVLD_TRNSFR_LEN		0x11002
60*7836SJohn.Forte@Sun.COM 
61*7836SJohn.Forte@Sun.COM /* No disk element found in Receive diag. page */
62*7836SJohn.Forte@Sun.COM #define	L_RD_NO_DISK_ELEM		0x11003
63*7836SJohn.Forte@Sun.COM 
64*7836SJohn.Forte@Sun.COM /* Illegal mode sense page length */
65*7836SJohn.Forte@Sun.COM #define	L_ILLEGAL_MODE_SENSE_PAGE	0x11004
66*7836SJohn.Forte@Sun.COM 
67*7836SJohn.Forte@Sun.COM /* Invalid number of ENV. SENSE pages */
68*7836SJohn.Forte@Sun.COM #define	L_INVALID_NO_OF_ENVSEN_PAGES	0x11005
69*7836SJohn.Forte@Sun.COM 
70*7836SJohn.Forte@Sun.COM /* Buffer is *too* small to hold more than 8 pages */
71*7836SJohn.Forte@Sun.COM #define	L_INVALID_BUF_LEN		0x11006
72*7836SJohn.Forte@Sun.COM 
73*7836SJohn.Forte@Sun.COM /* Scsi_vhci errors */
74*7836SJohn.Forte@Sun.COM #define	L_SCSI_VHCI_ERROR		0x11007
75*7836SJohn.Forte@Sun.COM #define	L_SCSI_VHCI_ALREADY_ACTIVE	0x11008
76*7836SJohn.Forte@Sun.COM #define	L_SCSI_VHCI_NO_STANDBY		0x11009
77*7836SJohn.Forte@Sun.COM #define	L_SCSI_VHCI_FAILOVER_NOTSUP	0x1100a
78*7836SJohn.Forte@Sun.COM #define	L_SCSI_VHCI_FAILOVER_BUSY	0x1100b
79*7836SJohn.Forte@Sun.COM 
80*7836SJohn.Forte@Sun.COM 
81*7836SJohn.Forte@Sun.COM /*
82*7836SJohn.Forte@Sun.COM  * Error definitions
83*7836SJohn.Forte@Sun.COM  * for Format Errors.
84*7836SJohn.Forte@Sun.COM  */
85*7836SJohn.Forte@Sun.COM #define	L_INVALID_PATH			0x20200
86*7836SJohn.Forte@Sun.COM 
87*7836SJohn.Forte@Sun.COM /* Failed to open a given path */
88*7836SJohn.Forte@Sun.COM #define	L_OPEN_PATH_FAIL		0x20001
89*7836SJohn.Forte@Sun.COM 
90*7836SJohn.Forte@Sun.COM /* Invalid password length. */
91*7836SJohn.Forte@Sun.COM #define	L_INVALID_PASSWORD_LEN		0x20002
92*7836SJohn.Forte@Sun.COM 
93*7836SJohn.Forte@Sun.COM /* Given disk physical path is not valid. */
94*7836SJohn.Forte@Sun.COM #define	L_INVLD_PHYS_PATH_TO_DISK	0x20004
95*7836SJohn.Forte@Sun.COM 
96*7836SJohn.Forte@Sun.COM /* Invalid name id found in the physical path */
97*7836SJohn.Forte@Sun.COM #define	L_INVLD_ID_FOUND		0x20005
98*7836SJohn.Forte@Sun.COM 
99*7836SJohn.Forte@Sun.COM /* Invalid WWN format found */
100*7836SJohn.Forte@Sun.COM #define	L_INVLD_WWN_FORMAT		0x20006
101*7836SJohn.Forte@Sun.COM 
102*7836SJohn.Forte@Sun.COM /* No WWN found in the disk's physical path */
103*7836SJohn.Forte@Sun.COM #define	L_NO_WWN_FOUND_IN_PATH		0x20007
104*7836SJohn.Forte@Sun.COM 
105*7836SJohn.Forte@Sun.COM /* No Loop address found in the phys path */
106*7836SJohn.Forte@Sun.COM #define	L_NO_LOOP_ADDRS_FOUND		0x20008
107*7836SJohn.Forte@Sun.COM 
108*7836SJohn.Forte@Sun.COM /* Invalid port number found in the phys path */
109*7836SJohn.Forte@Sun.COM #define	L_INVLD_PORT_IN_PATH		0x20009
110*7836SJohn.Forte@Sun.COM 
111*7836SJohn.Forte@Sun.COM /* Invalid LED request */
112*7836SJohn.Forte@Sun.COM #define	L_INVALID_LED_RQST		0x20010
113*7836SJohn.Forte@Sun.COM 
114*7836SJohn.Forte@Sun.COM /* Invalid path format */
115*7836SJohn.Forte@Sun.COM #define	L_INVALID_PATH_FORMAT		0x20011
116*7836SJohn.Forte@Sun.COM 
117*7836SJohn.Forte@Sun.COM /* failed to get the physical path */
118*7836SJohn.Forte@Sun.COM #define	L_NO_PHYS_PATH			0x20012
119*7836SJohn.Forte@Sun.COM 
120*7836SJohn.Forte@Sun.COM /* failed to get the ses path */
121*7836SJohn.Forte@Sun.COM #define	L_NO_SES_PATH			0x20015
122*7836SJohn.Forte@Sun.COM 
123*7836SJohn.Forte@Sun.COM /* No "/" found in the physical path */
124*7836SJohn.Forte@Sun.COM #define	L_INVLD_PATH_NO_SLASH_FND	0x20100
125*7836SJohn.Forte@Sun.COM 
126*7836SJohn.Forte@Sun.COM /* No "@" found in the physical path */
127*7836SJohn.Forte@Sun.COM #define	L_INVLD_PATH_NO_ATSIGN_FND	0x20101
128*7836SJohn.Forte@Sun.COM 
129*7836SJohn.Forte@Sun.COM /* Invalid slot (slot < 0 or slot > 10). */
130*7836SJohn.Forte@Sun.COM #define	L_INVALID_SLOT			0x20102
131*7836SJohn.Forte@Sun.COM 
132*7836SJohn.Forte@Sun.COM /* No valid path to a device */
133*7836SJohn.Forte@Sun.COM #define	L_NO_VALID_PATH			0x20103
134*7836SJohn.Forte@Sun.COM 
135*7836SJohn.Forte@Sun.COM /* No disk devices found in /dev/rdsk directory */
136*7836SJohn.Forte@Sun.COM #define	L_NO_DISK_DEV_FOUND		0x20104
137*7836SJohn.Forte@Sun.COM 
138*7836SJohn.Forte@Sun.COM /* No tape devices found in /dev/rmt directory */
139*7836SJohn.Forte@Sun.COM #define	L_NO_TAPE_DEV_FOUND		0x20105
140*7836SJohn.Forte@Sun.COM 
141*7836SJohn.Forte@Sun.COM /* Device's Node WWN not found in the WWN list. */
142*7836SJohn.Forte@Sun.COM #define	L_NO_NODE_WWN_IN_WWNLIST	0x20106
143*7836SJohn.Forte@Sun.COM 
144*7836SJohn.Forte@Sun.COM /* Device's Node WWN not found in the Box list. */
145*7836SJohn.Forte@Sun.COM #define	L_NO_NODE_WWN_IN_BOXLIST	0x20107
146*7836SJohn.Forte@Sun.COM 
147*7836SJohn.Forte@Sun.COM /* Null WWN list found. */
148*7836SJohn.Forte@Sun.COM #define	L_NULL_WWN_LIST			0x20108
149*7836SJohn.Forte@Sun.COM 
150*7836SJohn.Forte@Sun.COM /* No devices found. */
151*7836SJohn.Forte@Sun.COM #define	L_NO_DEVICES_FOUND		0x20109
152*7836SJohn.Forte@Sun.COM 
153*7836SJohn.Forte@Sun.COM /* function arg error in wwn_list process */
154*7836SJohn.Forte@Sun.COM #define	L_PROC_WWN_ARG_ERROR		0x20110
155*7836SJohn.Forte@Sun.COM 
156*7836SJohn.Forte@Sun.COM /* WWN property not found */
157*7836SJohn.Forte@Sun.COM #define	L_NO_WWN_PROP_FOUND		0x20111
158*7836SJohn.Forte@Sun.COM 
159*7836SJohn.Forte@Sun.COM /* No driver nodes found for requested driver */
160*7836SJohn.Forte@Sun.COM #define	L_NO_DRIVER_NODES_FOUND		0x20112
161*7836SJohn.Forte@Sun.COM 
162*7836SJohn.Forte@Sun.COM /* ULP error on device(s) */
163*7836SJohn.Forte@Sun.COM #define	L_GET_DEV_LIST_ULP_FAILURE	0x20150
164*7836SJohn.Forte@Sun.COM 
165*7836SJohn.Forte@Sun.COM /*
166*7836SJohn.Forte@Sun.COM  * Error definitions
167*7836SJohn.Forte@Sun.COM  * for FC Loop (FC4 devices).
168*7836SJohn.Forte@Sun.COM  */
169*7836SJohn.Forte@Sun.COM /* Invalid loop map found */
170*7836SJohn.Forte@Sun.COM #define	L_INVALID_LOOP_MAP		0x20202
171*7836SJohn.Forte@Sun.COM 
172*7836SJohn.Forte@Sun.COM /* SFIOCGMAP ioctl failed */
173*7836SJohn.Forte@Sun.COM #define	L_SFIOCGMAP_IOCTL_FAIL		0x20203
174*7836SJohn.Forte@Sun.COM 
175*7836SJohn.Forte@Sun.COM /* FCIO_GETMAP ioctl failed */
176*7836SJohn.Forte@Sun.COM #define	L_FCIO_GETMAP_IOCTL_FAIL	0x20204
177*7836SJohn.Forte@Sun.COM 
178*7836SJohn.Forte@Sun.COM /* FCIO_LINKSTATUS ioctl failed */
179*7836SJohn.Forte@Sun.COM #define	L_FCIO_LINKSTATUS_FAILED	0x20205
180*7836SJohn.Forte@Sun.COM 
181*7836SJohn.Forte@Sun.COM /* FCIO_GETMAP: Invalid # of entries */
182*7836SJohn.Forte@Sun.COM #define	L_FCIOGETMAP_INVLD_LEN		0x20206
183*7836SJohn.Forte@Sun.COM 
184*7836SJohn.Forte@Sun.COM /* FCIO_FORCE_LIP ioctl failed. */
185*7836SJohn.Forte@Sun.COM #define	L_FCIO_FORCE_LIP_FAIL		0x20207
186*7836SJohn.Forte@Sun.COM 
187*7836SJohn.Forte@Sun.COM /* Error definitions for FC devices */
188*7836SJohn.Forte@Sun.COM /* FCIO_RESET_LINK ioctl failed */
189*7836SJohn.Forte@Sun.COM #define	L_FCIO_RESET_LINK_FAIL		0x20208
190*7836SJohn.Forte@Sun.COM 
191*7836SJohn.Forte@Sun.COM /* FCIO_GET_FCODE_REV_FAIL ioctl failed */
192*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_FCODE_REV_FAIL	0x20209
193*7836SJohn.Forte@Sun.COM 
194*7836SJohn.Forte@Sun.COM /* FCIO_GET_FW_REV_FAIL ioctl failed */
195*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_FW_REV_FAIL		0x20210
196*7836SJohn.Forte@Sun.COM 
197*7836SJohn.Forte@Sun.COM /* FCIO_GET_DEV_LIST returns invalid dev. counts */
198*7836SJohn.Forte@Sun.COM #define	L_INVALID_DEVICE_COUNT		0x20211
199*7836SJohn.Forte@Sun.COM 
200*7836SJohn.Forte@Sun.COM /* L_FCIO_GET_NUM_DEVS_FAIL ioctl failed */
201*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_NUM_DEVS_FAIL	0x20212
202*7836SJohn.Forte@Sun.COM 
203*7836SJohn.Forte@Sun.COM /* L_FCIO_GET_DEV_LIST_FAIL ioctl failed */
204*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_DEV_LIST_FAIL	0x20213
205*7836SJohn.Forte@Sun.COM 
206*7836SJohn.Forte@Sun.COM /* L_FCIO_GET_LINK_STATUS ioctl failed */
207*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_LINK_STATUS_FAIL	0x20214
208*7836SJohn.Forte@Sun.COM 
209*7836SJohn.Forte@Sun.COM /* L_FCIO_LOOPBACK_INTERNAL or FCIO_CMD/FCIO_LASER_OFF ioctl failed */
210*7836SJohn.Forte@Sun.COM #define	L_PORT_OFFLINE_FAIL		0x20215
211*7836SJohn.Forte@Sun.COM 
212*7836SJohn.Forte@Sun.COM /* Internal Loopback or laser off ioctls not supported */
213*7836SJohn.Forte@Sun.COM #define	L_PORT_OFFLINE_UNSUPPORTED	0x20216
214*7836SJohn.Forte@Sun.COM 
215*7836SJohn.Forte@Sun.COM /* L_FCIO_NO_LOOPBACK or FCIO_CMD/FCIO_LASER_ON ioctl failed */
216*7836SJohn.Forte@Sun.COM #define	L_PORT_ONLINE_FAIL		0x20217
217*7836SJohn.Forte@Sun.COM 
218*7836SJohn.Forte@Sun.COM /* No-Loopback or laser on ioctls not supported */
219*7836SJohn.Forte@Sun.COM #define	L_PORT_ONLINE_UNSUPPORTED	0x20218
220*7836SJohn.Forte@Sun.COM 
221*7836SJohn.Forte@Sun.COM /* L_FCIO_GET_HOST_PARAMS ioctl failed */
222*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_HOST_PARAMS_FAIL	0x20219
223*7836SJohn.Forte@Sun.COM 
224*7836SJohn.Forte@Sun.COM /* Loopback mode failure */
225*7836SJohn.Forte@Sun.COM #define	L_LOOPBACK_FAILED		0x20220
226*7836SJohn.Forte@Sun.COM 
227*7836SJohn.Forte@Sun.COM /* Loopback unsupported */
228*7836SJohn.Forte@Sun.COM #define	L_LOOPBACK_UNSUPPORTED		0x20221
229*7836SJohn.Forte@Sun.COM 
230*7836SJohn.Forte@Sun.COM /* FCIO_FORCE_LIP ioctl failed on one of the paths, say, of an MPXIO device */
231*7836SJohn.Forte@Sun.COM #define	L_FCIO_FORCE_LIP_PARTIAL_FAIL	0x20222
232*7836SJohn.Forte@Sun.COM 
233*7836SJohn.Forte@Sun.COM /*
234*7836SJohn.Forte@Sun.COM  * Error definitions
235*7836SJohn.Forte@Sun.COM  * for Fabric FC driver ioctls
236*7836SJohn.Forte@Sun.COM  */
237*7836SJohn.Forte@Sun.COM /* FCP_TGT_INQUIRY ioctl failed */
238*7836SJohn.Forte@Sun.COM #define	L_FCP_TGT_INQUIRY_FAIL		0x20250
239*7836SJohn.Forte@Sun.COM 
240*7836SJohn.Forte@Sun.COM /*
241*7836SJohn.Forte@Sun.COM  * Error definitions
242*7836SJohn.Forte@Sun.COM  * for 24-bit address handling
243*7836SJohn.Forte@Sun.COM  */
244*7836SJohn.Forte@Sun.COM /* Private loop address > 0xFF found */
245*7836SJohn.Forte@Sun.COM #define	L_INVALID_PRIVATE_LOOP_ADDRESS	0x20401
246*7836SJohn.Forte@Sun.COM 
247*7836SJohn.Forte@Sun.COM /* Encountered an unexpected fibre channel topology value */
248*7836SJohn.Forte@Sun.COM #define	L_UNEXPECTED_FC_TOPOLOGY	0x20402
249*7836SJohn.Forte@Sun.COM 
250*7836SJohn.Forte@Sun.COM /* Fabric address was not found */
251*7836SJohn.Forte@Sun.COM #define	L_NO_FABRIC_ADDR_FOUND		0x20403
252*7836SJohn.Forte@Sun.COM 
253*7836SJohn.Forte@Sun.COM /* The FCIO_GET_TOPOLOGY ioctl failed */
254*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_TOPOLOGY_FAIL	0x20404
255*7836SJohn.Forte@Sun.COM 
256*7836SJohn.Forte@Sun.COM /* Invalid fabric or public loop address */
257*7836SJohn.Forte@Sun.COM #define	L_INVALID_FABRIC_ADDRESS	0x20405
258*7836SJohn.Forte@Sun.COM 
259*7836SJohn.Forte@Sun.COM /* Point to Point fibre channel topology not supported */
260*7836SJohn.Forte@Sun.COM #define	L_PT_PT_FC_TOP_NOT_SUPPORTED	0x20406
261*7836SJohn.Forte@Sun.COM 
262*7836SJohn.Forte@Sun.COM /*
263*7836SJohn.Forte@Sun.COM  * Error definitions for Tapestry SAN support.
264*7836SJohn.Forte@Sun.COM  */
265*7836SJohn.Forte@Sun.COM /* The FCIO_DEV_LOGIN ioctl failed */
266*7836SJohn.Forte@Sun.COM #define	L_FCIO_DEV_LOGIN_FAIL		0x20407
267*7836SJohn.Forte@Sun.COM 
268*7836SJohn.Forte@Sun.COM /* The FCIO_DEV_LOGOUT ioctl failed */
269*7836SJohn.Forte@Sun.COM #define	L_FCIO_DEV_LOGOUT_FAIL		0x20408
270*7836SJohn.Forte@Sun.COM 
271*7836SJohn.Forte@Sun.COM /* Operation not supported on connected topology */
272*7836SJohn.Forte@Sun.COM #define	L_OPNOSUPP_ON_TOPOLOGY		0x20409
273*7836SJohn.Forte@Sun.COM 
274*7836SJohn.Forte@Sun.COM /* Operation not supported on the path */
275*7836SJohn.Forte@Sun.COM #define	L_INVALID_PATH_TYPE		0x20410
276*7836SJohn.Forte@Sun.COM 
277*7836SJohn.Forte@Sun.COM /* FCIO_GET_STATE ioctl failed */
278*7836SJohn.Forte@Sun.COM #define	L_FCIO_GET_STATE_FAIL		0x20411
279*7836SJohn.Forte@Sun.COM 
280*7836SJohn.Forte@Sun.COM /* input WWN not found in dev list */
281*7836SJohn.Forte@Sun.COM #define	L_WWN_NOT_FOUND_IN_DEV_LIST	0x20412
282*7836SJohn.Forte@Sun.COM 
283*7836SJohn.Forte@Sun.COM /*
284*7836SJohn.Forte@Sun.COM  * Error definitions for
285*7836SJohn.Forte@Sun.COM  * g_dev_map_init related routines.
286*7836SJohn.Forte@Sun.COM  */
287*7836SJohn.Forte@Sun.COM /* input addr invalid */
288*7836SJohn.Forte@Sun.COM #define	L_INVALID_MAP_DEV_ADDR		0x20430
289*7836SJohn.Forte@Sun.COM 
290*7836SJohn.Forte@Sun.COM /* input property invalid */
291*7836SJohn.Forte@Sun.COM #define	L_INVALID_MAP_DEV_PROP_NAME	0x20431
292*7836SJohn.Forte@Sun.COM 
293*7836SJohn.Forte@Sun.COM /* input property invalid */
294*7836SJohn.Forte@Sun.COM #define	L_INVALID_MAP_DEV_PROP_TYPE	0x20432
295*7836SJohn.Forte@Sun.COM 
296*7836SJohn.Forte@Sun.COM /* input property name invalid */
297*7836SJohn.Forte@Sun.COM #define	L_INVALID_MAP_DEV_PROP		0x20433
298*7836SJohn.Forte@Sun.COM 
299*7836SJohn.Forte@Sun.COM /* device not found */
300*7836SJohn.Forte@Sun.COM #define	L_NO_SUCH_DEV_FOUND		0x20434
301*7836SJohn.Forte@Sun.COM 
302*7836SJohn.Forte@Sun.COM /* prop not found */
303*7836SJohn.Forte@Sun.COM #define	L_NO_SUCH_PROP_FOUND		0x20435
304*7836SJohn.Forte@Sun.COM 
305*7836SJohn.Forte@Sun.COM /* invalid arg found */
306*7836SJohn.Forte@Sun.COM #define	L_INVALID_ARG			0x20436
307*7836SJohn.Forte@Sun.COM 
308*7836SJohn.Forte@Sun.COM /*
309*7836SJohn.Forte@Sun.COM  * Error definitions
310*7836SJohn.Forte@Sun.COM  * for Downloading IB FW.
311*7836SJohn.Forte@Sun.COM  */
312*7836SJohn.Forte@Sun.COM /* Invalid download file checksum */
313*7836SJohn.Forte@Sun.COM #define	L_DWNLD_CHKSUM_FAILED		0x20301
314*7836SJohn.Forte@Sun.COM 
315*7836SJohn.Forte@Sun.COM /* Unable to read download exec header */
316*7836SJohn.Forte@Sun.COM #define	L_DWNLD_READ_HEADER_FAIL	0x20302
317*7836SJohn.Forte@Sun.COM 
318*7836SJohn.Forte@Sun.COM /* Number of bytes read from download file is not correct */
319*7836SJohn.Forte@Sun.COM #define	L_DWNLD_READ_INCORRECT_BYTES	0x20303
320*7836SJohn.Forte@Sun.COM 
321*7836SJohn.Forte@Sun.COM /* Wrong text segment size */
322*7836SJohn.Forte@Sun.COM #define	L_DWNLD_INVALID_TEXT_SIZE	0x20304
323*7836SJohn.Forte@Sun.COM 
324*7836SJohn.Forte@Sun.COM /* Error reading the download file */
325*7836SJohn.Forte@Sun.COM #define	L_DWNLD_READ_ERROR		0x20305
326*7836SJohn.Forte@Sun.COM 
327*7836SJohn.Forte@Sun.COM /* Bad firmware magic found in the download file */
328*7836SJohn.Forte@Sun.COM #define	L_DWNLD_BAD_FRMWARE		0x20306
329*7836SJohn.Forte@Sun.COM 
330*7836SJohn.Forte@Sun.COM /* Timeout message for the IB to be available */
331*7836SJohn.Forte@Sun.COM #define	L_DWNLD_TIMED_OUT		0x20307
332*7836SJohn.Forte@Sun.COM 
333*7836SJohn.Forte@Sun.COM /* Error with Rec Diag page 1 */
334*7836SJohn.Forte@Sun.COM #define	L_REC_DIAG_PG1			0x20600
335*7836SJohn.Forte@Sun.COM 
336*7836SJohn.Forte@Sun.COM /* Invalid transfer Length */
337*7836SJohn.Forte@Sun.COM #define	L_TRANSFER_LEN			0x20601
338*7836SJohn.Forte@Sun.COM 
339*7836SJohn.Forte@Sun.COM /* A firmware file must be specified on the command line */
340*7836SJohn.Forte@Sun.COM #define	L_REQUIRE_FILE			0x20602
341*7836SJohn.Forte@Sun.COM 
342*7836SJohn.Forte@Sun.COM 
343*7836SJohn.Forte@Sun.COM /*
344*7836SJohn.Forte@Sun.COM  * Error definitions
345*7836SJohn.Forte@Sun.COM  * for System Errors
346*7836SJohn.Forte@Sun.COM  */
347*7836SJohn.Forte@Sun.COM #define	L_MALLOC_FAILED			0x30000
348*7836SJohn.Forte@Sun.COM 
349*7836SJohn.Forte@Sun.COM #define	L_MEMCPY_FAILED			0x30001
350*7836SJohn.Forte@Sun.COM 
351*7836SJohn.Forte@Sun.COM /* Cannot get status for the given path */
352*7836SJohn.Forte@Sun.COM #define	L_LSTAT_ERROR			0x30020
353*7836SJohn.Forte@Sun.COM 
354*7836SJohn.Forte@Sun.COM /* Error reading the symbolic link */
355*7836SJohn.Forte@Sun.COM #define	L_SYMLINK_ERROR			0x30021
356*7836SJohn.Forte@Sun.COM 
357*7836SJohn.Forte@Sun.COM /* Could not convert std. time to hrs/min/sec */
358*7836SJohn.Forte@Sun.COM #define	L_LOCALTIME_ERROR		0x30022
359*7836SJohn.Forte@Sun.COM 
360*7836SJohn.Forte@Sun.COM /* select() system call failed to wait for specified time */
361*7836SJohn.Forte@Sun.COM #define	L_SELECT_ERROR			0x30023
362*7836SJohn.Forte@Sun.COM 
363*7836SJohn.Forte@Sun.COM /* uname() system call failed to get the system info. */
364*7836SJohn.Forte@Sun.COM #define	L_UNAME_FAILED			0x30024
365*7836SJohn.Forte@Sun.COM 
366*7836SJohn.Forte@Sun.COM /* Cannot get status for the given path */
367*7836SJohn.Forte@Sun.COM #define	L_FSTAT_ERROR			0x30025
368*7836SJohn.Forte@Sun.COM 
369*7836SJohn.Forte@Sun.COM /* Cannot get status for the given path */
370*7836SJohn.Forte@Sun.COM #define	L_STAT_ERROR			0x30026
371*7836SJohn.Forte@Sun.COM 
372*7836SJohn.Forte@Sun.COM /* di_init() failed to return snapshot of device tree */
373*7836SJohn.Forte@Sun.COM #define	L_DEV_SNAPSHOT_FAILED		0x30027
374*7836SJohn.Forte@Sun.COM 
375*7836SJohn.Forte@Sun.COM /* di_drv_first_node() failed to find a valid driver */
376*7836SJohn.Forte@Sun.COM #define	L_PORT_DRIVER_NOT_FOUND		0x30029
377*7836SJohn.Forte@Sun.COM 
378*7836SJohn.Forte@Sun.COM /* failed to find any device paths */
379*7836SJohn.Forte@Sun.COM #define	L_PHYS_PATH_NOT_FOUND		0x30030
380*7836SJohn.Forte@Sun.COM 
381*7836SJohn.Forte@Sun.COM /* No device identifier found  */
382*7836SJohn.Forte@Sun.COM #define	L_NO_DEVID			0x30031
383*7836SJohn.Forte@Sun.COM 
384*7836SJohn.Forte@Sun.COM /* Driver not supported */
385*7836SJohn.Forte@Sun.COM #define	L_DRIVER_NOTSUPP		0x30032
386*7836SJohn.Forte@Sun.COM 
387*7836SJohn.Forte@Sun.COM /* di_prom_init failure */
388*7836SJohn.Forte@Sun.COM #define	L_PROM_INIT_FAILED		0x30033
389*7836SJohn.Forte@Sun.COM 
390*7836SJohn.Forte@Sun.COM /*
391*7836SJohn.Forte@Sun.COM  * Error definitions
392*7836SJohn.Forte@Sun.COM  * for individual
393*7836SJohn.Forte@Sun.COM  * devices.
394*7836SJohn.Forte@Sun.COM  */
395*7836SJohn.Forte@Sun.COM /* Device busy */
396*7836SJohn.Forte@Sun.COM #define	L_DEV_BUSY			0x40000
397*7836SJohn.Forte@Sun.COM 
398*7836SJohn.Forte@Sun.COM /* Disk reserved */
399*7836SJohn.Forte@Sun.COM #define	L_DEVICE_RESERVED		0x40001
400*7836SJohn.Forte@Sun.COM 
401*7836SJohn.Forte@Sun.COM /* One or more disks in enclosure are reserved */
402*7836SJohn.Forte@Sun.COM #define	L_DISKS_RESERVED		0x40002
403*7836SJohn.Forte@Sun.COM 
404*7836SJohn.Forte@Sun.COM /* Exclusive open to a device failed. May be busy */
405*7836SJohn.Forte@Sun.COM #define	L_EXCL_OPEN_FAILED		0x40003
406*7836SJohn.Forte@Sun.COM 
407*7836SJohn.Forte@Sun.COM /* Empty slot: Device not installed */
408*7836SJohn.Forte@Sun.COM #define	L_SLOT_EMPTY			0x40100
409*7836SJohn.Forte@Sun.COM 
410*7836SJohn.Forte@Sun.COM 
411*7836SJohn.Forte@Sun.COM /*
412*7836SJohn.Forte@Sun.COM  * Error definitions
413*7836SJohn.Forte@Sun.COM  * for Devctl functions.
414*7836SJohn.Forte@Sun.COM  */
415*7836SJohn.Forte@Sun.COM /* Devctl acquire fails */
416*7836SJohn.Forte@Sun.COM #define	L_ACQUIRE_FAIL			0x40200
417*7836SJohn.Forte@Sun.COM 
418*7836SJohn.Forte@Sun.COM 
419*7836SJohn.Forte@Sun.COM /* Power off fails. Device may be busy */
420*7836SJohn.Forte@Sun.COM #define	L_POWER_OFF_FAIL_BUSY		0x40300
421*7836SJohn.Forte@Sun.COM 
422*7836SJohn.Forte@Sun.COM 
423*7836SJohn.Forte@Sun.COM /*
424*7836SJohn.Forte@Sun.COM  * Error definitions
425*7836SJohn.Forte@Sun.COM  * specific to Enclosure.
426*7836SJohn.Forte@Sun.COM  */
427*7836SJohn.Forte@Sun.COM /* Failed to change the enclosure name */
428*7836SJohn.Forte@Sun.COM #define	L_ENCL_NAME_CHANGE_FAIL		0x40400
429*7836SJohn.Forte@Sun.COM 
430*7836SJohn.Forte@Sun.COM /* Duplicate enclosure names found */
431*7836SJohn.Forte@Sun.COM #define	L_DUPLICATE_ENCLOSURES		0x40401
432*7836SJohn.Forte@Sun.COM 
433*7836SJohn.Forte@Sun.COM /* Invalid no. of dsks in SENA enclosure */
434*7836SJohn.Forte@Sun.COM #define	L_INVALID_NUM_DISKS_ENCL	0x40402
435*7836SJohn.Forte@Sun.COM 
436*7836SJohn.Forte@Sun.COM /* Path is not to a SENA ecnlosure. */
437*7836SJohn.Forte@Sun.COM #define	L_ENCL_INVALID_PATH		0x40403
438*7836SJohn.Forte@Sun.COM 
439*7836SJohn.Forte@Sun.COM /* Cannot get the box list */
440*7836SJohn.Forte@Sun.COM #define	L_NO_ENCL_LIST_FOUND		0x40404
441*7836SJohn.Forte@Sun.COM 
442*7836SJohn.Forte@Sun.COM 
443*7836SJohn.Forte@Sun.COM /*
444*7836SJohn.Forte@Sun.COM  * Error definitions
445*7836SJohn.Forte@Sun.COM  * specific to IB.
446*7836SJohn.Forte@Sun.COM  */
447*7836SJohn.Forte@Sun.COM /* No element returned from the enclosure */
448*7836SJohn.Forte@Sun.COM #define	L_IB_NO_ELEM_FOUND		0x40500
449*7836SJohn.Forte@Sun.COM 
450*7836SJohn.Forte@Sun.COM /* Invalid page code found in Receive Diag. page.   */
451*7836SJohn.Forte@Sun.COM #define	L_RD_PG_INVLD_CODE		0x40501
452*7836SJohn.Forte@Sun.COM 
453*7836SJohn.Forte@Sun.COM /* Reading Receive Diag. page failed: small buffer. */
454*7836SJohn.Forte@Sun.COM #define	L_RD_PG_MIN_BUFF		0x40502
455*7836SJohn.Forte@Sun.COM 
456*7836SJohn.Forte@Sun.COM /* Get status failed    */
457*7836SJohn.Forte@Sun.COM #define	L_GET_STATUS_FAILED		0x40600
458*7836SJohn.Forte@Sun.COM 
459*7836SJohn.Forte@Sun.COM /* Warning define. */
460*7836SJohn.Forte@Sun.COM #define	L_WARNING			0x90000
461*7836SJohn.Forte@Sun.COM 
462*7836SJohn.Forte@Sun.COM /* Persistant Rservation: Invalid transfer length */
463*7836SJohn.Forte@Sun.COM #define	L_PR_INVLD_TRNSFR_LEN		0x10001
464*7836SJohn.Forte@Sun.COM 
465*7836SJohn.Forte@Sun.COM /*
466*7836SJohn.Forte@Sun.COM  * Error definitions
467*7836SJohn.Forte@Sun.COM  * for Format Errors.
468*7836SJohn.Forte@Sun.COM  */
469*7836SJohn.Forte@Sun.COM /* box name conflicts with the SSA name */
470*7836SJohn.Forte@Sun.COM #define	L_SSA_CONFLICT			0x20013
471*7836SJohn.Forte@Sun.COM 
472*7836SJohn.Forte@Sun.COM 
473*7836SJohn.Forte@Sun.COM /*
474*7836SJohn.Forte@Sun.COM  * Error definitions
475*7836SJohn.Forte@Sun.COM  * for System Errors
476*7836SJohn.Forte@Sun.COM  */
477*7836SJohn.Forte@Sun.COM /* drvconfig fail */
478*7836SJohn.Forte@Sun.COM #define	L_DRVCONFIG_ERROR		0x31001
479*7836SJohn.Forte@Sun.COM 
480*7836SJohn.Forte@Sun.COM /* disks program failed */
481*7836SJohn.Forte@Sun.COM #define	L_DISKS_ERROR			0x31002
482*7836SJohn.Forte@Sun.COM 
483*7836SJohn.Forte@Sun.COM /* devlinks program failed */
484*7836SJohn.Forte@Sun.COM #define	L_DEVLINKS_ERROR		0x31003
485*7836SJohn.Forte@Sun.COM 
486*7836SJohn.Forte@Sun.COM /* fail to read /dev/rdsk directory. */
487*7836SJohn.Forte@Sun.COM #define	L_READ_DEV_DIR_ERROR		0x31004
488*7836SJohn.Forte@Sun.COM 
489*7836SJohn.Forte@Sun.COM /* Failed to open /dev/es/ directory. */
490*7836SJohn.Forte@Sun.COM #define	L_OPEN_ES_DIR_FAILED		0x31005
491*7836SJohn.Forte@Sun.COM 
492*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/es directory. */
493*7836SJohn.Forte@Sun.COM #define	L_LSTAT_ES_DIR_ERROR		0x31006
494*7836SJohn.Forte@Sun.COM 
495*7836SJohn.Forte@Sun.COM /* disks program failed */
496*7836SJohn.Forte@Sun.COM #define	L_TAPES_ERROR			0x31007
497*7836SJohn.Forte@Sun.COM 
498*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/rmt/directory. */
499*7836SJohn.Forte@Sun.COM #define	L_STAT_RMT_DIR_ERROR		0x31008
500*7836SJohn.Forte@Sun.COM 
501*7836SJohn.Forte@Sun.COM /* fail to get status from /dev/rmt/directory. */
502*7836SJohn.Forte@Sun.COM #define	L_STAT_DEV_DIR_ERROR		0x31009
503*7836SJohn.Forte@Sun.COM 
504*7836SJohn.Forte@Sun.COM 
505*7836SJohn.Forte@Sun.COM /*
506*7836SJohn.Forte@Sun.COM  * Error definitions
507*7836SJohn.Forte@Sun.COM  * specific to Back plane.
508*7836SJohn.Forte@Sun.COM  */
509*7836SJohn.Forte@Sun.COM /* Backplane: Busy or reserved disks found */
510*7836SJohn.Forte@Sun.COM #define	L_BP_BUSY_RESERVED		0x50000
511*7836SJohn.Forte@Sun.COM 
512*7836SJohn.Forte@Sun.COM /* Backplane: one or more busy disks found */
513*7836SJohn.Forte@Sun.COM #define	L_BP_BUSY			0x50001
514*7836SJohn.Forte@Sun.COM 
515*7836SJohn.Forte@Sun.COM /* Backplane: one or more reserved disks found */
516*7836SJohn.Forte@Sun.COM #define	L_BP_RESERVED			0x50002
517*7836SJohn.Forte@Sun.COM 
518*7836SJohn.Forte@Sun.COM /* No BP element found in the enclosure */
519*7836SJohn.Forte@Sun.COM #define	L_NO_BP_ELEM_FOUND		0x50003
520*7836SJohn.Forte@Sun.COM 
521*7836SJohn.Forte@Sun.COM /*
522*7836SJohn.Forte@Sun.COM  * Thread errors.
523*7836SJohn.Forte@Sun.COM  */
524*7836SJohn.Forte@Sun.COM #define	L_TH_CREATE			0x60000
525*7836SJohn.Forte@Sun.COM #define	L_TH_JOIN			0x60001
526*7836SJohn.Forte@Sun.COM 
527*7836SJohn.Forte@Sun.COM 
528*7836SJohn.Forte@Sun.COM 
529*7836SJohn.Forte@Sun.COM #endif /* __x86 */
530*7836SJohn.Forte@Sun.COM 
531*7836SJohn.Forte@Sun.COM 
532*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
533*7836SJohn.Forte@Sun.COM }
534*7836SJohn.Forte@Sun.COM #endif
535*7836SJohn.Forte@Sun.COM 
536*7836SJohn.Forte@Sun.COM #endif	/* _ERRORCODES_H */
537