/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* OPL platform specific functions for
*/
#include <cmd_opl.h>
#include <string.h>
#include <errno.h>
#include <cmd_mem.h>
#include <sys/int_const.h>
{
switch (flt_type) {
case IS_STRAND:
break;
case IS_CORE:
/*
* Currently there are only two strands per core.
* Xor the least significant bit to get the sibling strand
*/
for (s = 0; s <= STRAND_UPPER_BOUND; s++) {
if (s == 0) {
} else {
}
}
break;
case IS_CHIP:
/*
* within a chip and max # of strands within a core.
*/
for (c = 0; c <= CORE_UPPER_BOUND; c++) {
for (s = 0; s <= STRAND_UPPER_BOUND; s++) {
c << COREID_SHIFT | s;
if (c == 0 && s == 0) {
} else
}
}
break;
default:
break;
}
return (list_head);
}
void
{
"Enter opl_cpulist_free for cpulist %llx\n", cpu_list);
}
}
/*
* Based on "avg" function of eversholt
*/
{
unsigned long long s = sum * 10;
}
/*
* This function builds the resource fmri page based on
* the kstat "cpu_fru" of the faulted cpu and cpuid
* using the "hc" scheme.
*/
nvlist_t *
{
int cmu_num;
return (NULL);
return (NULL);
}
/*
* get the CMU # from cpu_fru for each model
* exit with an error if we can not find one.
*/
sizeof (OPL_CPU_FRU_FMRI_DC) - 1) == 0) {
sizeof (OPL_CPU_FRU_FMRI_FF1) - 1) == 0) {
cmu_num /= 2;
sizeof (OPL_CPU_FRU_FMRI_FF2) - 1) == 0) {
cmu_num /= 2;
sizeof (OPL_CPU_FRU_FMRI_IKKAKU) - 1) == 0) {
cmu_num = 0;
} else {
return (NULL);
}
return (NULL);
}
return (fmri);
}
nvlist_t *
{
char *unum;
char **serids;
return (NULL);
return (NULL);
&nserids)) == 0) {
return (NULL);
}
}
return (fmri);
}