blob: 052800cfdd897f91d3fd14a794b7c32c2272acb3 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris934ec942018-01-31 15:29:16 -08007#ifndef _UAPI_LINUX_WMI_H
8#define _UAPI_LINUX_WMI_H
9#include <linux/ioctl.h>
10#include <linux/types.h>
11#define WMI_IOC 'W'
12struct wmi_ioctl_buffer {
13 __u64 length;
14 __u8 data[];
15};
16struct calling_interface_buffer {
17 __u16 cmd_class;
18 __u16 cmd_select;
19 volatile __u32 input[4];
20 volatile __u32 output[4];
Colin Cross4ac33222022-12-15 15:45:35 -080021} __attribute__((__packed__));
Christopher Ferris934ec942018-01-31 15:29:16 -080022struct dell_wmi_extensions {
23 __u32 argattrib;
24 __u32 blength;
25 __u8 data[];
Colin Cross4ac33222022-12-15 15:45:35 -080026} __attribute__((__packed__));
Christopher Ferris934ec942018-01-31 15:29:16 -080027struct dell_wmi_smbios_buffer {
28 __u64 length;
29 struct calling_interface_buffer std;
30 struct dell_wmi_extensions ext;
Colin Cross4ac33222022-12-15 15:45:35 -080031} __attribute__((__packed__));
Christopher Ferris934ec942018-01-31 15:29:16 -080032#define CLASS_TOKEN_READ 0
33#define CLASS_TOKEN_WRITE 1
34#define SELECT_TOKEN_STD 0
35#define SELECT_TOKEN_BAT 1
36#define SELECT_TOKEN_AC 2
37#define CLASS_FLASH_INTERFACE 7
38#define SELECT_FLASH_INTERFACE 3
39#define CLASS_ADMIN_PROP 10
40#define SELECT_ADMIN_PROP 3
41#define CLASS_INFO 17
42#define SELECT_RFKILL 11
43#define SELECT_APP_REGISTRATION 3
44#define SELECT_DOCK 22
45#define CAPSULE_EN_TOKEN 0x0461
46#define CAPSULE_DIS_TOKEN 0x0462
47#define WSMT_EN_TOKEN 0x04EC
48#define WSMT_DIS_TOKEN 0x04ED
49#define DELL_WMI_SMBIOS_CMD _IOWR(WMI_IOC, 0, struct dell_wmi_smbios_buffer)
50#endif