Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: wmi.h
/*
[0] Fix | Delete
* User API methods for ACPI-WMI mapping driver
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (C) 2017 Dell, Inc.
[3] Fix | Delete
*
[4] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[5] Fix | Delete
* it under the terms of the GNU General Public License version 2 as
[6] Fix | Delete
* published by the Free Software Foundation.
[7] Fix | Delete
*/
[8] Fix | Delete
#ifndef _LINUX_WMI_H
[9] Fix | Delete
#define _LINUX_WMI_H
[10] Fix | Delete
[11] Fix | Delete
#include <linux/ioctl.h>
[12] Fix | Delete
#include <linux/types.h>
[13] Fix | Delete
[14] Fix | Delete
/* WMI bus will filter all WMI vendor driver requests through this IOC */
[15] Fix | Delete
#define WMI_IOC 'W'
[16] Fix | Delete
[17] Fix | Delete
/* All ioctl requests through WMI should declare their size followed by
[18] Fix | Delete
* relevant data objects
[19] Fix | Delete
*/
[20] Fix | Delete
struct wmi_ioctl_buffer {
[21] Fix | Delete
__u64 length;
[22] Fix | Delete
__u8 data[];
[23] Fix | Delete
};
[24] Fix | Delete
[25] Fix | Delete
/* This structure may be modified by the firmware when we enter
[26] Fix | Delete
* system management mode through SMM, hence the volatiles
[27] Fix | Delete
*/
[28] Fix | Delete
struct calling_interface_buffer {
[29] Fix | Delete
__u16 cmd_class;
[30] Fix | Delete
__u16 cmd_select;
[31] Fix | Delete
__volatile__ __u32 input[4];
[32] Fix | Delete
__volatile__ __u32 output[4];
[33] Fix | Delete
} __attribute__((packed));
[34] Fix | Delete
[35] Fix | Delete
struct dell_wmi_extensions {
[36] Fix | Delete
__u32 argattrib;
[37] Fix | Delete
__u32 blength;
[38] Fix | Delete
__u8 data[];
[39] Fix | Delete
} __attribute__((packed));
[40] Fix | Delete
[41] Fix | Delete
struct dell_wmi_smbios_buffer {
[42] Fix | Delete
__u64 length;
[43] Fix | Delete
struct calling_interface_buffer std;
[44] Fix | Delete
struct dell_wmi_extensions ext;
[45] Fix | Delete
} __attribute__((packed));
[46] Fix | Delete
[47] Fix | Delete
/* Whitelisted smbios class/select commands */
[48] Fix | Delete
#define CLASS_TOKEN_READ 0
[49] Fix | Delete
#define CLASS_TOKEN_WRITE 1
[50] Fix | Delete
#define SELECT_TOKEN_STD 0
[51] Fix | Delete
#define SELECT_TOKEN_BAT 1
[52] Fix | Delete
#define SELECT_TOKEN_AC 2
[53] Fix | Delete
#define CLASS_FLASH_INTERFACE 7
[54] Fix | Delete
#define SELECT_FLASH_INTERFACE 3
[55] Fix | Delete
#define CLASS_ADMIN_PROP 10
[56] Fix | Delete
#define SELECT_ADMIN_PROP 3
[57] Fix | Delete
#define CLASS_INFO 17
[58] Fix | Delete
#define SELECT_RFKILL 11
[59] Fix | Delete
#define SELECT_APP_REGISTRATION 3
[60] Fix | Delete
#define SELECT_DOCK 22
[61] Fix | Delete
[62] Fix | Delete
/* whitelisted tokens */
[63] Fix | Delete
#define CAPSULE_EN_TOKEN 0x0461
[64] Fix | Delete
#define CAPSULE_DIS_TOKEN 0x0462
[65] Fix | Delete
#define WSMT_EN_TOKEN 0x04EC
[66] Fix | Delete
#define WSMT_DIS_TOKEN 0x04ED
[67] Fix | Delete
[68] Fix | Delete
/* Dell SMBIOS calling IOCTL command used by dell-smbios-wmi */
[69] Fix | Delete
#define DELL_WMI_SMBIOS_CMD _IOWR(WMI_IOC, 0, struct dell_wmi_smbios_buffer)
[70] Fix | Delete
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function