2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * CDDL HEADER START
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * The contents of this file are subject to the terms of the
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Common Development and Distribution License (the "License").
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * You may not use this file except in compliance with the License.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * See the License for the specific language governing permissions
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * and limitations under the License.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * When distributing Covered Code, include this CDDL HEADER in each
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * If applicable, add the following below this CDDL HEADER, with the
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * fields enclosed by brackets "[]" replaced with your own identifying
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * information: Portions Copyright [yyyy] [name of copyright owner]
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * CDDL HEADER END
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Use is subject to license terms.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Unlike most other devices, when a battery is inserted or
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * removed from the system, the device itself(the battery bay)
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * is still considered to be present in the system.
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * 0 -- Off-line
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * 1 -- On-line
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * -1 -- Unknown
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * hotkey driver soft-state structure
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Collection of vendor specific hotkey support
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu#define HOTKEY_METHOD_MISC (HOTKEY_METHOD_VENDOR | \
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu * Inter-source-file linkage ...
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shuint acpi_drv_set_int(ACPI_HANDLE dev, char *method, uint32_t aint);
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shuvoid acpi_drv_gen_sysevent(struct acpi_drv_dev *devp, char *ev, uint32_t val);
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shuint acpi_drv_hotkey_ioctl(int cmd, intptr_t arg, int mode, cred_t *cr,
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shuint acpi_video_ioctl(void *vidp, int cmd, intptr_t arg, int mode, cred_t *cr,
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shuvoid hotkey_drv_gen_sysevent(dev_info_t *, char *);
2d6b5ea734bb47d251c82670646fde46af15fd69Guoli Shu#endif /* _HOTKEY_DRV_H */