/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SYSEVENT_DR_H
#define _SYS_SYSEVENT_DR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* dr.h contains the publicly defined sysevent attribute names and values
* PSARC approval.
*/
/*
* Event type EC_DR/ESC_DR_AP_STATE_CHANGE event schema
* Event Class - EC_DR
* Event Sub-Class - ESC_DR_AP_STATE_CHANGE
* Event Publisher - SUNW:kern:[dr_subsystem_name]
* Attribute Name - DR_AP_ID
* Attribute Type - SE_DATA_TYPE_STRING
* Attribute Value - [Attachment Point Identifier]
* Attribute Name - DR_HINT
* Attribute Type - SE_DATA_TYPE_STRING
* Attribute Value - DR_RESERVED_ATTR | DR_HINT_INSERT | DR_HINT_REMOVE
*/
/*
*/
(h) == SE_HINT_REMOVE ? DR_HINT_REMOVE : \
/*
* Event type EC_DR/ESC_DR_REQ event schema
* Event Class - EC_DR
* Event Sub-Class - ESC_DR_REQ
* Event Publisher - SUNW:kern:[dr_subsystem_name]
* Attribute Name - DR_AP_ID
* Attribute Type - SE_DATA_TYPE_STRING
* Attribute Value - [Attachment Point Name]
* Attribute Name - DR_REQ_TYPE
* Attribute Type - SE_DATA_TYPE_STRING
* Attribute Value - DR_RESERVED_ATTR | DR_REQ_INCOMING_RES |
* DR_REQ_OUTGOING_RES | DR_REQ_INVESTIGATE_RES
*/
(h) == SE_OUTGOING_RES ? \
/*
* Event Class - EC_DR
* Event Sub-Class - ESC_DR_TARGET_STATE_CHANGE
* Event Publisher - SUNW:kern:<driver-name>
* Attribute Name - DR_TARGET_ID
* Attribute Type - [SE_DATA_TYPE_STRING]
* Attribute Value - </physical_path_to_hba:target>
* Attribute Name - DR_HINT
* Attribute Type - [SE_DATA_TYPE_STRING]
* Attribute Value - DR_RESERVED_ATTR | DR_HINT_INSERT | DR_HINT_REMOVE
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SYSEVENT_DR_H */