/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/mc_intel.h>
#include "nb_log.h"
#include "rank.h"
#include "dimm_phys.h"
#include "nb5000.h"
static int
{
int i;
FM_FMRI_HC_SPECIFIC_OFFSET, &offset) != 0) ||
return (0);
for (i = 0; i < MC_UNUM_NDIMM; i++)
for (i = 0; i < npr; i++) {
long v;
return (0);
unump->unum_board = (int)v;
unump->unum_dimms[0] = (int)v;
}
return (1);
}
/*ARGSUSED*/
static cmi_errno_t
{
int i;
int last;
for (i = 0; i < last; i++) {
break;
}
if (i < last) {
rt = CMI_SUCCESS;
}
return (rt);
}
/*ARGSUSED*/
static cmi_errno_t
{
int num_ranks_per_branch;
return (CMI_SUCCESS);
}
if (&dimm_getphys) {
if (pa >= MAXPHYS_ADDR)
return (CMIERR_MC_NOADDR);
} else {
return (CMIERR_MC_NOADDR);
}
return (CMI_SUCCESS);
}
/* max number of ranks per branch */
return (CMI_SUCCESS);
}
void
{
int num_ranks_per_branch;
/* max number of ranks per branch */
}
void
{
int num_ranks_per_branch;
/* max number of ranks per branch */
rank_base = 0;
}
void
{
int num_ranks_per_branch;
/* max number of ranks per branch */
}
nb_error_trap /* cmi_mc_logout */
};
/*ARGSUSED*/
int
{
return (CMI_HDL_WALK_NEXT);
}