/*
* 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 <stdio.h>
#include <string.h>
#include <strings.h>
#include <libnvpair.h>
#include "ses2_impl.h"
/*ARGSUSED*/
static int
{
/*
* Get the data and check the length.
*/
return (ses_error(ESES_INVALID_PROP,
"missing or invalid %s property", SES_CTL_PROP_UCODE_DATA));
&mode) != 0)
return (ses_error(ESES_INVALID_PROP,
"missing or invalid %s property", SES_CTL_PROP_UCODE_MODE));
return (ses_error(ESES_RANGE,
"microcode image length (%u) exceeds maximum length (%llu)",
/*
* Get the expected buffer ID, but allow the user to override it.
*/
&bufid);
if (bufid == 0xFF)
bufid = 0;
if (chunksz & 3)
return (ses_error(ESES_RANGE,
"upload chunk size %llu is not divisible by 4", chunksz));
if (len & 0x3)
else
return (-1);
len);
}
return (0);
}
static int
{
const char *name;
return (-1);
else
return (0);
}
/*ARGSUSED*/
static int
{
} else {
if (eid != 0)
"support string data for secondary subenclosures"));
return (-1);
}
return (0);
}
static int
{
/* LINTED - dummy variable for sizeof */
const char *nick;
return (-1);
return (0);
}
{
},
{
},
{
},
{
},
{
},
{
},
{
.scp_num = -1,
},
{
},
{
}
};
static int
{
return (0);
return (0);
}
int
{
return (0);
}
int
{
if (type == SES_ET_ENCLOSURE &&
return (-1);
return (0);
}