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 */ 54*3d7072f8Seschrock #define EC_ZFS "EC_zfs" /* ZFS event */ 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate /* 577c478bd9Sstevel@tonic-gate * The following event class is reserved for exclusive use 587c478bd9Sstevel@tonic-gate * by Sun Cluster software. 597c478bd9Sstevel@tonic-gate */ 607c478bd9Sstevel@tonic-gate #define EC_CLUSTER "EC_Cluster" 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate /* 637c478bd9Sstevel@tonic-gate * The following classes are exclusively reserved for use by the 647c478bd9Sstevel@tonic-gate * Solaris Volume Manager (SVM) 657c478bd9Sstevel@tonic-gate */ 667c478bd9Sstevel@tonic-gate #define EC_SVM_CONFIG "EC_SVM_Config" 677c478bd9Sstevel@tonic-gate #define EC_SVM_STATE "EC_SVM_State" 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate /* 707c478bd9Sstevel@tonic-gate * EC_SVM_CONFIG subclass definitions - supporting attributes (name/value pairs) 717c478bd9Sstevel@tonic-gate * are found in sys/sysevent/svm.h 727c478bd9Sstevel@tonic-gate */ 737c478bd9Sstevel@tonic-gate #define ESC_SVM_CREATE "ESC_SVM_Create" 747c478bd9Sstevel@tonic-gate #define ESC_SVM_DELETE "ESC_SVM_Delete" 757c478bd9Sstevel@tonic-gate #define ESC_SVM_ADD "ESC_SVM_Add" 767c478bd9Sstevel@tonic-gate #define ESC_SVM_REMOVE "ESC_SVM_Remove" 777c478bd9Sstevel@tonic-gate #define ESC_SVM_REPLACE "ESC_SVM_Replace" 787c478bd9Sstevel@tonic-gate #define ESC_SVM_GROW "ESC_SVM_Grow" 797c478bd9Sstevel@tonic-gate #define ESC_SVM_RENAME_SRC "ESC_SVM_Rename_Src" 807c478bd9Sstevel@tonic-gate #define ESC_SVM_RENAME_DST "ESC_SVM_Rename_Dst" 817c478bd9Sstevel@tonic-gate #define ESC_SVM_MEDIATOR_ADD "ESC_SVM_Mediator_Add" 827c478bd9Sstevel@tonic-gate #define ESC_SVM_MEDIATOR_DELETE "ESC_SVM_Mediator_Delete" 837c478bd9Sstevel@tonic-gate #define ESC_SVM_HOST_ADD "ESC_SVM_Host_Add" 847c478bd9Sstevel@tonic-gate #define ESC_SVM_HOST_DELETE "ESC_SVM_Host_Delete" 857c478bd9Sstevel@tonic-gate #define ESC_SVM_DRIVE_ADD "ESC_SVM_Drive_Add" 867c478bd9Sstevel@tonic-gate #define ESC_SVM_DRIVE_DELETE "ESC_SVM_Drive_Delete" 877c478bd9Sstevel@tonic-gate #define ESC_SVM_DETACH "ESC_SVM_Detach" 887c478bd9Sstevel@tonic-gate #define ESC_SVM_DETACHING "ESC_SVM_Detaching" 897c478bd9Sstevel@tonic-gate #define ESC_SVM_ATTACH "ESC_SVM_Attach" 907c478bd9Sstevel@tonic-gate #define ESC_SVM_ATTACHING "ESC_SVM_Attaching" 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate /* 937c478bd9Sstevel@tonic-gate * EC_SVM_STATE subclass definitions - supporting attributes (name/value pairs) 947c478bd9Sstevel@tonic-gate * are found in sys/sysevent/svm.h 957c478bd9Sstevel@tonic-gate */ 967c478bd9Sstevel@tonic-gate #define ESC_SVM_INIT_START "ESC_SVM_Init_Start" 977c478bd9Sstevel@tonic-gate #define ESC_SVM_INIT_FAILED "ESC_SVM_Init_Failed" 987c478bd9Sstevel@tonic-gate #define ESC_SVM_INIT_FATAL "ESC_SVM_Init_Fatal" 997c478bd9Sstevel@tonic-gate #define ESC_SVM_INIT_SUCCESS "ESC_SVM_Init_Success" 1007c478bd9Sstevel@tonic-gate #define ESC_SVM_IOERR "ESC_SVM_Ioerr" 1017c478bd9Sstevel@tonic-gate #define ESC_SVM_ERRED "ESC_SVM_Erred" 1027c478bd9Sstevel@tonic-gate #define ESC_SVM_LASTERRED "ESC_SVM_Lasterred" 1037c478bd9Sstevel@tonic-gate #define ESC_SVM_OK "ESC_SVM_Ok" 1047c478bd9Sstevel@tonic-gate #define ESC_SVM_ENABLE "ESC_SVM_Enable" 1057c478bd9Sstevel@tonic-gate #define ESC_SVM_RESYNC_START "ESC_SVM_Resync_Start" 1067c478bd9Sstevel@tonic-gate #define ESC_SVM_RESYNC_FAILED "ESC_SVM_Resync_Failed" 1077c478bd9Sstevel@tonic-gate #define ESC_SVM_RESYNC_SUCCESS "ESC_SVM_Resync_Success" 1087c478bd9Sstevel@tonic-gate #define ESC_SVM_RESYNC_DONE "ESC_SVM_Resync_Done" 1097c478bd9Sstevel@tonic-gate #define ESC_SVM_HOTSPARED "ESC_SVM_Hotspared" 1107c478bd9Sstevel@tonic-gate #define ESC_SVM_HS_FREED "ESC_SVM_HS_Freed" 1117c478bd9Sstevel@tonic-gate #define ESC_SVM_HS_CHANGED "ESC_SVM_HS_Changed" 1127c478bd9Sstevel@tonic-gate #define ESC_SVM_TAKEOVER "ESC_SVM_Takeover" 1137c478bd9Sstevel@tonic-gate #define ESC_SVM_RELEASE "ESC_SVM_Release" 1147c478bd9Sstevel@tonic-gate #define ESC_SVM_OPEN_FAIL "ESC_SVM_Open_Fail" 1157c478bd9Sstevel@tonic-gate #define ESC_SVM_OFFLINE "ESC_SVM_Offline" 1167c478bd9Sstevel@tonic-gate #define ESC_SVM_ONLINE "ESC_SVM_Online" 1177c478bd9Sstevel@tonic-gate #define ESC_SVM_CHANGE "ESC_SVM_Change" 1187c478bd9Sstevel@tonic-gate #define ESC_SVM_EXCHANGE "ESC_SVM_Exchange" 1197c478bd9Sstevel@tonic-gate #define ESC_SVM_REGEN_START "ESC_SVM_Regen_Start" 1207c478bd9Sstevel@tonic-gate #define ESC_SVM_REGEN_DONE "ESC_SVM_Regen_Done" 1217c478bd9Sstevel@tonic-gate #define ESC_SVM_REGEN_FAILED "ESC_SVM_Regen_Failed" 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gate /* 1247c478bd9Sstevel@tonic-gate * EC_DR subclass definitions - supporting attributes (name/value pairs) 1257c478bd9Sstevel@tonic-gate * are found in sys/sysevent/dr.h 1267c478bd9Sstevel@tonic-gate */ 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gate /* Attachment point state change */ 1297c478bd9Sstevel@tonic-gate #define ESC_DR_AP_STATE_CHANGE "ESC_dr_ap_state_change" 1307c478bd9Sstevel@tonic-gate #define ESC_DR_REQ "ESC_dr_req" /* Request DR */ 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gate /* 1337c478bd9Sstevel@tonic-gate * EC_ENV subclass definitions - supporting attributes (name/value pairs) 1347c478bd9Sstevel@tonic-gate * are found in sys/sysevent/env.h 1357c478bd9Sstevel@tonic-gate */ 1367c478bd9Sstevel@tonic-gate #define ESC_ENV_TEMP "ESC_env_temp" /* Temperature change event subclass */ 1377c478bd9Sstevel@tonic-gate #define ESC_ENV_FAN "ESC_env_fan" /* Fan status change event subclass */ 1387c478bd9Sstevel@tonic-gate #define ESC_ENV_POWER "ESC_env_power" /* Power supply change event subclass */ 1397c478bd9Sstevel@tonic-gate #define ESC_ENV_LED "ESC_env_led" /* LED change event subclass */ 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gate /* 1427c478bd9Sstevel@tonic-gate * EC_DOMAIN subclass definitions - supporting attributes (name/value pairs) 1437c478bd9Sstevel@tonic-gate * are found in sys/sysevent/domain.h 1447c478bd9Sstevel@tonic-gate */ 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gate /* Domain state change */ 1477c478bd9Sstevel@tonic-gate #define ESC_DOMAIN_STATE_CHANGE "ESC_domain_state_change" 1487c478bd9Sstevel@tonic-gate /* Domain loghost name change */ 1497c478bd9Sstevel@tonic-gate #define ESC_DOMAIN_LOGHOST_CHANGE "ESC_domain_loghost_change" 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gate /* 1529113a79cSeschrock * EC_AP_DRIVER subclass definitions - supporting attributes (name/value pairs) 1537c478bd9Sstevel@tonic-gate * are found in sys/sysevent/ap_driver.h 1547c478bd9Sstevel@tonic-gate */ 1557c478bd9Sstevel@tonic-gate 1567c478bd9Sstevel@tonic-gate /* Alternate Pathing path switch */ 1577c478bd9Sstevel@tonic-gate #define ESC_AP_DRIVER_PATHSWITCH "ESC_ap_driver_pathswitch" 1587c478bd9Sstevel@tonic-gate /* Alternate Pathing database commit */ 1597c478bd9Sstevel@tonic-gate #define ESC_AP_DRIVER_COMMIT "ESC_ap_driver_commit" 1607c478bd9Sstevel@tonic-gate /* Alternate Pathing physical path status change */ 1617c478bd9Sstevel@tonic-gate #define ESC_AP_DRIVER_PHYS_PATH_STATUS_CHANGE \ 1627c478bd9Sstevel@tonic-gate "ESC_ap_driver_phys_path_status_change" 1637c478bd9Sstevel@tonic-gate 1647c478bd9Sstevel@tonic-gate /* 1659113a79cSeschrock * EC_IPMP subclass definitions - supporting attributes (name/value pairs) 1667c478bd9Sstevel@tonic-gate * are found in sys/sysevent/ipmp.h 1677c478bd9Sstevel@tonic-gate */ 1687c478bd9Sstevel@tonic-gate 1697c478bd9Sstevel@tonic-gate /* IPMP group has changed state */ 1707c478bd9Sstevel@tonic-gate #define ESC_IPMP_GROUP_STATE "ESC_ipmp_group_state" 1717c478bd9Sstevel@tonic-gate 1727c478bd9Sstevel@tonic-gate /* IPMP group has been created or removed */ 1737c478bd9Sstevel@tonic-gate #define ESC_IPMP_GROUP_CHANGE "ESC_ipmp_group_change" 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gate /* IPMP group has had an interface added or removed */ 1767c478bd9Sstevel@tonic-gate #define ESC_IPMP_GROUP_MEMBER_CHANGE "ESC_ipmp_group_member_change" 1777c478bd9Sstevel@tonic-gate 1787c478bd9Sstevel@tonic-gate /* Interface within an IPMP group has changed state or type */ 1797c478bd9Sstevel@tonic-gate #define ESC_IPMP_IF_CHANGE "ESC_ipmp_if_change" 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gate 1827c478bd9Sstevel@tonic-gate /* 1839113a79cSeschrock * EC_DEV_ADD and EC_DEV_REMOVE subclass definitions - supporting attributes 1847c478bd9Sstevel@tonic-gate * (name/value pairs) are found in sys/sysevent/dev.h 1857c478bd9Sstevel@tonic-gate */ 1867c478bd9Sstevel@tonic-gate #define ESC_DISK "disk" /* disk device */ 1877c478bd9Sstevel@tonic-gate #define ESC_NETWORK "network" /* network interface */ 188db11e6feSjacobs #define ESC_PRINTER "printer" /* printer device */ 18930294554Sphitran #define ESC_LOFI "lofi" /* lofi device */ 1907c478bd9Sstevel@tonic-gate 1917c478bd9Sstevel@tonic-gate /* 1929113a79cSeschrock * EC_DEV_BRANCH subclass definitions - supporting attributes (name/value pairs) 1937c478bd9Sstevel@tonic-gate * are found in sys/sysevent/dev.h 1947c478bd9Sstevel@tonic-gate */ 1957c478bd9Sstevel@tonic-gate 1967c478bd9Sstevel@tonic-gate /* device tree branch added */ 1977c478bd9Sstevel@tonic-gate #define ESC_DEV_BRANCH_ADD "ESC_dev_branch_add" 1987c478bd9Sstevel@tonic-gate 1997c478bd9Sstevel@tonic-gate /* device tree branch removed */ 2007c478bd9Sstevel@tonic-gate #define ESC_DEV_BRANCH_REMOVE "ESC_dev_branch_remove" 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gate /* FMA Fault and Error event protocol subclass */ 2037c478bd9Sstevel@tonic-gate #define ESC_FM_ERROR "ESC_FM_error" 2047c478bd9Sstevel@tonic-gate #define ESC_FM_ERROR_REPLAY "ESC_FM_error_replay" 2059113a79cSeschrock 2069113a79cSeschrock /* Service processor subclass definitions */ 2079113a79cSeschrock #define ESC_PLATFORM_SP_RESET "ESC_platform_sp_reset" 2089113a79cSeschrock 2097b840e52Sphitran /* 2107b840e52Sphitran * EC_ACPIEV subclass definitions 2117b840e52Sphitran */ 2127b840e52Sphitran #define EC_ACPIEV "EC_acpiev" 2137b840e52Sphitran #define ESC_ACPIEV_ADD "ESC_acpiev_add" 2147b840e52Sphitran #define ESC_ACPIEV_REMOVE "ESC_acpiev_remove" 2157b840e52Sphitran #define ESC_ACPIEV_WARN "ESC_acpiev_warn" 2167b840e52Sphitran #define ESC_ACPIEV_LOW "ESC_acpiev_low" 2177b840e52Sphitran #define ESC_ACPIEV_STATE_CHANGE "ESC_acpiev_state_change" 2187b840e52Sphitran 219*3d7072f8Seschrock /* 220*3d7072f8Seschrock * ZFS subclass definitions. supporting attributes (name/value paris) are found 221*3d7072f8Seschrock * in sys/fs/zfs.h 222*3d7072f8Seschrock */ 223*3d7072f8Seschrock #define ESC_ZFS_RESILVER_START "ESC_ZFS_resilver_start" 224*3d7072f8Seschrock #define ESC_ZFS_RESILVER_FINISH "ESC_ZFS_resilver_finish" 225*3d7072f8Seschrock #define ESC_ZFS_VDEV_REMOVE "ESC_ZFS_vdev_remove" 226*3d7072f8Seschrock #define ESC_ZFS_POOL_DESTROY "ESC_ZFS_pool_destroy" 227*3d7072f8Seschrock #define ESC_ZFS_VDEV_CLEAR "ESC_ZFS_vdev_clear" 228*3d7072f8Seschrock #define ESC_ZFS_VDEV_CHECK "ESC_ZFS_vdev_check" 229*3d7072f8Seschrock 2307c478bd9Sstevel@tonic-gate #ifdef __cplusplus 2317c478bd9Sstevel@tonic-gate } 2327c478bd9Sstevel@tonic-gate #endif 2337c478bd9Sstevel@tonic-gate 2347c478bd9Sstevel@tonic-gate #endif /* _SYS_SYSEVENT_EVENTDEFS_H */ 235