/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CPU_SGNBLK_DEFS_H
#define _CPU_SGNBLK_DEFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASM
#endif /* _ASM */
/*
* Build a CPU signature given a signature, state and sub-state.
*/
/*
* Definition of a CPU signature.
*/
typedef union {
struct cpu_signature {
} state_t;
} sig_state_t;
/*
* CPU Signatures - the signature defines the entity that the CPU is executing.
* This entity can be the OS, OPB or the debugger. This signature consists of
* two ASCII characters.
*/
/*
* CPU State - the state identifies what the CPU is doing.
* The states should be defined in an increasing, linear
* manner.
*/
#define SIGST_NONE 0
/*
* CPU sub-state - the sub-state is used to further qualify
* the state.
*/
#define SIGSUBST_NULL 0
#ifdef _KERNEL
{ \
if (cpu_sgn_func) \
}
#ifdef _STARFIRE
extern void register_bbus_intr();
extern void cpu_sgn_mapin(int);
extern void cpu_sgn_mapout(int);
extern int cpu_sgn_exists(int);
extern ushort_t get_cpu_sgn(int);
extern uchar_t get_cpu_sgn_state(int);
#else
#define REGISTER_BBUS_INTR()
#endif /* _STARFIRE */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _CPU_SGNBLK_DEFS_H */