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