/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* Implementation of "scsi_vhci_f_sym" symmetric failover_ops.
*
* This file was historically meant for only symmetric implementation. It has
* been extended to manage SUN "supported" symmetric controllers. The supported
*/
/* Supported device table entries. */
char *symmetric_dev_table[] = {
/* " 111111" */
/* "012345670123456789012345" */
/* "|-VID--||-----PID------|" */
/* disks */
"IBM DDYFT",
"IBM IC",
"SEAGATE ST",
/* enclosures */
"SUN SENA", /* SES device */
"SUN SESS01", /* VICOM SVE box */
"SUNW SUNWGS", /* Daktari enclosure */
/* arrays */
"HITACHI OPEN", /* Hitachi storage */
"SUN PSX1000", /* Pirus Matterhorn */
"SUN SE6920", /* Pirus */
"SUN SE6940", /* DSP - Nauset */
"SUN StorEdge 3510", /* Minnow FC */
"SUN StorEdge 3511", /* Minnow SATA RAID */
"SUN StorageTek 6920", /* DSP */
"SUN StorageTek 6940", /* DSP - Nauset */
"SUN StorageTek NAS", /* StorageTek NAS */
"SUN MRA300_R", /* Shamrock - Controller */
"SUN MRA300_E", /* Shamrock - Expansion */
"STEC ZeusIOPs", /* Zeus SAS SSD */
};
/* Failover module plumbing. */
/* ARGSUSED */
static int
void **ctpriv)
{
char **dt;
return (SFO_DEVICE_PROBE_VHCI);
/*
* No match, check for generic Sun supported disks:
*
* "|-VID--||-----PID------|"
* "012345670123456789012345"
* ".................SUN..G."
* ".................SUN..T."
* ".................SUN...G"
* ".................SUN...T"
*/
return (SFO_DEVICE_PROBE_VHCI);
}
}
return (SFO_DEVICE_PROBE_VHCI);
}
return (SFO_DEVICE_PROBE_PHCI);
}
/* ARGSUSED */
static void
{
/*
* NOP for symmetric
*/
}
/* ARGSUSED */
static int
{
return (0);
}
/* ARGSUSED */
static int
void *ctpriv)
{
return (0);
}
/* ARGSUSED */
static int
{
opinfo->opinfo_xlf_capable = 0;
return (0);
}
/* ARGSUSED */
static int
{
return (1);
}
/* ARGSUSED */
static int
{
return (SCSI_SENSE_NOFAILOVER);
}
/* ARGSUSED */
static int
{
*nxt = PCLASS_PRIMARY;
return (0);
return (ENOENT);
} else {
return (EINVAL);
}
}