/* * 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 * or http://www.opensolaris.org/os/licensing. * 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 2005 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 #include #include #include #include #include #include #include #ifndef _ASM /* * Machine specific fields of the cpu struct * defined in common/sys/cpuvar.h. * * Note: This is kinda kludgy but seems to be the best * of our alternatives. */ typedef void *cpu_pri_lev_t; struct cpuid_info; /* (deliberately not visible here) */ 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 */ cpu_pri_lev_t mcpu_pri_data; /* ptr to machine dependent */ /* data for setting priority */ /* level */ uint_t mcpu_mask; /* bitmask for this cpu (1<