1 /* 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 */ 7 #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' 12 struct wmi_ioctl_buffer { 13 __u64 length; 14 __u8 data[]; 15 }; 16 struct calling_interface_buffer { 17 __u16 cmd_class; 18 __u16 cmd_select; 19 volatile __u32 input[4]; 20 volatile __u32 output[4]; 21 } __attribute__((__packed__)); 22 struct dell_wmi_extensions { 23 __u32 argattrib; 24 __u32 blength; 25 __u8 data[]; 26 } __attribute__((__packed__)); 27 struct dell_wmi_smbios_buffer { 28 __u64 length; 29 struct calling_interface_buffer std; 30 struct dell_wmi_extensions ext; 31 } __attribute__((__packed__)); 32 #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 51