blob: f9dc53f32d02a87061302e7fb0880dda10416b96 [file] [log] [blame]
* 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
* or
* 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]
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
#ifndef _MCAMD_ERR_H
#define _MCAMD_ERR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#define EMCAMD_BASE 2000 /* out of system's and consumer's way */
enum {
EMCAMD_SYNDINVALID = EMCAMD_BASE, /* invalid syndrome */
EMCAMD_TREEINVALID, /* invalid configuration tree */
EMCAMD_NOADDR, /* address not found */
EMCAMD_NOTSUP, /* operation not supported */
EMCAMD_INSUFF_RES /* insufficient resolution */
extern const char *mcamd_errmsg(struct mcamd_hdl *);
extern const char *mcamd_strerror(int);
extern int mcamd_errno(struct mcamd_hdl *);
extern int mcamd_set_errno(struct mcamd_hdl *, int);
extern void *mcamd_set_errno_ptr(struct mcamd_hdl *, int);
#ifdef __cplusplus
#endif /* _MCAMD_ERR_H */