xref: /titanic_44/usr/src/common/mc/mc-amd/mcamd_err.h (revision 4156fc34b973159b0334e05ae5ec19344487bdc0)
17aec1d6eScindi /*
27aec1d6eScindi  * CDDL HEADER START
37aec1d6eScindi  *
47aec1d6eScindi  * The contents of this file are subject to the terms of the
5*4156fc34Sgavinm  * Common Development and Distribution License (the "License").
6*4156fc34Sgavinm  * You may not use this file except in compliance with the License.
77aec1d6eScindi  *
87aec1d6eScindi  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97aec1d6eScindi  * or http://www.opensolaris.org/os/licensing.
107aec1d6eScindi  * See the License for the specific language governing permissions
117aec1d6eScindi  * and limitations under the License.
127aec1d6eScindi  *
137aec1d6eScindi  * When distributing Covered Code, include this CDDL HEADER in each
147aec1d6eScindi  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157aec1d6eScindi  * If applicable, add the following below this CDDL HEADER, with the
167aec1d6eScindi  * fields enclosed by brackets "[]" replaced with your own identifying
177aec1d6eScindi  * information: Portions Copyright [yyyy] [name of copyright owner]
187aec1d6eScindi  *
197aec1d6eScindi  * CDDL HEADER END
207aec1d6eScindi  *
217aec1d6eScindi  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
227aec1d6eScindi  * Use is subject to license terms.
237aec1d6eScindi  */
247aec1d6eScindi 
257aec1d6eScindi #ifndef _MCAMD_ERR_H
267aec1d6eScindi #define	_MCAMD_ERR_H
277aec1d6eScindi 
287aec1d6eScindi #pragma ident	"%Z%%M%	%I%	%E% SMI"
297aec1d6eScindi 
307aec1d6eScindi #ifdef __cplusplus
317aec1d6eScindi extern "C" {
327aec1d6eScindi #endif
337aec1d6eScindi 
347aec1d6eScindi #define	EMCAMD_BASE	2000	/* out of system's and consumer's way */
357aec1d6eScindi 
367aec1d6eScindi enum {
377aec1d6eScindi 	EMCAMD_SYNDINVALID = EMCAMD_BASE,	/* invalid syndrome */
387aec1d6eScindi 	EMCAMD_TREEINVALID,			/* invalid configuration tree */
397aec1d6eScindi 	EMCAMD_NOADDR,				/* address not found */
40*4156fc34Sgavinm 	EMCAMD_NOTSUP,				/* operation not supported */
41*4156fc34Sgavinm 	EMCAMD_INSUFF_RES			/* insufficient resolution */
427aec1d6eScindi };
437aec1d6eScindi 
447aec1d6eScindi extern const char *mcamd_errmsg(struct mcamd_hdl *);
457aec1d6eScindi extern const char *mcamd_strerror(int);
467aec1d6eScindi extern int mcamd_errno(struct mcamd_hdl *);
477aec1d6eScindi extern int mcamd_set_errno(struct mcamd_hdl *, int);
487aec1d6eScindi extern void *mcamd_set_errno_ptr(struct mcamd_hdl *, int);
497aec1d6eScindi 
507aec1d6eScindi #ifdef __cplusplus
517aec1d6eScindi }
527aec1d6eScindi #endif
537aec1d6eScindi 
547aec1d6eScindi #endif /* _MCAMD_ERR_H */
55