/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _HOTKEY_DRV_H
#define _HOTKEY_DRV_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/acpi_drv.h>
struct acpi_drv_dev {
/*
* Unlike most other devices, when a battery is inserted or
* removed from the system, the device itself(the battery bay)
* is still considered to be present in the system.
*
* Value:
* 0 -- Off-line
* 1 -- On-line
* -1 -- Unknown
*/
int present;
int minor;
};
/*
* hotkey driver soft-state structure
*/
typedef struct hotkey_drv {
void *private; /* Vendor specific structure */
int hotkey_method;
int modid;
void *acpi_video;
} hotkey_drv_t;
/*
* Collection of vendor specific hotkey support
*/
struct vendor_hotkey_drv {
const char *vid;
const char *module;
};
#define HOTKEY_DRV_OK 0
/*
* Inter-source-file linkage ...
*/
extern struct hotkey_drv acpi_hotkey;
extern int hotkey_drv_debug;
int acpi_drv_dev_init(struct acpi_drv_dev *p);
int *rval);
int *rval);
void hotkey_drv_gen_sysevent(dev_info_t *, char *);
#ifdef __cplusplus
}
#endif
#endif /* _HOTKEY_DRV_H */