cmd_opl.h revision 14ea4bb737263733ad80a36b4f73f681c30a6b45
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CMD_OPL_H
#define _CMD_OPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <cmd.h>
#include <cmd_cpu.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct opl_cpu {
} opl_cpu_t;
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
nvlist_t *, const char *, cmd_errcl_t);
nvlist_t *, const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
const char *, cmd_errcl_t);
uint8_t);
nvlist_t *, int, ...);
extern cmd_list_t opl_cpu_list;
#define CPU_EREPORT_STRING "ereport.cpu.SPARC64-VI."
#define OPL_CHASSIS_DEFAULT "0"
FM_FMRI_LEGACY_HC"=/CMU"
#define STR_BUFLEN 32
#define NPAIRS 5
/*
* Mask for getting the fault address
* from MARKEDID in UBC Memory UE
* Log Register (Oberon)
*/
#define UBC_UE_ADR_MASK 0x00007FFFFFFFFFFFULL
/*
*/
#define CMD_OPL_HDLR_CPU 1
#define CMD_OPL_HDLR_IO 2
/*
* Macors for dealing with "core", "chip"
* or "strand" related operations.
*/
#define IS_STRAND 0
#define IS_CORE 1
#define IS_CHIP 2
#define STRAND_UPPER_BOUND 1
#define CORE_UPPER_BOUND 1
#define COREID_SHIFT 1
#define CHIPID_SHIFT 3
#define STRAND_MASK 1
#define CHIP_OR_CORE_MASK 3
/*
* This is to reference the Oberon
* UBC memory UE log register payload.
*/
#define OBERON_UBC_MUE "ubc-mue"
#ifdef __cplusplus
}
#endif
#endif /* _CMD_OPL_H */