/*
* 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
*/
/*
*/
#include <stddef.h>
#include <string.h>
#include <strings.h>
#include <libnvpair.h>
#include <scsi/libses_plugin.h>
/*ARGSUSED*/
static int
{
int nverr;
return (0);
return (0);
/*
* The offset read from the Sun Feature Block needs to be adjusted
* so that the difference in the sizes of the Enclosure
* Descriptor and the INQUIRY data format is accounted for.
*/
(sizeof (ses2_ed_impl_t) - 1);
cid_len);
}
}
if (revision >= 104) {
}
if (revision >= 105) {
if (sfbip->sfbi_fw_upload_max_chunk_sz == 0)
chunk = 512;
chunk = 65536;
else
}
/*
* If this is a subchassis, it will have a subchassis index field
* with a value other than 0. See SPMS-1r111 4.1.3.1. If not, we
* will see 0 and will not create the subchassis member at all; note
* that this is backward-compatible with pre-111 implementations that
* treated this as a reserved field. No such implementation contains
* a subchassis.
*/
sfbip->sfbi_subchassis_index != 0) {
}
/*
* An enclosure that is managed by an external diagnostic engine
* for fault diagnostics sets the sfbi_dem bit keeps the status of its
* element to 'Unsupported(0h)' regardless that an error is detected or
* not. The service LED of a component in such enclosure may or may
* not be managed by the host FMA.
*
* An enclosure that self reports out-of-range sensor reading errors
* sets the sfbi_ssr bit.
*
* See SPMS-1r119 4.1.3.1.
*/
if (revision >= 119) {
}
return (0);
}
int
{
int err;
return (err);
return (err);
}
return (0);
}