1 /******************************************************************************
6 *****************************************************************************/
9 * Copyright (C) 2000, 2001 Andrew Grover
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 /*****************************************************************************
36 * Types & Other Defines
37 *****************************************************************************/
41 * ---------------------
43 #define BN_NOTIFY_STATUS_CHANGE ((BM_NOTIFY) 0x80)
49 #define BN_TYPE_POWER_BUTTON (0x01)
50 #define BN_TYPE_POWER_BUTTON_FIXED (0x02)
51 #define BN_TYPE_SLEEP_BUTTON (0x03)
52 #define BN_TYPE_SLEEP_BUTTON_FIXED (0x04)
53 #define BN_TYPE_LID_SWITCH (0x05)
58 * TODO: Power and Sleep button HIDs also exist in <bm.h>. Should all
59 * HIDs (ACPI well-known devices) exist in one place (e.g.
62 #define BN_HID_POWER_BUTTON "PNP0C0C"
63 #define BN_HID_SLEEP_BUTTON "PNP0C0E"
64 #define BN_HID_LID_SWITCH "PNP0C0D"
70 #define BN_PROC_ROOT "button"
71 #define BN_PROC_POWER_BUTTON "power"
72 #define BN_PROC_SLEEP_BUTTON "sleep"
73 #define BN_PROC_LID_SWITCH "lid"
81 BM_HANDLE device_handle;
82 ACPI_HANDLE acpi_handle;
87 /******************************************************************************
89 *****************************************************************************/
109 BM_REQUEST *request_info,
113 #endif /* __BN_H__ */