/linux-6.14.4/drivers/hid/bpf/progs/ |
D | Huion__Inspiroy-2-S.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 /* Filled in by udev-hid-bpf */ 26 /* How this BPF program works: the tablet has two modes, firmware mode and 27 * tablet mode. In firmware mode (out of the box) the tablet sends button events 28 * and the dial as keyboard combinations. In tablet mode it uses a vendor specific 30 * Depending on the mode some hid reports are never sent and the corresponding 33 * To switch the tablet use e.g. https://github.com/whot/huion-switcher 36 * This BPF works for both modes. The huion-switcher tool sets the 37 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware 39 * If that property is not set we fix all hidraw nodes so the tablet works in [all …]
|
D | Huion__Dial-2.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 /* Filled in by udev-hid-bpf */ 27 /* How this BPF program works: the tablet has two modes, firmware mode and 28 * tablet mode. In firmware mode (out of the box) the tablet sends button events 29 * and the dial as keyboard combinations. In tablet mode it uses a vendor specific 31 * Depending on the mode some hid reports are never sent and the corresponding 34 * To switch the tablet use e.g. https://github.com/whot/huion-switcher 37 * This BPF works for both modes. The huion-switcher tool sets the 38 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware 40 * If that property is not set we fix all hidraw nodes so the tablet works in [all …]
|
D | XPPen__DecoMini4.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * XP-Pen devices return a descriptor with the values the driver should use when 21 * ----- ----- ----- ----- 23 * | | | `- Resolution: 5080 (13d8) 24 * | | `- Maximum pressure: 8191 (1FFF) 25 * | `- Logical maximum Y: 15240 (3B88) 26 * `- Logical maximum X: 20320 (4F60) 41 * The tablet send these values when the pad buttons are pressed individually: 44 * Button 1: 06 00 05 00 00 00 00 00 -> b 45 * Button 2: 06 00 08 00 00 00 00 00 -> e [all …]
|
/linux-6.14.4/drivers/platform/surface/ |
D | surface_aggregator_tabletsw.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Surface System Aggregator Module (SSAM) tablet mode switch driver. 19 /* -- SSAM generic tablet switch driver framework. -------------------------- */ 73 const char *state = sw->ops.state_name(sw, &sw->state); in state_show() 92 int tablet, status; in ssam_tablet_sw_update_workfn() local 94 status = sw->ops.get_state(sw, &state); in ssam_tablet_sw_update_workfn() 98 if (sw->state.source == state.source && sw->state.state == state.state) in ssam_tablet_sw_update_workfn() 100 sw->state = state; in ssam_tablet_sw_update_workfn() 103 tablet = sw->ops.state_is_tablet_mode(sw, &state); in ssam_tablet_sw_update_workfn() 104 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Microsoft Surface Platform-Specific Drivers 7 bool "Microsoft Surface Platform-Specific Device Drivers" 11 Say Y here to get to see options for platform-specific device drivers 29 be called surface3-wmi. 47 on 5th- and 6th-generation Microsoft Surface devices (including 55 thermal sensor access, and real-time clock information, depending on 59 tristate "Surface System Aggregator Module User-Space Interface" 62 Provides a misc-device interface to the Surface System Aggregator 67 the SSAM controller. Said client device manages a misc-device [all …]
|
D | surface_dtx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Provides a user-space interface to properly handle clipboard/tablet 9 * use), or request detachment via user-space. 11 * Copyright (C) 2019-2022 Maximilian Luz <[email protected]> 34 /* -- SSAM interface. ------------------------------------------------------- */ 136 /* -- Main structures. ------------------------------------------------------ */ 191 mutex_destroy(&ddev->write_lock); in __sdtx_device_release() 198 kref_get(&ddev->kref); in sdtx_device_get() 206 kref_put(&ddev->kref, __sdtx_device_release); in sdtx_device_put() 210 /* -- Firmware value translations. ------------------------------------------ */ [all …]
|
/linux-6.14.4/drivers/hid/ |
D | hid-letsketch.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Driver for the LetSketch / VSON WP9620N drawing tablet. 6 * This drawing tablet is also sold under other brand names such as Case U, 12 * to special key-combos. E.g. the 2 stylus buttons send right mouse clicks / 23 * Interface 1 EP 0x82 bootclass mouse, rdesc len 83, report id 0x0a, Tablet 27 * with a phone in portraid mode, while using the tablet in landscape mode. 31 * This interfaces send various hard-coded key-combos for the pad buttons 35 * This reports right-click mouse-button events for the 1st stylus button 46 #include "hid-ids.h" 71 return hid_hw_open(data->hdev); in letsketch_open() [all …]
|
D | hid-waltop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include "hid-ids.h" 23 * tablet input mode, switching it between "default", "tablet" and "ink". 25 * This driver only uses "default" mode for all the supported tablets. This 26 * mode tries to be HID-compatible (not very successfully), but cripples the 29 * The "tablet" mode uses some proprietary, yet decipherable protocol, which 30 * represents the correct resolution, but is possibly HID-incompatible (i.e. 33 * The purpose of the "ink" mode is unknown. 35 * The feature reports needed for switching to each mode are these: 38 * 02 16 01 tablet [all …]
|
D | hid-uclogic-params.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - tablet initialization and parameter retrieval 16 #include "hid-uclogic-params.h" 17 #include "hid-uclogic-rdesc.h" 19 #include "hid-ids.h" 25 * uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type 27 * @inrange: The in-range reporting type to convert. 49 * uclogic_params_pen_hid_dbg() - Dump tablet interface pen parameters 53 * Dump tablet interface pen parameters with hid_dbg(). The dump is indented [all …]
|
D | hid-google-hammer.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Author: Wei-Ning Huang <[email protected]> 18 #include <linux/input/vivaldi-fmap.h> 28 #include "hid-ids.h" 29 #include "hid-vivaldi-common.h" 32 * C(hrome)B(ase)A(ttached)S(witch) - switch exported by Chrome EC and reporting 33 * state of the "Whiskers" base - attached or detached. Whiskers USB device also 34 * reports position of the keyboard - folded or not. Combining base state and 35 * position allows us to generate proper "Tablet mode" events. 66 return -ENOMEM; in cbas_ec_query_base() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 22 most commonly used to refer to the USB-HID specification, but other 27 removed from the HID bus by the transport-layer drivers, such as 58 to work on raw hid events when they want to, and avoid using transport-specific 64 tristate "User-space I/O driver support for HID subsystem" 67 Say Y here if you want to provide HID I/O Drivers from user-space. 68 This allows to write I/O drivers in user-space and feed the data from 71 user-space device. 73 This driver cannot be used to parse HID-reports in user-space and write 74 special HID-drivers. You should use hidraw for that. [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-driver-wacom | 4 Contact: linux-[email protected] 7 controls reporting speed of Wacom bluetooth tablet. Reading 8 from this file returns 1 if tablet reports in high speed mode 14 Contact: linux-[email protected] 21 presence of said LEDs and OLEDs on the tablet device. 25 Contact: linux-[email protected] 29 when the stylus does not touch the tablet surface, and no 35 Contact: linux-[email protected] 39 when the stylus touches the tablet surface, or any button is 44 Contact: linux-[email protected] [all …]
|
D | sysfs-bus-surface_aggregator-tabletsw | 6 This attribute returns a string with the current type-cover 10 - "disconnected": The type-cover has been disconnected. 12 - "closed": The type-cover has been folded closed and lies on 15 - "laptop": The type-cover is open and in laptop-mode, i.e., 18 - "folded-canvas": The type-cover has been folded back 19 part-ways, but does not lie flush with the back side of the 20 device. In general, this means that the kick-stand is used 23 - "folded-back": The type cover has been fully folded back and 26 - "<unknown>": The current state is unknown to the driver, for 27 example due to newer as-of-yet unsupported hardware. [all …]
|
/linux-6.14.4/drivers/platform/chrome/ |
D | chromeos_tbmc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Driver to detect Tablet Mode for ChromeOS convertible. 30 status = acpi_evaluate_integer(adev->handle, "TBMC", NULL, &state); in chromeos_tbmc_query_switch() 32 return -ENODEV; in chromeos_tbmc_query_switch() 45 return chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_resume() 50 acpi_pm_wakeup_event(&adev->dev); in chromeos_tbmc_notify() 53 chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_notify() 56 dev_err(&adev->dev, "Unexpected event: 0x%08X\n", event); in chromeos_tbmc_notify() 70 struct device *dev = &adev->dev; in chromeos_tbmc_add() 75 return -ENOMEM; in chromeos_tbmc_add() [all …]
|
/linux-6.14.4/drivers/platform/x86/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 63 control, fn-lock, mic-mute LED, and other extra features. 66 will be called huawei-wmi. [all …]
|
D | dual_accel_detect.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Helper code to detect 360 degree hinges (yoga) style 2-in-1 devices using 2 accelerometers 7 * ACPI methods, to let the firmware know if the 2-in-1 is in tablet- or laptop-mode. 9 * tablet-mode as well as to report SW_TABLET_MODE info to the OS. 25 adev = acpi_dev_get_first_match_dev("BOSC0200", NULL, -1); in dual_accel_detect_bosc0200() 39 if (acpi_dev_present("KIOX010A", NULL, -1) && in dual_accel_detect() 40 acpi_dev_present("KIOX020A", NULL, -1)) in dual_accel_detect() 44 if (acpi_dev_present("DUAL250E", NULL, -1)) in dual_accel_detect()
|
D | lenovo-ymc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lenovo-ymc.c - Lenovo Yoga Mode Control driver 13 #include <linux/input/sparse-keymap.h> 15 #include "ideapad-laptop.h" 17 #define LENOVO_YMC_EVENT_GUID "06129D99-6083-4164-81AD-F092F9D773A6" 18 #define LENOVO_YMC_QUERY_GUID "09B0EE6E-C3FD-4243-8DA1-7911FF80BB8C" 25 MODULE_PARM_DESC(force, "Force loading on boards without a convertible DMI chassis-type"); 50 /* Tablet */ 61 struct lenovo_ymc_private *priv = dev_get_drvdata(&wdev->dev); in lenovo_ymc_notify() 75 dev_warn(&wdev->dev, in lenovo_ymc_notify() [all …]
|
D | lenovo-yoga-tab2-pro-1380-fastcharger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Tablet 2 1380F / 1380L models. 26 #define YT2_1380_FC_PDEV_NAME "lenovo-yoga-tab2-pro-1380-fastcharger" 28 #define YT2_1380_FC_SERDEV_NAME "serial0-0" 29 #define YT2_1380_FC_EXTCON_NAME "i2c-lc824206xa" 51 struct pinctrl_state *state = enable ? fc->gpio_state : fc->uart_state; in yt2_1380_fc_set_gpio_mode() 54 ret = pinctrl_select_state(fc->pinctrl, state); in yt2_1380_fc_set_gpio_mode() 56 dev_err(fc->dev, "Error %d setting pinctrl state\n", ret); in yt2_1380_fc_set_gpio_mode() 66 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_DCP) > 0; in yt2_1380_fc_dedicated_charger_connected() 71 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_FAST) > 0; in yt2_1380_fc_fast_charger_connected() [all …]
|
/linux-6.14.4/drivers/input/tablet/ |
D | aiptek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2002-2004 Bryan W. Headley <[email protected]> 20 * v0.1 - Initial release 21 * v0.2 - Hack to get around fake event 28's. (Bryan W. Headley) 22 * v0.3 - Make URB dynamic (Bryan W. Headley, Jun-8-2002) 24 * v0.4 - Rewrote substantial portions of the code to deal with 26 * support of 6000U - 12000U, procfs, and macro key support 27 * (Jan-1-2003 - Feb-5-2003, Bryan W. Headley) 28 * v1.0 - Added support for diagnostic messages, count of messages 29 * received from URB - Mar-8-2003, Bryan W. Headley [all …]
|
/linux-6.14.4/arch/arm/boot/dts/vt8500/ |
D | wm8650-mid.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8650-mid.dts - Device tree file for Wondermedia WM8650-MID Tablet 8 /dts-v1/; 12 model = "Wondermedia WM8650-MID Tablet"; 16 bits-per-pixel = <16>; 18 display-timings { 19 native-mode = <&timing0>; 20 timing0: timing-800x480 { 21 clock-frequency = <0>; /* unused but required */ 24 hfront-porch = <40>; [all …]
|
D | wm8850-w70v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8850-w70v2.dts 4 * - Device tree file for Wondermedia WM8850 Tablet 5 * - 'W70-V2' mainboard 6 * - HongLianYing 'HLY070ML268-21A' 7" LCD panel 11 /dts-v1/; 13 #include <dt-bindings/pwm/pwm.h> 16 model = "Wondermedia WM8850-W70v2 Tablet"; 19 compatible = "pwm-backlight"; 22 brightness-levels = <0 40 60 80 100 130 190 255>; [all …]
|
/linux-6.14.4/drivers/input/mouse/ |
D | vsxxxaa.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers) 4 * DEC VSXXX-GA mouse (rectangular mouse, with ball) 5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus) 7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de> 24 * supply at +5V and -12V. 30 * | 4 --- 3 | 32 * ------- 35 * 1 (GND) 5 7 - 36 * 2 (RxD) 2 3 - [all …]
|
/linux-6.14.4/drivers/platform/x86/x86-android-tablets/ |
D | lenovo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2021-2023 Hans de Goede <[email protected]> 27 #include "shared-psy-info.h" 28 #include "x86-android-tablets.h" 33 * The Android kernels have a hack in the i915 driver to write a non-standard 34 * panel specific DSI register to set the duty-cycle of the LCD's PWM output. 46 * But on some models the panel's PWM output defaults to a duty-cycle of 65 PROPERTY_ENTRY_U32("hid-descr-addr", 0x0001), 66 PROPERTY_ENTRY_U32("post-reset-deassert-delay-ms", 150), 75 * The HiDeep IST940E touchscreen comes up in I2C-HID mode. The native protocol [all …]
|
D | other.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2021-2023 Hans de Goede <[email protected]> 19 #include <dt-bindings/leds/common.h> 21 #include "shared-psy-info.h" 22 #include "x86-android-tablets.h" 24 /* Acer Iconia One 7 B1-750 has an Android factory image with everything hardcoded */ 26 "-1", "0", "0", 32 PROPERTY_ENTRY_STRING_ARRAY("mount-matrix", acer_b1_750_mount_matrix), 42 /* Novatek NVT-ts touchscreen */ 44 .type = "nt11205-ts", [all …]
|
/linux-6.14.4/drivers/platform/x86/intel/ |
D | hid.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/input/sparse-keymap.h> 21 TABLET_SW_AUTO = -1, 31 "If you need this please report this to: platform-driver-[email protected]"); 36 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. " 37 "If you need this please report this to: platform-driver-[email protected]"); 39 /* When NOT in tablet mode, VGBS returns with the flag 0x40 */ 62 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */ 63 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */ 72 /* 13 has two different meanings in the spec -- ignore it. */ [all …]
|