authamd.h revision 5667185bc023b9742cb2480659d7673fa9ac8050
/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _AUTHAMD_H
#define _AUTHAMD_H
#include <sys/cpu_module_ms_impl.h>
#ifdef __cplusplus
extern "C" {
#endif
#define AUTHAMD_FAMILY_6 0x6
#define AUTHAMD_FAMILY_F 0xf
#define AUTHAMD_FAMILY_10 0x10
#define AUTHAMD_SYNDTYPE_64_8 0x0
#define AUTHAMD_SYNDTYPE_128_16 0x1
typedef struct authamd_data authamd_data_t;
typedef struct authamd_error_disp {
const char *aad_subclass;
const char *aad_leafclass;
/*
* Model-specific logout structure.
*/
#pragma pack(1)
typedef struct authamd_logout {
#pragma pack()
/*
* Per node shared state
*/
struct authamd_nodeshared {
char *ans_eccsymsz; /* DRAM ChipKill ECC Symbol Size */
};
enum authamd_cfgonce_bitnum {
};
/*
* Per-CPU model-specific state
*/
struct authamd_data {
struct authamd_nodeshared *amd_shared;
};
#ifdef _KERNEL
/*
* Our cms_ops operations and function prototypes for all non-NULL members.
*/
extern int authamd_init(cmi_hdl_t, void **);
extern void authamd_mca_init(cmi_hdl_t, int);
uint64_t, void *);
uint64_t, void *);
const char **);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _AUTHAMD_H */