Update documentation for 0.11.2
[acer_acpi.git] / wmi-acer.h
blobcedb953a28851eacd6aa6988f7bc033a74f91482
1 /*
2 * wmi.h
4 * Copyright (C) 2007 Carlos Corbacho <cathectic@gmail.com>
6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or (at
11 * your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25 /* Workaround needed for older kernels */
26 #ifndef bool
27 #define bool int
28 #define true 1
29 #define false 0
30 #endif
32 typedef void (*wmi_notify_handler) (u32 value, void *context);
34 extern acpi_status wmi_acer_evaluate_method(const char *guid, u8 instance,
35 u32 method_id,
36 const struct acpi_buffer *in,
37 struct acpi_buffer *out);
38 extern acpi_status wmi_acer_query_block(const char *guid, u8 instance,
39 struct acpi_buffer *out);
40 extern acpi_status wmi_acer_set_block(const char *guid, u8 instance,
41 const struct acpi_buffer *in);
42 extern acpi_status wmi_acer_install_notify_handler(wmi_notify_handler handler,
43 void *data);
44 extern acpi_status wmi_acer_remove_notify_handler(void);
45 extern acpi_status wmi_acer_get_event_data(u32 event, struct acpi_buffer *out);
46 extern bool wmi_acer_has_guid(const char *guid);