/linux/Documentation/devicetree/bindings/input/ |
H A D | matrix-keymap.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/matrix-keymap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common Key Matrices on Matrix-connected Key Boards 10 - Olof Johansson <olof@lixom.net> 13 A simple common binding for matrix-connected key boards. Currently targeted at 18 cases where there is a modifier key such as a Fn key. Proposed names 19 for said properties are "linux,fn-keymap" or with another descriptive 20 word for the modifier other from "Fn". [all …]
|
H A D | nvidia,tegra20-kbc.txt | 7 - compatible: "nvidia,tegra20-kbc" 8 - reg: Register base address of KBC. 9 - interrupts: Interrupt number for the KBC. 10 - nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an 12 - nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an 14 - linux,keymap: The keymap for keys as described in the binding document 15 devicetree/bindings/input/matrix-keymap.txt. 16 - clocks: Must contain one entry, for the module clock. 17 See ../clocks/clock-bindings.txt for details. 18 - resets: Must contain an entry for each entry in reset-names. [all …]
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-wmi-base.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2014-2015 Pali Rohár <pali@kernel.org> 22 #include <linux/input/sparse-keymap.h> 28 #include "dell-smbios.h" 29 #include "dell-wmi-descriptor.h" 30 #include "dell-wmi-privacy.h" 37 #define DELL_EVENT_GUID "9DBB5994-A997-11DA-B012-B622A1EF5492" 74 * Keymap for WMI events of type 0x0000 165 * Originally Matthew Garrett created this dell-wmi driver specially for 196 struct dell_bios_keymap_entry keymap[]; member [all …]
|
/linux/drivers/input/misc/ |
H A D | wistron_btns.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/input/sparse-keymap.h> 25 /* How often we poll keys - msecs */ 43 module_param_named(keymap, keymap_name, charp, 0); 44 MODULE_PARM_DESC(keymap, "Keymap name, if it can't be autodetected [generic, 1557/MS2141]"); 70 : "=a" (regs->eax), "=b" (regs->ebx), "=c" (regs->ecx) in call_bios() 71 : "0" (regs->eax), "1" (regs->ebx), "2" (regs->ecx), in call_bios() 89 return -1; in locate_wistron_bios() 103 return -ENODEV; in map_bios() 136 return -ENOMEM; in map_bios() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | pinephone-keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org> 18 #define DRV_NAME "pinephone-keyboard" 106 /* FN layer */ 141 .keymap = ppkb_keymap, 160 struct i2c_client *client = adap->algo_data; in ppkb_adap_smbus_xfer() 165 buf[1] = data->byte; in ppkb_adap_smbus_xfer() 183 return -EIO; in ppkb_adap_smbus_xfer() 190 data->byte = ret; in ppkb_adap_smbus_xfer() 209 unsigned short *keymap = ppkb->input->keycode; in ppkb_update() local [all …]
|
H A D | tegra-kbc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2009-2011, NVIDIA Corporation. 156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys() 165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys() 166 /* If driver uses Fn map, do not report the Fn key. */ in tegra_kbc_report_keys() 167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys() 178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys() 182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys() 190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys() 205 * If the platform uses Fn keymaps, translate keys on a Fn keypress. in tegra_kbc_report_keys() [all …]
|
/linux/drivers/platform/x86/ |
H A D | msi-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Most stuff taken over from hp-wmi 14 #include <linux/input/sparse-keymap.h> 25 #define DRV_NAME "msi-wmi" 27 #define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45" 28 #define MSIWMI_MSI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2" 29 #define MSIWMI_WIND_EVENT_GUID "5B3CC38A-40D9-7245-8AE6-1145B751BE3F" 43 WIND_KEY_TOUCHPAD = 0x08, /* Fn+F3 touchpad toggle */ 44 WIND_KEY_BLUETOOTH = 0x56, /* Fn+F11 Bluetooth toggle */ 45 WIND_KEY_CAMERA, /* Fn+F6 webcam toggle */ [all …]
|
H A D | asus-nb-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include <linux/input/sparse-keymap.h> 21 #include "asus-wmi.h" 23 #define ASUS_NB_WMI_FILE "asus-nb-wmi" 29 #define ASUS_NB_WMI_EVENT_GUID "0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C" 34 * WAPF defines the behavior of the Fn+Fx wlan key 42 static int wapf = -1; 46 static int tablet_mode_sw = -1; 48 …ULE_PARM_DESC(tablet_mode_sw, "Tablet mode detect: -1:auto 0:disable 1:kbd-dock 2:lid-flip 3:lid-f… 62 if (quirks->filter_i8042_e1_extended_codes) { in asus_i8042_filter() [all …]
|
H A 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 …]
|
H A D | asus-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * asus-laptop.c - Asus Laptop Support 5 * Copyright (C) 2002-2005 Julien Lerouge, 2003-2006 Karol Kozimor 6 * Copyright (C) 2006-2007 Corentin Chary 13 * Pontus Fuchs - Helper functions, cleanup 14 * Johann Wiesner - Small compile fixes 15 * John Belmonte - ACPI code for Toshiba laptop was a good starting point. 16 * Eric Burghard - LED display support for W1N 17 * Josh Green - Light Sens support 18 * Thomas Tuttle - His first patch for led support was very helpful [all …]
|
H A D | ideapad-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ideapad-laptop.c - Lenovo IdeaPad ACPI Extras 23 #include <linux/input/sparse-keymap.h> 35 #include "ideapad-laptop.h" 39 #include <dt-bindings/leds/common.h> 119 * These correspond to the number of supported states - 1 200 "Enable DYTC version 4 platform-profile support. " 201 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 207 "If you need this please report this to: platform-driver-x86@vger.kernel.org"); 212 "Enable driver based updates of the fn-lock LED on fn-lock changes. " [all …]
|
H A D | thinkpad_acpi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * thinkpad_acpi.c - ThinkPad ACPI Extras 5 * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> 6 * Copyright (C) 2006-2009 Henrique de Moraes Holschuh <hmh@hmh.eng.br> 16 * 2007-10-20 changelog trimmed down 18 * 2007-03-27 0.14 renamed to thinkpad_acpi and moved to 21 * 2006-11-22 0.13 new maintainer 23 * not be updated further in-file. 25 * 2005-03-17 0.11 support for 600e, 770x 28 * 2005-01-16 0.9 use MODULE_VERSION [all …]
|
H A D | huawei-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/input/sparse-keymap.h> 26 #define HWMI_METHOD_GUID "ABBC0F5B-8EA1-11D1-A000-C90629100000" 27 #define HWMI_EVENT_GUID "ABBC0F5C-8EA1-11D1-A000-C90629100000" 30 #define WMI0_EXPENSIVE_GUID "39142400-C6A3-40fa-BADB-8A2652834100" 31 #define WMI0_EVENT_GUID "59142400-C6A3-40fa-BADB-8A2652834100" 93 static int battery_reset = -1; 94 static int report_brightness = -1; 98 "Reset battery charge values to (0-0) before disabling it using (0-100)"); 107 quirks = dmi->driver_data; in dmi_matched() [all …]
|
H A D | sony-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2004-2005 Stelian Pop <stelian@popies.net> 6 * Copyright (C) 2007-2009 Mattia Dongili <malattia@linux.it> 14 * Copyright (C) 2001-2005 Stelian Pop <stelian@popies.net> 18 * Copyright (C) 2001-2002 Alcôve <www.alcove.com> 24 * Copyright (C) 2000 Takaya Kinjo <t-kinjo@tc4.so-net.ne.jp> 51 #include <linux/sony-laptop.h> 66 #define SONY_NC_CLASS "sony-nc" 70 #define SONY_PIC_CLASS "sony-pic" 105 static int minor = -1; [all …]
|
H A D | asus-wmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright(C) 2010-2011 Corentin Chary <corentin.chary@gmail.com> 22 #include <linux/hwmon-sysfs.h> 25 #include <linux/input/sparse-keymap.h> 32 #include <linux/platform_data/x86/asus-wmi.h> 45 #include "asus-wmi.h" 58 #define ASUS_WMI_MGMT_GUID "97845ED0-4E6D-11DE-8A39-0800200C9A66" 140 /* New modes for devices with 3 mini-led mode types */ 192 u16 mfun; /* probably "Multi-function" to be called */ 193 u16 sfun; /* probably "Sub-function" to be called */ [all …]
|
/linux/arch/powerpc/boot/dts/ |
H A D | ac14xx.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #address-cells = <1>; 15 #size-cells = <1>; 26 timebase-frequency = <40000000>; /* 40 MHz (csb/4) */ 27 bus-frequency = <160000000>; /* 160 MHz csb bus */ 28 clock-frequency = <400000000>; /* 400 MHz ppc core */ 49 compatible = "cfi-flash"; 51 #address-cells = <1>; 52 #size-cells = <1>; 53 bank-width = <2>; [all …]
|
/linux/Documentation/admin-guide/laptops/ |
H A D | thinkpad-acpi.rst | 9 - Borislav Deianov <borislav@users.sf.net> 10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br> 12 http://ibm-acpi.sf.net/ 19 This driver used to be named ibm-acpi until kernel 2.6.21 and release 20 0.13-20070314. It used to be in the drivers/acpi tree, but it was 21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel 25 The driver is named "thinkpad-acpi". In some places, like module 29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too 33 ------ 38 - Fn key combinations [all …]
|
/linux/drivers/platform/x86/intel/ |
H A 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-x86@vger.kernel.org"); 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-x86@vger.kernel.org"); 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. */ 80 /* 27: wake -- needs special handling */ [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | atmel_mxt_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2011-2014 Atmel Corporation 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-ioctl.h> 32 #include <media/videobuf2-v4l2.h> 33 #include <media/videobuf2-vmalloc.h> 34 #include <dt-bindings/input/atmel-maxtouch.h> 367 return obj->size_minus_one + 1; in mxt_obj_size() 372 return obj->instances_minus_one + 1; in mxt_obj_instances() 413 dev_dbg(&data->client->dev, "message: %*ph\n", in mxt_dump_message() [all …]
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com 21 #define BPF_DW 0x18 /* double word (64-bit) */ 23 #define BPF_ATOMIC 0xc0 /* atomic memory ops - op type in immediate */ 24 #define BPF_XADD 0xc0 /* exclusive add - legacy name */ 32 #define BPF_TO_LE 0x00 /* convert to little-endian */ 33 #define BPF_TO_BE 0x08 /* convert to big-endian */ 52 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ 74 /* BPF has 10 general purpose 64-bit registers and stack frame. */ 116 BPF_CGROUP_ITER_DESCENDANTS_PRE, /* walk descendants in pre-order. */ [all …]
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com 21 #define BPF_DW 0x18 /* double word (64-bit) */ 23 #define BPF_ATOMIC 0xc0 /* atomic memory ops - op type in immediate */ 24 #define BPF_XADD 0xc0 /* exclusive add - legacy name */ 32 #define BPF_TO_LE 0x00 /* convert to little-endian */ 33 #define BPF_TO_BE 0x08 /* convert to big-endian */ 52 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ 74 /* BPF has 10 general purpose 64-bit registers and stack frame. */ 116 BPF_CGROUP_ITER_DESCENDANTS_PRE, /* walk descendants in pre-order. */ [all …]
|
/linux/drivers/hid/ |
H A 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 …]
|
H A D | hid-sony.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 10 * Copyright (c) 2006-2013 Jiri Kosina 12 * Copyright (c) 2014-2016 Frank Praznik <frank.praznik@gmail.com> 14 * Copyright (c) 2020-2021 Pascal Giard <pascal.giard@etsmtl.ca> 45 #include "hid-ids.h" 328 * ------------------- 361 * and hence the same keymap indices, however not all axes/buttons 449 struct sixaxis_led led[4]; /* LEDx at (4 - x) */ [all …]
|
/linux/arch/arm/mach-pxa/ |
H A D | spitz.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support for Sharp SL-Cxx00 Series of PDAs 4 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi) 20 #include <linux/platform_data/i2c-pxa.h> 28 #include <linux/input-event-codes.h> 37 #include <asm/mach-types.h> 43 #include "pxa27x-udc.h" 45 #include <linux/platform_data/mmc-pxamci.h> 46 #include <linux/platform_data/usb-ohci-pxa27x.h> 47 #include <linux/platform_data/video-pxafb.h> [all …]
|