cpu_module_ms_impl.h revision 491f61a1e1c1fc54a47bbcf53dbbbe1293b93b27
/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CPU_MODULE_MS_IMPL_H
#define _CPU_MODULE_MS_IMPL_H
#include <sys/cpu_module_ms.h>
#include <sys/x86_archext.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef uint32_t cms_api_ver_t;
#define _CMS_API_VERSION_MAGIC 0xc5500000
#define _CMS_API_VERSION(n) (_CMS_API_VERSION_MAGIC | (n))
#define CMS_API_VERSION_CHKMAGIC(v) \
(((v) & 0xfff00000) == _CMS_API_VERSION_MAGIC)
#define CMS_API_VERSION_TOPRINT(v) ((v) & 0x000fffff)
#define CMS_API_VERSION_0 _CMS_API_VERSION(0)
#define CMS_API_VERSION CMS_API_VERSION_0
typedef struct cms_ops {
void (*cms_post_startup)(cmi_hdl_t);
void (*cms_post_mpstartup)(cmi_hdl_t);
void (*cms_mca_init)(cmi_hdl_t, int);
uint64_t, void *);
const char **);
nv_alloc_t *);
} cms_ops_t;
#ifdef __cplusplus
}
#endif
#endif /* _CPU_MODULE_MS_IMPL_H */