1*6573Sphitran /* 2*6573Sphitran * CDDL HEADER START 3*6573Sphitran * 4*6573Sphitran * The contents of this file are subject to the terms of the 5*6573Sphitran * Common Development and Distribution License (the "License"). 6*6573Sphitran * You may not use this file except in compliance with the License. 7*6573Sphitran * 8*6573Sphitran * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*6573Sphitran * or http://www.opensolaris.org/os/licensing. 10*6573Sphitran * See the License for the specific language governing permissions 11*6573Sphitran * and limitations under the License. 12*6573Sphitran * 13*6573Sphitran * When distributing Covered Code, include this CDDL HEADER in each 14*6573Sphitran * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*6573Sphitran * If applicable, add the following below this CDDL HEADER, with the 16*6573Sphitran * fields enclosed by brackets "[]" replaced with your own identifying 17*6573Sphitran * information: Portions Copyright [yyyy] [name of copyright owner] 18*6573Sphitran * 19*6573Sphitran * CDDL HEADER END 20*6573Sphitran */ 21*6573Sphitran /* 22*6573Sphitran * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*6573Sphitran * Use is subject to license terms. 24*6573Sphitran */ 25*6573Sphitran 26*6573Sphitran #ifndef _SYS_SYSEVENT_PWRCTL_H 27*6573Sphitran #define _SYS_SYSEVENT_PWRCTL_H 28*6573Sphitran 29*6573Sphitran #pragma ident "%Z%%M% %I% %E% SMI" 30*6573Sphitran 31*6573Sphitran #ifdef __cplusplus 32*6573Sphitran extern "C" { 33*6573Sphitran #endif 34*6573Sphitran 35*6573Sphitran /* 36*6573Sphitran * Event type schema for EC_PWRCTL: 37*6573Sphitran * Event Class - EC_PWRCTL 38*6573Sphitran * Event Sub-Class - ESC_PWRCTL_ADD | 39*6573Sphitran * ESC_PWRCTL_REMOVE | 40*6573Sphitran * ESC_PWRCTL_WARN | 41*6573Sphitran * ESC_PWRCTL_LOW | 42*6573Sphitran * ESC_PWRCTL_STATE_CHANGE | 43*6573Sphitran * ESC_PWRCTL_POWER_BUTTON | 44*6573Sphitran * ESC_PWRCTL_BRIGHTNESS_UP | 45*6573Sphitran * ESC_PWRCTL_BRIGHTNESS_DOWN 46*6573Sphitran * Event Publisher - SUNW:kern:[environmental monitor name] 47*6573Sphitran * Attribute Name - PWRCTL_VERSION 48*6573Sphitran * Attribute Type - SE_DATA_TYPE_UINT32 49*6573Sphitran * Attribute Value - [version of the schema] 50*6573Sphitran * Attribute Name - PWRCTL_DEV_HID 51*6573Sphitran * Attribute Type - SE_DATA_TYPE_STRING 52*6573Sphitran * Attribute Value - [Label identifying the ACPI hardware] 53*6573Sphitran * Attribute Name - PWRCTL_DEV_UID 54*6573Sphitran * Attribute Type - SE_DATA_TYPE_STRING 55*6573Sphitran * Attribute Value - [Both the _HID and _UID values can be of either type 56*6573Sphitran * STRING or NUMBER in the ACPI tables. In order to 57*6573Sphitran * provide a consistent data type in the external 58*6573Sphitran * interface, these values are always returned as NULL 59*6573Sphitran * terminated strings, regardless of the original data 60*6573Sphitran * type in the source ACPI table.] 61*6573Sphitran * Attribute Name - PWRCTL_DEV_INDEX 62*6573Sphitran * Attribute Type - SE_DATA_TYPE_UINT32 63*6573Sphitran * Attribute Value - [Device index] 64*6573Sphitran * 65*6573Sphitran * ESC_PWRCTL_WARN, ESC_PWRCTL_LOW only field: 66*6573Sphitran * Attribute Name - PWRCTL_CHARGE_LEVEL 67*6573Sphitran * Attribute Type - SE_DATA_TYPE_UINT32 68*6573Sphitran * Attribute Value - [charge level] 69*6573Sphitran */ 70*6573Sphitran 71*6573Sphitran #define PWRCTL_VERSION "pwrctl_version" /* Version of the schema */ 72*6573Sphitran #define PWRCTL_DEV_PHYS_PATH "pwrctl_dev_phys_path" /* Physical Path */ 73*6573Sphitran #define PWRCTL_DEV_HID "pwrctl_dev_hid" /* ACPI device Hardware Id */ 74*6573Sphitran #define PWRCTL_DEV_UID "pwrctl_dev_uid" /* ACPI device Unique Id */ 75*6573Sphitran #define PWRCTL_DEV_INDEX "pwrctl_dev_index" /* Device index */ 76*6573Sphitran #define PWRCTL_CHARGE_LEVEL "pwrctl_charge_level" /* Event related state */ 77*6573Sphitran #define PWRCTL_BRIGHTNESS_LEVEL "pwrctl_brightness_level" 78*6573Sphitran 79*6573Sphitran #ifdef __cplusplus 80*6573Sphitran } 81*6573Sphitran #endif 82*6573Sphitran 83*6573Sphitran #endif /* _SYS_SYSEVENT_PWRCTL_H */ 84