Lines Matching +full:linux +full:- +full:event +full:- +full:codes
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Surface DTX (clipboard detachment system driver) user-space interface.
6 * device allows user-space to control the clipboard detachment process on
9 * Copyright (C) 2020-2021 Maximilian Luz <luzmaximilian@gmail.com>
15 #include <linux/ioctl.h>
16 #include <linux/types.h>
42 /* Runtime errors (non-critical) */
62 * enum sdtx_device_mode - Mode describing how (and if) the clipboard is
81 * struct sdtx_event - Event provided by reading from the DTX device file.
82 * @length: Length of the event payload, in bytes.
83 * @code: Event code, detailing what type of event this is.
84 * @data: Payload of the event, containing @length bytes.
86 * See &enum sdtx_event_code for currently valid event codes.
95 * enum sdtx_event_code - Code describing the type of an event.
96 * @SDTX_EVENT_REQUEST: Detachment request event type.
97 * @SDTX_EVENT_CANCEL: Cancel detachment process event type.
98 * @SDTX_EVENT_BASE_CONNECTION: Base/clipboard connection change event type.
99 * @SDTX_EVENT_LATCH_STATUS: Latch status change event type.
100 * @SDTX_EVENT_DEVICE_MODE: Device mode change event type.
102 * Used in &struct sdtx_event to describe the type of the event. Further event
103 * codes are reserved for future use. Any event parser should be able to
106 * Consult the DTX user-space interface documentation for details regarding
107 * the individual event types.
118 * struct sdtx_base_info - Describes if and what type of base is connected.