mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Merge tag 'platform-drivers-x86-v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver updates from Hans de Goede: "Highlights: - Microsoft Surface devices System Aggregator Module support - SW_TABLET_MODE reporting improvements - thinkpad_acpi keyboard language setting support - platform / DPTF profile settings support: - Base / userspace API parts merged from Rafael's acpi-platform branch - thinkpad_acpi and ideapad-laptop support through pdx86 - Remove support for some obsolete Intel MID platforms through merging of the shared intel-mid-removal branch - Big cleanup of the ideapad-laptop driver - Misc other fixes / new hw support / quirks" * tag 'platform-drivers-x86-v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (99 commits) platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds platform/surface: aggregator: Fix access of unaligned value tools/power/x86/intel-speed-select: Update version to 1.8 tools/power/x86/intel-speed-select: Add new command to get/set TRL tools/power/x86/intel-speed-select: Add new command turbo-mode Platform: OLPC: Constify static struct regulator_ops platform/surface: Add Surface Hot-Plug driver platform/x86: intel_scu_wdt: Drop mistakenly added const platform/x86: Kconfig: add missing selects for ideapad-laptop platform/x86: acer-wmi: Don't use ACPI_EXCEPTION() platform/x86: thinkpad_acpi: Replace ifdef CONFIG_ACPI_PLATFORM_PROFILE with depends on platform/x86: thinkpad_acpi: Fix 'warning: no previous prototype for' warnings platform/x86: msi-wmi: Fix variable 'status' set but not used compiler warning platform/surface: surface3-wmi: Fix variable 'status' set but not used compiler warning platform/x86: Move all dell drivers to their own subdirectory Documentation/ABI: sysfs-platform-ideapad-laptop: conservation_mode attribute Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute paths platform/x86: ideapad-laptop: add "always on USB charging" control support platform/x86: ideapad-laptop: add keyboard backlight control support platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs ...
This commit is contained in:
78
include/uapi/linux/surface_aggregator/cdev.h
Normal file
78
include/uapi/linux/surface_aggregator/cdev.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
||||
/*
|
||||
* Surface System Aggregator Module (SSAM) user-space EC interface.
|
||||
*
|
||||
* Definitions, structs, and IOCTLs for the /dev/surface/aggregator misc
|
||||
* device. This device provides direct user-space access to the SSAM EC.
|
||||
* Intended for debugging and development.
|
||||
*
|
||||
* Copyright (C) 2020 Maximilian Luz <luzmaximilian@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H
|
||||
#define _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
/**
|
||||
* enum ssam_cdev_request_flags - Request flags for SSAM cdev request IOCTL.
|
||||
*
|
||||
* @SSAM_CDEV_REQUEST_HAS_RESPONSE:
|
||||
* Specifies that the request expects a response. If not set, the request
|
||||
* will be directly completed after its underlying packet has been
|
||||
* transmitted. If set, the request transport system waits for a response
|
||||
* of the request.
|
||||
*
|
||||
* @SSAM_CDEV_REQUEST_UNSEQUENCED:
|
||||
* Specifies that the request should be transmitted via an unsequenced
|
||||
* packet. If set, the request must not have a response, meaning that this
|
||||
* flag and the %SSAM_CDEV_REQUEST_HAS_RESPONSE flag are mutually
|
||||
* exclusive.
|
||||
*/
|
||||
enum ssam_cdev_request_flags {
|
||||
SSAM_CDEV_REQUEST_HAS_RESPONSE = 0x01,
|
||||
SSAM_CDEV_REQUEST_UNSEQUENCED = 0x02,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct ssam_cdev_request - Controller request IOCTL argument.
|
||||
* @target_category: Target category of the SAM request.
|
||||
* @target_id: Target ID of the SAM request.
|
||||
* @command_id: Command ID of the SAM request.
|
||||
* @instance_id: Instance ID of the SAM request.
|
||||
* @flags: Request flags (see &enum ssam_cdev_request_flags).
|
||||
* @status: Request status (output).
|
||||
* @payload: Request payload (input data).
|
||||
* @payload.data: Pointer to request payload data.
|
||||
* @payload.length: Length of request payload data (in bytes).
|
||||
* @response: Request response (output data).
|
||||
* @response.data: Pointer to response buffer.
|
||||
* @response.length: On input: Capacity of response buffer (in bytes).
|
||||
* On output: Length of request response (number of bytes
|
||||
* in the buffer that are actually used).
|
||||
*/
|
||||
struct ssam_cdev_request {
|
||||
__u8 target_category;
|
||||
__u8 target_id;
|
||||
__u8 command_id;
|
||||
__u8 instance_id;
|
||||
__u16 flags;
|
||||
__s16 status;
|
||||
|
||||
struct {
|
||||
__u64 data;
|
||||
__u16 length;
|
||||
__u8 __pad[6];
|
||||
} payload;
|
||||
|
||||
struct {
|
||||
__u64 data;
|
||||
__u16 length;
|
||||
__u8 __pad[6];
|
||||
} response;
|
||||
} __attribute__((__packed__));
|
||||
|
||||
#define SSAM_CDEV_REQUEST _IOWR(0xA5, 1, struct ssam_cdev_request)
|
||||
|
||||
#endif /* _UAPI_LINUX_SURFACE_AGGREGATOR_CDEV_H */
|
Reference in New Issue
Block a user