/*
* 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
*/
/*
*/
#ifndef _CMD_H
#define _CMD_H
#include <stdarg.h>
#include <cmd_list.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Diagnosis of certain errors requires that either a) the type of ereport be
* recorded in a persistent buffer or b) that a single value be used to
* represent multiple ereport classes. We start the values at 0x8 to avoid
* collisions with an earlier class code enum. While we have 64 bits available
* to us, cmd_errcl_t's are saved in persistent buffers, and thus can't easily
* grow beyond that size. As such, ereports should only be assigned class codes
* when needed. NEVER CHANGE the values of these constants once assigned.
*/
#ifdef sun4u
/* hole for sequential expansion */
#else /* sun4u */
#endif /* sun4u */
#ifdef sun4u
#else /* sun4u */
/*
* If changing the CMD_ERRCL_ISL2XXCU definition, should also
* change all the lines below it.
*/
(clcode == CMD_ERRCL_CBCE))
(clcode == CMD_ERRCL_DCDP)
(clcode == CMD_ERRCL_ICDP)
#endif /* sun4u */
#ifdef sun4v
#endif
/*
* Use low order 2 bits of cmd_errcl_t in order to pass cpu grouping level.
* The DE never shipped with code using low order 3 bits.
*/
struct cmd_xxcu_trw;
typedef struct cmd_stat {
/* # of possible sticky CEs: */
#ifdef sun4u
#endif
#ifdef sun4v
#endif
} cmd_stat_t;
typedef struct cmd_serd {
const char *cs_name;
} cmd_serd_t;
typedef struct cmd {
#ifdef sun4u
#endif
#ifdef sun4u
#endif
#ifdef sun4v
#endif
} cmd_t;
extern int cmd_set_errno(int);
extern void cmd_bufname(char *, size_t, const char *, ...);
#ifdef __cplusplus
}
#endif
#endif /* _CMD_H */