fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common definitions for Storage Utilities libraries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This header file contains the error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * to handle the SCSI, path format, Device, Fibre Channel
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * ioctl, Enclosure, and IB specific Errors. It also
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * contains physical names for device paths.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Define for physical name of children of fcp
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * controller/nexus node postfix strings
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I18N message number ranges
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This file: 15500 - 15999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Shared common messages: 1 - 1999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * All error numbers below this base value
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * are assumed to be UNIX error codes.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * SCSI Errors
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* SCSI error */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Receive Diagnostics: Transfer length is not word aligned */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No disk element found in Receive diag. page */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Illegal mode sense page length */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid number of ENV. SENSE pages */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Buffer is *too* small to hold more than 8 pages */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Scsi_vhci errors */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Format Errors.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Failed to open a given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid password length. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Given disk physical path is not valid. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid name id found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid WWN format found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No WWN found in the disk's physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No Loop address found in the phys path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid port number found in the phys path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid LED request */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid path format */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to get the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to get the ses path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No "/" found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No "@" found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid slot (slot < 0 or slot > 10). */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No valid path to a device */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No disk devices found in /dev/rdsk directory */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No tape devices found in /dev/rmt directory */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device's Node WWN not found in the WWN list. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device's Node WWN not found in the Box list. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Null WWN list found. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No devices found. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* function arg error in wwn_list process */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* WWN property not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No driver nodes found for requested driver */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* ULP error on device(s) */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for FC Loop (FC4 devices).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid loop map found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* SFIOCGMAP ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GETMAP ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_LINKSTATUS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GETMAP: Invalid # of entries */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_FORCE_LIP ioctl failed. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error definitions for FC devices */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_RESET_LINK ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_FCODE_REV_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_FW_REV_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_DEV_LIST returns invalid dev. counts */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_NUM_DEVS_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_DEV_LIST_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_LINK_STATUS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_LOOPBACK_INTERNAL or FCIO_CMD/FCIO_LASER_OFF ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Internal Loopback or laser off ioctls not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_NO_LOOPBACK or FCIO_CMD/FCIO_LASER_ON ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No-Loopback or laser on ioctls not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_HOST_PARAMS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Loopback mode failure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Loopback unsupported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_FORCE_LIP ioctl failed on one of the paths, say, of an MPXIO device */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Fabric FC driver ioctls
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCP_TGT_INQUIRY ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for 24-bit address handling
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Private loop address > 0xFF found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Encountered an unexpected fibre channel topology value */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Fabric address was not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_GET_TOPOLOGY ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid fabric or public loop address */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Point to Point fibre channel topology not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions for Tapestry SAN support.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_DEV_LOGIN ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_DEV_LOGOUT ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Operation not supported on connected topology */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Operation not supported on the path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_STATE ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input WWN not found in dev list */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions for
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * g_dev_map_init related routines.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input addr invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property name invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* device not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* prop not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* invalid arg found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Downloading IB FW.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid download file checksum */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Unable to read download exec header */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Number of bytes read from download file is not correct */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Wrong text segment size */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error reading the download file */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Bad firmware magic found in the download file */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Timeout message for the IB to be available */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error with Rec Diag page 1 */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid transfer Length */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* A firmware file must be specified on the command line */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for System Errors
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error reading the symbolic link */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Could not convert std. time to hrs/min/sec */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* select() system call failed to wait for specified time */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* uname() system call failed to get the system info. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_init() failed to return snapshot of device tree */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_drv_first_node() failed to find a valid driver */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to find any device paths */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No device identifier found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Driver not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_prom_init failure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for individual
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Disk reserved */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* One or more disks in enclosure are reserved */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Exclusive open to a device failed. May be busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Empty slot: Device not installed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Devctl functions.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Devctl acquire fails */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Power off fails. Device may be busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * specific to Enclosure.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Failed to change the enclosure name */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Duplicate enclosure names found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid no. of dsks in SENA enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Path is not to a SENA ecnlosure. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get the box list */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * specific to IB.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No element returned from the enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid page code found in Receive Diag. page. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Reading Receive Diag. page failed: small buffer. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Get status failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Warning define. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define MSGSTR(Num, Str) catgets(l_catd, L_SET1, Num, Str)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _STGCOM_H */