diff options
Diffstat (limited to 'include/linux/wmi.h')
-rw-r--r-- | include/linux/wmi.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h index cd0d7734dc49..4757cb5077e5 100644 --- a/include/linux/wmi.h +++ b/include/linux/wmi.h | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/device.h> | 19 | #include <linux/device.h> |
20 | #include <linux/acpi.h> | 20 | #include <linux/acpi.h> |
21 | #include <uapi/linux/wmi.h> | ||
21 | 22 | ||
22 | struct wmi_device { | 23 | struct wmi_device { |
23 | struct device dev; | 24 | struct device dev; |
@@ -26,13 +27,17 @@ struct wmi_device { | |||
26 | bool setable; | 27 | bool setable; |
27 | }; | 28 | }; |
28 | 29 | ||
30 | /* evaluate the ACPI method associated with this device */ | ||
31 | extern acpi_status wmidev_evaluate_method(struct wmi_device *wdev, | ||
32 | u8 instance, u32 method_id, | ||
33 | const struct acpi_buffer *in, | ||
34 | struct acpi_buffer *out); | ||
35 | |||
29 | /* Caller must kfree the result. */ | 36 | /* Caller must kfree the result. */ |
30 | extern union acpi_object *wmidev_block_query(struct wmi_device *wdev, | 37 | extern union acpi_object *wmidev_block_query(struct wmi_device *wdev, |
31 | u8 instance); | 38 | u8 instance); |
32 | 39 | ||
33 | /* Gets another device on the same bus. Caller must put_device the result. */ | 40 | extern int set_required_buffer_size(struct wmi_device *wdev, u64 length); |
34 | extern struct wmi_device *wmidev_get_other_guid(struct wmi_device *wdev, | ||
35 | const char *guid_string); | ||
36 | 41 | ||
37 | struct wmi_device_id { | 42 | struct wmi_device_id { |
38 | const char *guid_string; | 43 | const char *guid_string; |
@@ -45,6 +50,8 @@ struct wmi_driver { | |||
45 | int (*probe)(struct wmi_device *wdev); | 50 | int (*probe)(struct wmi_device *wdev); |
46 | int (*remove)(struct wmi_device *wdev); | 51 | int (*remove)(struct wmi_device *wdev); |
47 | void (*notify)(struct wmi_device *device, union acpi_object *data); | 52 | void (*notify)(struct wmi_device *device, union acpi_object *data); |
53 | long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd, | ||
54 | struct wmi_ioctl_buffer *arg); | ||
48 | }; | 55 | }; |
49 | 56 | ||
50 | extern int __must_check __wmi_driver_register(struct wmi_driver *driver, | 57 | extern int __must_check __wmi_driver_register(struct wmi_driver *driver, |