machcpuvar.h revision 9d7041eec59fd2059033c58e9e5427468f4446e8
/*
* 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 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"
#include <sys/machparam.h>
#include <sys/privregs.h>
#include <sys/machlock.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ASM
/*
* CPU state ptl1_panic save.
*/
typedef struct ptl1_trapregs {
typedef struct ptl1_regs {
} ptl1_regs_t;
typedef struct ptl1_state {
} ptl1_state_t;
/*
* Machine specific fields of the cpu struct
*/
struct machcpu {
int mutex_ready;
int in_prom;
int tl1_hdlr;
int intr_pool_added; /* add'l intr pool */
/*
* The cpu module allocates a private data structure for the
* E$ data, which is needed for the specific cpu type.
*/
void *cpu_private; /* ptr to cpu private data */
/*
* intrstat[][] is used to keep track of ticks used at a given pil
* level. intrstat[pil][0] is cumulative and exported via kstats.
* intrstat[pil][1] is used in intr_get_time() and is private.
* 2-dimensional array improves cache locality.
*/
};
/*
* Macro to access the "cpu private" data structure.
*/
/*
* The OpenBoot Standalone Interface supplies the kernel with
*/
#define MAXSYSNAME 20
/*
* msram field will be set with ECACHE_CPU_MIRROR if we are on
* mirrored sram module.
*/
/*
* A CPU FRU FMRI string minus the unum component.
*/
struct cpu_node {
char name[MAXSYSNAME];
int implementation;
int version;
int portid;
union {
int dummy;
} u_info;
int ecache_size;
int ecache_linesize;
int ecache_associativity;
int ecache_setsize;
int msram;
};
#endif /* _ASM */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_MACHCPUVAR_H */