/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SSM_H
#define _SYS_SSM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* ssm soft state macros: IIIIMMMM
* instance-minor no
*/
struct ssm_soft_state {
};
typedef struct {
/*
* useful debugging stuff
*/
#ifdef DEBUG
(m) == SGDR_BD_PRESENT ? SG_EVT_BOARD_PRESENT :\
(m) == SGDR_UNASSIGN ? SG_EVT_UNASSIGN : \
(m) == SGDR_ASSIGN ? SG_EVT_ASSIGN : \
(m) == SGDR_UNAVAILABLE ? SG_EVT_UNAVAILABLE :\
(m) == SGDR_AVAILABLE ? SG_EVT_AVAILABLE : \
(m) == SGDR_POWER_OFF ? SG_EVT_POWER_OFF : \
(m) == SGDR_POWER_ON ? SG_EVT_POWER_ON : \
(m) == SGDR_PASSED_TEST ? SG_EVT_PASSED_TEST :\
(m) == SGDR_FAILED_TEST ? SG_EVT_FAILED_TEST :\
0)
(c) == SG_EVT_BOARD_PRESENT ? "board_present" :\
(c) == SG_EVT_UNASSIGN ? "unassign" : \
(c) == SG_EVT_ASSIGN ? "assign" : \
(c) == SG_EVT_UNAVAILABLE ? "unavailable" : \
(c) == SG_EVT_AVAILABLE ? "available" : \
(c) == SG_EVT_POWER_OFF ? "power_off" : \
(c) == SG_EVT_POWER_ON ? "power_on" : \
(c) == SG_EVT_PASSED_TEST ? "passed_test" : \
(c) == SG_EVT_FAILED_TEST ? "failed_test" : \
NULL)
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SSM_H */