fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
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 *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
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 *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common definitions for Storage Utilities libraries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifndef _STGCOM_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define _STGCOM_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern "C" {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
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 */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Define for physical name of children of fcp
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define FC_CTLR ":devctl"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DRV_NAME_SD "sd@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DRV_NAME_SSD "ssd@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DRV_NAME_ST "st@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLSH_DRV_NAME_SD "/sd@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLSH_DRV_NAME_SSD "/ssd@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLSH_DRV_NAME_ST "/st@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DRV_PART_NAME ",0:c,raw"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SES_NAME "ses@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLSH_SES_NAME "/ses@"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLASH_SES "/ses"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SES_DIR "/dev/es"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DEV_DSK_DIR "/dev/dsk"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DEV_RDIR "/dev/rdsk"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DEV_TAPE_DIR "/dev/rmt"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_ARCH_4M "sun4m"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define VHCI_NODE "/devices/scsi_vhci:devctl"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SCSI_VHCI "/devices/scsi_vhci/"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define SLSH_VHCI_DISK "/ssd@g"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * controller/nexus node postfix strings
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define CTLR_POSTFIX ":ctlr"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define DEVCTL_POSTFIX ":devctl"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I18N message number ranges
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This file: 15500 - 15999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Shared common messages: 1 - 1999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * All error numbers below this base value
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * are assumed to be UNIX error codes.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_BASE L_SCSI_ERROR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * SCSI Errors
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* SCSI error */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_ERROR 0x10000
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Receive Diagnostics: Transfer length is not word aligned */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_RD_INVLD_TRNSFR_LEN 0x11002
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No disk element found in Receive diag. page */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_RD_NO_DISK_ELEM 0x11003
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Illegal mode sense page length */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_ILLEGAL_MODE_SENSE_PAGE 0x11004
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid number of ENV. SENSE pages */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_NO_OF_ENVSEN_PAGES 0x11005
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Buffer is *too* small to hold more than 8 pages */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_BUF_LEN 0x11006
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Scsi_vhci errors */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_VHCI_ERROR 0x11007
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_VHCI_ALREADY_ACTIVE 0x11008
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_VHCI_NO_STANDBY 0x11009
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_VHCI_FAILOVER_NOTSUP 0x1100a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SCSI_VHCI_FAILOVER_BUSY 0x1100b
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Format Errors.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_PATH 0x20200
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Failed to open a given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_OPEN_PATH_FAIL 0x20001
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid password length. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_PASSWORD_LEN 0x20002
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Given disk physical path is not valid. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_PHYS_PATH_TO_DISK 0x20004
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid name id found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_ID_FOUND 0x20005
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid WWN format found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_WWN_FORMAT 0x20006
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No WWN found in the disk's physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_WWN_FOUND_IN_PATH 0x20007
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No Loop address found in the phys path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_LOOP_ADDRS_FOUND 0x20008
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid port number found in the phys path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_PORT_IN_PATH 0x20009
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid LED request */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_LED_RQST 0x20010
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid path format */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_PATH_FORMAT 0x20011
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to get the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_PHYS_PATH 0x20012
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to get the ses path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_SES_PATH 0x20015
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No "/" found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_PATH_NO_SLASH_FND 0x20100
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No "@" found in the physical path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVLD_PATH_NO_ATSIGN_FND 0x20101
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid slot (slot < 0 or slot > 10). */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_SLOT 0x20102
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No valid path to a device */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_VALID_PATH 0x20103
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No disk devices found in /dev/rdsk directory */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_DISK_DEV_FOUND 0x20104
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No tape devices found in /dev/rmt directory */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_TAPE_DEV_FOUND 0x20105
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device's Node WWN not found in the WWN list. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_NODE_WWN_IN_WWNLIST 0x20106
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device's Node WWN not found in the Box list. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_NODE_WWN_IN_BOXLIST 0x20107
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Null WWN list found. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NULL_WWN_LIST 0x20108
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No devices found. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_DEVICES_FOUND 0x20109
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* function arg error in wwn_list process */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PROC_WWN_ARG_ERROR 0x20110
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* WWN property not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_WWN_PROP_FOUND 0x20111
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No driver nodes found for requested driver */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_DRIVER_NODES_FOUND 0x20112
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* ULP error on device(s) */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_GET_DEV_LIST_ULP_FAILURE 0x20150
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for FC Loop (FC4 devices).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid loop map found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_LOOP_MAP 0x20202
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* SFIOCGMAP ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SFIOCGMAP_IOCTL_FAIL 0x20203
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GETMAP ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GETMAP_IOCTL_FAIL 0x20204
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_LINKSTATUS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_LINKSTATUS_FAILED 0x20205
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GETMAP: Invalid # of entries */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIOGETMAP_INVLD_LEN 0x20206
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_FORCE_LIP ioctl failed. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_FORCE_LIP_FAIL 0x20207
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error definitions for FC devices */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_RESET_LINK ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_RESET_LINK_FAIL 0x20208
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_FCODE_REV_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_FCODE_REV_FAIL 0x20209
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_FW_REV_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_FW_REV_FAIL 0x20210
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_DEV_LIST returns invalid dev. counts */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_DEVICE_COUNT 0x20211
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_NUM_DEVS_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_NUM_DEVS_FAIL 0x20212
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_DEV_LIST_FAIL ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_DEV_LIST_FAIL 0x20213
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_LINK_STATUS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_LINK_STATUS_FAIL 0x20214
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_LOOPBACK_INTERNAL or FCIO_CMD/FCIO_LASER_OFF ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PORT_OFFLINE_FAIL 0x20215
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Internal Loopback or laser off ioctls not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PORT_OFFLINE_UNSUPPORTED 0x20216
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_NO_LOOPBACK or FCIO_CMD/FCIO_LASER_ON ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PORT_ONLINE_FAIL 0x20217
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No-Loopback or laser on ioctls not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PORT_ONLINE_UNSUPPORTED 0x20218
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* L_FCIO_GET_HOST_PARAMS ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_HOST_PARAMS_FAIL 0x20219
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Loopback mode failure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_LOOPBACK_FAILED 0x20220
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Loopback unsupported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_LOOPBACK_UNSUPPORTED 0x20221
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_FORCE_LIP ioctl failed on one of the paths, say, of an MPXIO device */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_FORCE_LIP_PARTIAL_FAIL 0x20222
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Fabric FC driver ioctls
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCP_TGT_INQUIRY ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCP_TGT_INQUIRY_FAIL 0x20250
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for 24-bit address handling
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Private loop address > 0xFF found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_PRIVATE_LOOP_ADDRESS 0x20401
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Encountered an unexpected fibre channel topology value */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_UNEXPECTED_FC_TOPOLOGY 0x20402
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Fabric address was not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_FABRIC_ADDR_FOUND 0x20403
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_GET_TOPOLOGY ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_TOPOLOGY_FAIL 0x20404
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid fabric or public loop address */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_FABRIC_ADDRESS 0x20405
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Point to Point fibre channel topology not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PT_PT_FC_TOP_NOT_SUPPORTED 0x20406
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions for Tapestry SAN support.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_DEV_LOGIN ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_DEV_LOGIN_FAIL 0x20407
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* The FCIO_DEV_LOGOUT ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_DEV_LOGOUT_FAIL 0x20408
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Operation not supported on connected topology */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_OPNOSUPP_ON_TOPOLOGY 0x20409
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Operation not supported on the path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_PATH_TYPE 0x20410
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* FCIO_GET_STATE ioctl failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FCIO_GET_STATE_FAIL 0x20411
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input WWN not found in dev list */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_WWN_NOT_FOUND_IN_DEV_LIST 0x20412
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions for
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * g_dev_map_init related routines.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input addr invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_MAP_DEV_ADDR 0x20430
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_MAP_DEV_PROP_NAME 0x20431
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_MAP_DEV_PROP_TYPE 0x20432
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* input property name invalid */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_MAP_DEV_PROP 0x20433
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* device not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_SUCH_DEV_FOUND 0x20434
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* prop not found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_SUCH_PROP_FOUND 0x20435
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* invalid arg found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_ARG 0x20436
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Downloading IB FW.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid download file checksum */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_CHKSUM_FAILED 0x20301
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Unable to read download exec header */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_READ_HEADER_FAIL 0x20302
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Number of bytes read from download file is not correct */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_READ_INCORRECT_BYTES 0x20303
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Wrong text segment size */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_INVALID_TEXT_SIZE 0x20304
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error reading the download file */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_READ_ERROR 0x20305
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Bad firmware magic found in the download file */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_BAD_FRMWARE 0x20306
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Timeout message for the IB to be available */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DWNLD_TIMED_OUT 0x20307
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error with Rec Diag page 1 */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_REC_DIAG_PG1 0x20600
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid transfer Length */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_TRANSFER_LEN 0x20601
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* A firmware file must be specified on the command line */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_REQUIRE_FILE 0x20602
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for System Errors
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_MALLOC_FAILED 0x30000
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_MEMCPY_FAILED 0x30001
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_LSTAT_ERROR 0x30020
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Error reading the symbolic link */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SYMLINK_ERROR 0x30021
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Could not convert std. time to hrs/min/sec */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_LOCALTIME_ERROR 0x30022
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* select() system call failed to wait for specified time */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SELECT_ERROR 0x30023
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* uname() system call failed to get the system info. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_UNAME_FAILED 0x30024
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_FSTAT_ERROR 0x30025
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get status for the given path */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_STAT_ERROR 0x30026
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_init() failed to return snapshot of device tree */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DEV_SNAPSHOT_FAILED 0x30027
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_drv_first_node() failed to find a valid driver */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PORT_DRIVER_NOT_FOUND 0x30029
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* failed to find any device paths */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PHYS_PATH_NOT_FOUND 0x30030
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No device identifier found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_DEVID 0x30031
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Driver not supported */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DRIVER_NOTSUPP 0x30032
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* di_prom_init failure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_PROM_INIT_FAILED 0x30033
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for individual
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * devices.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Device busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DEV_BUSY 0x40000
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Disk reserved */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DEVICE_RESERVED 0x40001
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* One or more disks in enclosure are reserved */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DISKS_RESERVED 0x40002
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Exclusive open to a device failed. May be busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_EXCL_OPEN_FAILED 0x40003
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Empty slot: Device not installed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SLOT_EMPTY 0x40100
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * for Devctl functions.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Devctl acquire fails */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_ACQUIRE_FAIL 0x40200
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Power off fails. Device may be busy */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_POWER_OFF_FAIL_BUSY 0x40300
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * specific to Enclosure.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Failed to change the enclosure name */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_ENCL_NAME_CHANGE_FAIL 0x40400
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Duplicate enclosure names found */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_DUPLICATE_ENCLOSURES 0x40401
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid no. of dsks in SENA enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_INVALID_NUM_DISKS_ENCL 0x40402
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Path is not to a SENA ecnlosure. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_ENCL_INVALID_PATH 0x40403
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Cannot get the box list */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_NO_ENCL_LIST_FOUND 0x40404
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Error definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * specific to IB.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* No element returned from the enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_IB_NO_ELEM_FOUND 0x40500
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Invalid page code found in Receive Diag. page. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_RD_PG_INVLD_CODE 0x40501
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Reading Receive Diag. page failed: small buffer. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_RD_PG_MIN_BUFF 0x40502
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Get status failed */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_GET_STATUS_FAILED 0x40600
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Warning define. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_WARNING 0x90000
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * For i18n
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <nl_types.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteextern nl_catd l_catd;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define L_SET1 1 /* catalog set number */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define MSGSTR(Num, Str) catgets(l_catd, L_SET1, Num, Str)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#ifdef __cplusplus
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _STGCOM_H */