xref: /illumos-gate/usr/src/uts/common/sys/sysevent/eventdefs.h (revision 7b840e52d558c34b70cbcde044d8d79852d169d2)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5db11e6feSjacobs  * Common Development and Distribution License (the "License").
6db11e6feSjacobs  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
229113a79cSeschrock  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_SYS_SYSEVENT_EVENTDEFS_H
277c478bd9Sstevel@tonic-gate #define	_SYS_SYSEVENT_EVENTDEFS_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
327c478bd9Sstevel@tonic-gate extern "C" {
337c478bd9Sstevel@tonic-gate #endif
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate /*
367c478bd9Sstevel@tonic-gate  * eventdefs.h contains public definitions for sysevent types (classes
377c478bd9Sstevel@tonic-gate  * and subclasses).  All additions/removal/changes are subject
387c478bd9Sstevel@tonic-gate  * to PSARC approval.
397c478bd9Sstevel@tonic-gate  */
407c478bd9Sstevel@tonic-gate 
417c478bd9Sstevel@tonic-gate /* Sysevent Class definitions */
427c478bd9Sstevel@tonic-gate #define	EC_NONE		"EC_none"
437c478bd9Sstevel@tonic-gate #define	EC_PRIV		"EC_priv"
447c478bd9Sstevel@tonic-gate #define	EC_PLATFORM	"EC_platform"	/* events private to platform */
457c478bd9Sstevel@tonic-gate #define	EC_DR		"EC_dr"	/* Dynamic reconfiguration event class */
467c478bd9Sstevel@tonic-gate #define	EC_ENV		"EC_env"	/* Environmental monitor event class */
477c478bd9Sstevel@tonic-gate #define	EC_DOMAIN	"EC_domain"	/* Domain event class */
487c478bd9Sstevel@tonic-gate #define	EC_AP_DRIVER	"EC_ap_driver"	/* Alternate Pathing event class */
497c478bd9Sstevel@tonic-gate #define	EC_IPMP		"EC_ipmp"	/* IP Multipathing event class */
507c478bd9Sstevel@tonic-gate #define	EC_DEV_ADD	"EC_dev_add"	/* device add event class */
517c478bd9Sstevel@tonic-gate #define	EC_DEV_REMOVE	"EC_dev_remove"	/* device remove event class */
527c478bd9Sstevel@tonic-gate #define	EC_DEV_BRANCH	"EC_dev_branch"	/* device tree branch event class */
537c478bd9Sstevel@tonic-gate #define	EC_FM		"EC_fm"		/* FMA error report event */
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate /*
567c478bd9Sstevel@tonic-gate  * The following event class is reserved for exclusive use
577c478bd9Sstevel@tonic-gate  * by Sun Cluster software.
587c478bd9Sstevel@tonic-gate  */
597c478bd9Sstevel@tonic-gate #define	EC_CLUSTER	"EC_Cluster"
607c478bd9Sstevel@tonic-gate 
617c478bd9Sstevel@tonic-gate /*
627c478bd9Sstevel@tonic-gate  * The following classes are exclusively reserved for use by the
637c478bd9Sstevel@tonic-gate  * Solaris Volume Manager (SVM)
647c478bd9Sstevel@tonic-gate  */
657c478bd9Sstevel@tonic-gate #define	EC_SVM_CONFIG	"EC_SVM_Config"
667c478bd9Sstevel@tonic-gate #define	EC_SVM_STATE	"EC_SVM_State"
677c478bd9Sstevel@tonic-gate 
687c478bd9Sstevel@tonic-gate /*
697c478bd9Sstevel@tonic-gate  * EC_SVM_CONFIG subclass definitions - supporting attributes (name/value pairs)
707c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/svm.h
717c478bd9Sstevel@tonic-gate  */
727c478bd9Sstevel@tonic-gate #define	ESC_SVM_CREATE		"ESC_SVM_Create"
737c478bd9Sstevel@tonic-gate #define	ESC_SVM_DELETE		"ESC_SVM_Delete"
747c478bd9Sstevel@tonic-gate #define	ESC_SVM_ADD		"ESC_SVM_Add"
757c478bd9Sstevel@tonic-gate #define	ESC_SVM_REMOVE		"ESC_SVM_Remove"
767c478bd9Sstevel@tonic-gate #define	ESC_SVM_REPLACE		"ESC_SVM_Replace"
777c478bd9Sstevel@tonic-gate #define	ESC_SVM_GROW		"ESC_SVM_Grow"
787c478bd9Sstevel@tonic-gate #define	ESC_SVM_RENAME_SRC	"ESC_SVM_Rename_Src"
797c478bd9Sstevel@tonic-gate #define	ESC_SVM_RENAME_DST	"ESC_SVM_Rename_Dst"
807c478bd9Sstevel@tonic-gate #define	ESC_SVM_MEDIATOR_ADD	"ESC_SVM_Mediator_Add"
817c478bd9Sstevel@tonic-gate #define	ESC_SVM_MEDIATOR_DELETE	"ESC_SVM_Mediator_Delete"
827c478bd9Sstevel@tonic-gate #define	ESC_SVM_HOST_ADD	"ESC_SVM_Host_Add"
837c478bd9Sstevel@tonic-gate #define	ESC_SVM_HOST_DELETE	"ESC_SVM_Host_Delete"
847c478bd9Sstevel@tonic-gate #define	ESC_SVM_DRIVE_ADD	"ESC_SVM_Drive_Add"
857c478bd9Sstevel@tonic-gate #define	ESC_SVM_DRIVE_DELETE	"ESC_SVM_Drive_Delete"
867c478bd9Sstevel@tonic-gate #define	ESC_SVM_DETACH		"ESC_SVM_Detach"
877c478bd9Sstevel@tonic-gate #define	ESC_SVM_DETACHING	"ESC_SVM_Detaching"
887c478bd9Sstevel@tonic-gate #define	ESC_SVM_ATTACH		"ESC_SVM_Attach"
897c478bd9Sstevel@tonic-gate #define	ESC_SVM_ATTACHING	"ESC_SVM_Attaching"
907c478bd9Sstevel@tonic-gate 
917c478bd9Sstevel@tonic-gate /*
927c478bd9Sstevel@tonic-gate  * EC_SVM_STATE subclass definitions - supporting attributes (name/value pairs)
937c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/svm.h
947c478bd9Sstevel@tonic-gate  */
957c478bd9Sstevel@tonic-gate #define	ESC_SVM_INIT_START	"ESC_SVM_Init_Start"
967c478bd9Sstevel@tonic-gate #define	ESC_SVM_INIT_FAILED	"ESC_SVM_Init_Failed"
977c478bd9Sstevel@tonic-gate #define	ESC_SVM_INIT_FATAL	"ESC_SVM_Init_Fatal"
987c478bd9Sstevel@tonic-gate #define	ESC_SVM_INIT_SUCCESS	"ESC_SVM_Init_Success"
997c478bd9Sstevel@tonic-gate #define	ESC_SVM_IOERR		"ESC_SVM_Ioerr"
1007c478bd9Sstevel@tonic-gate #define	ESC_SVM_ERRED		"ESC_SVM_Erred"
1017c478bd9Sstevel@tonic-gate #define	ESC_SVM_LASTERRED	"ESC_SVM_Lasterred"
1027c478bd9Sstevel@tonic-gate #define	ESC_SVM_OK		"ESC_SVM_Ok"
1037c478bd9Sstevel@tonic-gate #define	ESC_SVM_ENABLE		"ESC_SVM_Enable"
1047c478bd9Sstevel@tonic-gate #define	ESC_SVM_RESYNC_START	"ESC_SVM_Resync_Start"
1057c478bd9Sstevel@tonic-gate #define	ESC_SVM_RESYNC_FAILED	"ESC_SVM_Resync_Failed"
1067c478bd9Sstevel@tonic-gate #define	ESC_SVM_RESYNC_SUCCESS	"ESC_SVM_Resync_Success"
1077c478bd9Sstevel@tonic-gate #define	ESC_SVM_RESYNC_DONE	"ESC_SVM_Resync_Done"
1087c478bd9Sstevel@tonic-gate #define	ESC_SVM_HOTSPARED	"ESC_SVM_Hotspared"
1097c478bd9Sstevel@tonic-gate #define	ESC_SVM_HS_FREED	"ESC_SVM_HS_Freed"
1107c478bd9Sstevel@tonic-gate #define	ESC_SVM_HS_CHANGED	"ESC_SVM_HS_Changed"
1117c478bd9Sstevel@tonic-gate #define	ESC_SVM_TAKEOVER	"ESC_SVM_Takeover"
1127c478bd9Sstevel@tonic-gate #define	ESC_SVM_RELEASE		"ESC_SVM_Release"
1137c478bd9Sstevel@tonic-gate #define	ESC_SVM_OPEN_FAIL	"ESC_SVM_Open_Fail"
1147c478bd9Sstevel@tonic-gate #define	ESC_SVM_OFFLINE		"ESC_SVM_Offline"
1157c478bd9Sstevel@tonic-gate #define	ESC_SVM_ONLINE		"ESC_SVM_Online"
1167c478bd9Sstevel@tonic-gate #define	ESC_SVM_CHANGE		"ESC_SVM_Change"
1177c478bd9Sstevel@tonic-gate #define	ESC_SVM_EXCHANGE	"ESC_SVM_Exchange"
1187c478bd9Sstevel@tonic-gate #define	ESC_SVM_REGEN_START	"ESC_SVM_Regen_Start"
1197c478bd9Sstevel@tonic-gate #define	ESC_SVM_REGEN_DONE	"ESC_SVM_Regen_Done"
1207c478bd9Sstevel@tonic-gate #define	ESC_SVM_REGEN_FAILED	"ESC_SVM_Regen_Failed"
1217c478bd9Sstevel@tonic-gate 
1227c478bd9Sstevel@tonic-gate /*
1237c478bd9Sstevel@tonic-gate  * EC_DR subclass definitions - supporting attributes (name/value pairs)
1247c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/dr.h
1257c478bd9Sstevel@tonic-gate  */
1267c478bd9Sstevel@tonic-gate 
1277c478bd9Sstevel@tonic-gate /* Attachment point state change */
1287c478bd9Sstevel@tonic-gate #define	ESC_DR_AP_STATE_CHANGE	"ESC_dr_ap_state_change"
1297c478bd9Sstevel@tonic-gate #define	ESC_DR_REQ		"ESC_dr_req"	/* Request DR */
1307c478bd9Sstevel@tonic-gate 
1317c478bd9Sstevel@tonic-gate /*
1327c478bd9Sstevel@tonic-gate  * EC_ENV subclass definitions - supporting attributes (name/value pairs)
1337c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/env.h
1347c478bd9Sstevel@tonic-gate  */
1357c478bd9Sstevel@tonic-gate #define	ESC_ENV_TEMP	"ESC_env_temp"	/* Temperature change event subclass */
1367c478bd9Sstevel@tonic-gate #define	ESC_ENV_FAN	"ESC_env_fan"	/* Fan status change event subclass */
1377c478bd9Sstevel@tonic-gate #define	ESC_ENV_POWER	"ESC_env_power"	/* Power supply change event subclass */
1387c478bd9Sstevel@tonic-gate #define	ESC_ENV_LED	"ESC_env_led"	/* LED change event subclass */
1397c478bd9Sstevel@tonic-gate 
1407c478bd9Sstevel@tonic-gate /*
1417c478bd9Sstevel@tonic-gate  * EC_DOMAIN subclass definitions - supporting attributes (name/value pairs)
1427c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/domain.h
1437c478bd9Sstevel@tonic-gate  */
1447c478bd9Sstevel@tonic-gate 
1457c478bd9Sstevel@tonic-gate /* Domain state change */
1467c478bd9Sstevel@tonic-gate #define	ESC_DOMAIN_STATE_CHANGE		"ESC_domain_state_change"
1477c478bd9Sstevel@tonic-gate /* Domain loghost name change */
1487c478bd9Sstevel@tonic-gate #define	ESC_DOMAIN_LOGHOST_CHANGE	"ESC_domain_loghost_change"
1497c478bd9Sstevel@tonic-gate 
1507c478bd9Sstevel@tonic-gate /*
1519113a79cSeschrock  * EC_AP_DRIVER subclass definitions - supporting attributes (name/value pairs)
1527c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/ap_driver.h
1537c478bd9Sstevel@tonic-gate  */
1547c478bd9Sstevel@tonic-gate 
1557c478bd9Sstevel@tonic-gate /* Alternate Pathing path switch */
1567c478bd9Sstevel@tonic-gate #define	ESC_AP_DRIVER_PATHSWITCH	"ESC_ap_driver_pathswitch"
1577c478bd9Sstevel@tonic-gate /* Alternate Pathing database commit */
1587c478bd9Sstevel@tonic-gate #define	ESC_AP_DRIVER_COMMIT		"ESC_ap_driver_commit"
1597c478bd9Sstevel@tonic-gate /* Alternate Pathing physical path status change */
1607c478bd9Sstevel@tonic-gate #define	ESC_AP_DRIVER_PHYS_PATH_STATUS_CHANGE	\
1617c478bd9Sstevel@tonic-gate 	"ESC_ap_driver_phys_path_status_change"
1627c478bd9Sstevel@tonic-gate 
1637c478bd9Sstevel@tonic-gate /*
1649113a79cSeschrock  * EC_IPMP subclass definitions - supporting attributes (name/value pairs)
1657c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/ipmp.h
1667c478bd9Sstevel@tonic-gate  */
1677c478bd9Sstevel@tonic-gate 
1687c478bd9Sstevel@tonic-gate /* IPMP group has changed state */
1697c478bd9Sstevel@tonic-gate #define	ESC_IPMP_GROUP_STATE		"ESC_ipmp_group_state"
1707c478bd9Sstevel@tonic-gate 
1717c478bd9Sstevel@tonic-gate /* IPMP group has been created or removed */
1727c478bd9Sstevel@tonic-gate #define	ESC_IPMP_GROUP_CHANGE		"ESC_ipmp_group_change"
1737c478bd9Sstevel@tonic-gate 
1747c478bd9Sstevel@tonic-gate /* IPMP group has had an interface added or removed */
1757c478bd9Sstevel@tonic-gate #define	ESC_IPMP_GROUP_MEMBER_CHANGE	"ESC_ipmp_group_member_change"
1767c478bd9Sstevel@tonic-gate 
1777c478bd9Sstevel@tonic-gate /* Interface within an IPMP group has changed state or type */
1787c478bd9Sstevel@tonic-gate #define	ESC_IPMP_IF_CHANGE		"ESC_ipmp_if_change"
1797c478bd9Sstevel@tonic-gate 
1807c478bd9Sstevel@tonic-gate 
1817c478bd9Sstevel@tonic-gate /*
1829113a79cSeschrock  * EC_DEV_ADD and EC_DEV_REMOVE subclass definitions - supporting attributes
1837c478bd9Sstevel@tonic-gate  * (name/value pairs) are found in sys/sysevent/dev.h
1847c478bd9Sstevel@tonic-gate  */
1857c478bd9Sstevel@tonic-gate #define	ESC_DISK	"disk"		/* disk device */
1867c478bd9Sstevel@tonic-gate #define	ESC_NETWORK	"network"	/* network interface */
187db11e6feSjacobs #define	ESC_PRINTER	"printer"	/* printer device */
1887c478bd9Sstevel@tonic-gate 
1897c478bd9Sstevel@tonic-gate /*
1909113a79cSeschrock  * EC_DEV_BRANCH subclass definitions - supporting attributes (name/value pairs)
1917c478bd9Sstevel@tonic-gate  * are found in sys/sysevent/dev.h
1927c478bd9Sstevel@tonic-gate  */
1937c478bd9Sstevel@tonic-gate 
1947c478bd9Sstevel@tonic-gate /* device tree branch added */
1957c478bd9Sstevel@tonic-gate #define	ESC_DEV_BRANCH_ADD	"ESC_dev_branch_add"
1967c478bd9Sstevel@tonic-gate 
1977c478bd9Sstevel@tonic-gate /* device tree branch removed */
1987c478bd9Sstevel@tonic-gate #define	ESC_DEV_BRANCH_REMOVE	"ESC_dev_branch_remove"
1997c478bd9Sstevel@tonic-gate 
2007c478bd9Sstevel@tonic-gate /* FMA Fault and Error event protocol subclass */
2017c478bd9Sstevel@tonic-gate #define	ESC_FM_ERROR		"ESC_FM_error"
2027c478bd9Sstevel@tonic-gate #define	ESC_FM_ERROR_REPLAY	"ESC_FM_error_replay"
2039113a79cSeschrock 
2049113a79cSeschrock /* Service processor subclass definitions */
2059113a79cSeschrock #define	ESC_PLATFORM_SP_RESET	"ESC_platform_sp_reset"
2069113a79cSeschrock 
207*7b840e52Sphitran /*
208*7b840e52Sphitran  * EC_ACPIEV subclass definitions
209*7b840e52Sphitran  */
210*7b840e52Sphitran #define	EC_ACPIEV			"EC_acpiev"
211*7b840e52Sphitran #define	ESC_ACPIEV_ADD			"ESC_acpiev_add"
212*7b840e52Sphitran #define	ESC_ACPIEV_REMOVE		"ESC_acpiev_remove"
213*7b840e52Sphitran #define	ESC_ACPIEV_WARN			"ESC_acpiev_warn"
214*7b840e52Sphitran #define	ESC_ACPIEV_LOW			"ESC_acpiev_low"
215*7b840e52Sphitran #define	ESC_ACPIEV_STATE_CHANGE		"ESC_acpiev_state_change"
216*7b840e52Sphitran 
2177c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
2187c478bd9Sstevel@tonic-gate }
2197c478bd9Sstevel@tonic-gate #endif
2207c478bd9Sstevel@tonic-gate 
2217c478bd9Sstevel@tonic-gate #endif /* _SYS_SYSEVENT_EVENTDEFS_H */
222