/*
* 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
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <cmd_mem.h>
#include <cmd_bank.h>
#include <cmd_dimm.h>
#include <cmd.h>
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <fcntl.h>
#include <unistd.h>
void
{
}
void
{
continue;
return;
}
}
static void
{
}
}
static void
{
}
}
nvlist_t *
{
return (bank->bank_asru_nvl);
}
nvlist_t *
{
}
static void
{
if (destroy)
}
void
{
}
static cmd_bank_t *
{
return (bank);
}
return (NULL);
}
{
const char *unum;
return (NULL);
}
return (NULL);
}
unum);
return (bank);
}
{
const char *unum;
return (NULL);
}
return (NULL);
}
return (bank);
}
static cmd_bank_t *
{
if (oldsz != sizeof (cmd_bank_0_t)) {
"version 0 state (%u bytes).\n", sizeof (cmd_bank_0_t));
}
return (new);
}
static cmd_bank_t *
{
if (psz != sizeof (cmd_bank_pers_t)) {
"version 1 state (%u bytes).\n", sizeof (cmd_bank_pers_t));
}
return (bank);
}
void *
{
break;
}
int migrated = 0;
"not exist in saved state\n",
} else if (banksz > CMD_BANK_MAXSIZE ||
banksz < CMD_BANK_MINSIZE) {
"is out of bounds (is %u bytes, max %u, min %u)\n",
}
}
bank->bank_version);
if (CMD_BANK_VERSIONED(bank)) {
switch (bank->bank_version) {
case CMD_BANK_VERSION_1:
banksz);
break;
default:
"for bank state referenced by case %s.\n",
break;
}
} else {
migrated = 1;
}
if (migrated) {
}
}
switch (ptr->ptr_subtype) {
case BUG_PTR_BANK_CASE:
/*FALLTHROUGH*/
case CMD_PTR_BANK_CASE:
break;
default:
}
return (bank);
}
void
{
}
}
void
{
sizeof (cmd_bank_pers_t))
/* No need to rewrite the FMRIs in the bank - they don't change */
sizeof (cmd_bank_pers_t));
}
void
{
}
void
{
}