machcpuvar.h revision 95c0a3c85cc8a224af0bc2bc1f7400be641f43fc
/*
* 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.
*/
#ifndef _SYS_MACHCPUVAR_H
#define _SYS_MACHCPUVAR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/inttypes.h>
#include <sys/xc_levels.h>
#include <sys/segments.h>
#include <sys/rm_platter.h>
#ifndef _ASM
/*
* Machine specific fields of the cpu struct
*
* Note: This is kinda kludgy but seems to be the best
* of our alternatives.
*/
typedef void *cpu_pri_lev_t;
struct cpuid_info;
struct cmi;
struct machcpu {
/* define all the x_call stuff */
volatile int xc_pend[X_CALL_LEVELS];
volatile int xc_wait[X_CALL_LEVELS];
volatile int xc_ack[X_CALL_LEVELS];
volatile int xc_state[X_CALL_LEVELS];
volatile int xc_retval[X_CALL_LEVELS];
int mcpu_nodeid; /* node-id */
int mcpu_pri; /* CPU priority */
/* data for setting priority */
/* level */
struct hat_cpu_info *mcpu_hat_info;
volatile ulong_t mcpu_tlb_info;
/* i86 hardware table addresses that cannot be shared */
struct softint mcpu_softinfo;
struct cpuid_info *mcpu_cpi;
void *mcpu_cmidata;
#if defined(__amd64)
#endif
struct vcpu_info *mcpu_vcpu_info;
};
#endif /* _ASM */
/* Please DON'T add any more of this namespace-poisoning sewage here */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MACHCPUVAR_H */