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