17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*20c794b3Sgavinm  * Common Development and Distribution License (the "License").
6*20c794b3Sgavinm  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207aec1d6eScindi  *
21*20c794b3Sgavinm  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
227c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
237c478bd9Sstevel@tonic-gate  */
247c478bd9Sstevel@tonic-gate 
257aec1d6eScindi #ifndef _AO_MCA_DISP_H
267aec1d6eScindi #define	_AO_MCA_DISP_H
277c478bd9Sstevel@tonic-gate 
287aec1d6eScindi #include <sys/types.h>
297aec1d6eScindi #include <sys/mca_amd.h>
307aec1d6eScindi #include <sys/fm/cpu/AMD.h>
317c478bd9Sstevel@tonic-gate 
32161b16f0Scindi #include <ao.h>
33822fb41dStsien 
347aec1d6eScindi #ifdef __cplusplus
357aec1d6eScindi extern "C" {
367aec1d6eScindi #endif
37822fb41dStsien 
387aec1d6eScindi #define	AO_MCA_PP_BIT_SRC	0x1
39*20c794b3Sgavinm #define	AO_MCA_PP_BIT_RES	0x2
407aec1d6eScindi #define	AO_MCA_PP_BIT_OBS	0x4
417aec1d6eScindi #define	AO_MCA_PP_BIT_GEN	0x8
42822fb41dStsien 
437aec1d6eScindi #define	AO_MCA_II_BIT_MEM	0x1
447aec1d6eScindi #define	AO_MCA_II_BIT_IO	0x2
457aec1d6eScindi #define	AO_MCA_II_BIT_GEN	0x4
46822fb41dStsien 
47*20c794b3Sgavinm #define	AO_MCA_R4_BIT_ERR	0x001
487aec1d6eScindi #define	AO_MCA_R4_BIT_RD	0x002
497aec1d6eScindi #define	AO_MCA_R4_BIT_WR	0x004
507aec1d6eScindi #define	AO_MCA_R4_BIT_DRD	0x008
517aec1d6eScindi #define	AO_MCA_R4_BIT_DWD	0x010
527aec1d6eScindi #define	AO_MCA_R4_BIT_DWR	0x020
537aec1d6eScindi #define	AO_MCA_R4_BIT_IRD	0x040
547aec1d6eScindi #define	AO_MCA_R4_BIT_PREFETCH	0x080
557aec1d6eScindi #define	AO_MCA_R4_BIT_EVICT	0x100
567aec1d6eScindi #define	AO_MCA_R4_BIT_SNOOP	0x200
577c478bd9Sstevel@tonic-gate 
587aec1d6eScindi extern const ao_error_disp_t *ao_error_disp[];
597c478bd9Sstevel@tonic-gate 
607c478bd9Sstevel@tonic-gate #ifdef __cplusplus
617c478bd9Sstevel@tonic-gate }
627c478bd9Sstevel@tonic-gate #endif
637c478bd9Sstevel@tonic-gate 
647aec1d6eScindi #endif /* _AO_MCA_DISP_H */
65