blob: 26f54d9d1d96d8514f7fa0a64fbd195f636e84ed [file] [log] [blame]
Christopher Ferris934ec942018-01-31 15:29:16 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LINUX_WMI_H
20#define _UAPI_LINUX_WMI_H
21#include <linux/ioctl.h>
22#include <linux/types.h>
23#define WMI_IOC 'W'
24struct wmi_ioctl_buffer {
25 __u64 length;
26 __u8 data[];
27};
28struct calling_interface_buffer {
29 __u16 cmd_class;
30 __u16 cmd_select;
31 volatile __u32 input[4];
32 volatile __u32 output[4];
33} __packed;
34struct dell_wmi_extensions {
35 __u32 argattrib;
36 __u32 blength;
37 __u8 data[];
38} __packed;
39struct dell_wmi_smbios_buffer {
40 __u64 length;
41 struct calling_interface_buffer std;
42 struct dell_wmi_extensions ext;
43} __packed;
44#define CLASS_TOKEN_READ 0
45#define CLASS_TOKEN_WRITE 1
46#define SELECT_TOKEN_STD 0
47#define SELECT_TOKEN_BAT 1
48#define SELECT_TOKEN_AC 2
49#define CLASS_FLASH_INTERFACE 7
50#define SELECT_FLASH_INTERFACE 3
51#define CLASS_ADMIN_PROP 10
52#define SELECT_ADMIN_PROP 3
53#define CLASS_INFO 17
54#define SELECT_RFKILL 11
55#define SELECT_APP_REGISTRATION 3
56#define SELECT_DOCK 22
57#define CAPSULE_EN_TOKEN 0x0461
58#define CAPSULE_DIS_TOKEN 0x0462
59#define WSMT_EN_TOKEN 0x04EC
60#define WSMT_DIS_TOKEN 0x04ED
61#define DELL_WMI_SMBIOS_CMD _IOWR(WMI_IOC, 0, struct dell_wmi_smbios_buffer)
62#endif