From 9289c9826c8295074cdb62d4d35e10d751c5548b Mon Sep 17 00:00:00 2001 From: Marcos Alano Date: Mon, 11 Aug 2025 15:25:24 -0300 Subject: [PATCH] Sync headers with kernel 6.17 Part-of: --- include/linux/freebsd/input-event-codes.h | 8 ++++++++ include/linux/linux/input-event-codes.h | 8 ++++++++ include/linux/linux/input.h | 9 ++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/include/linux/freebsd/input-event-codes.h b/include/linux/freebsd/input-event-codes.h index 3b2524e..ca5851e 100644 --- a/include/linux/freebsd/input-event-codes.h +++ b/include/linux/freebsd/input-event-codes.h @@ -601,6 +601,11 @@ #define BTN_DPAD_LEFT 0x222 #define BTN_DPAD_RIGHT 0x223 +#define BTN_GRIPL 0x224 +#define BTN_GRIPR 0x225 +#define BTN_GRIPL2 0x226 +#define BTN_GRIPR2 0x227 + #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ #define KEY_ROTATE_LOCK_TOGGLE 0x231 /* Display rotation lock */ #define KEY_REFRESH_RATE_TOGGLE 0x232 /* Display refresh rate toggle */ @@ -765,6 +770,9 @@ #define KEY_KBD_LCD_MENU4 0x2bb #define KEY_KBD_LCD_MENU5 0x2bc +/* Performance Boost key (Alienware)/G-Mode key (Dell) */ +#define KEY_PERFORMANCE 0x2bd + #define BTN_TRIGGER_HAPPY 0x2c0 #define BTN_TRIGGER_HAPPY1 0x2c0 #define BTN_TRIGGER_HAPPY2 0x2c1 diff --git a/include/linux/linux/input-event-codes.h b/include/linux/linux/input-event-codes.h index 3b2524e..ca5851e 100644 --- a/include/linux/linux/input-event-codes.h +++ b/include/linux/linux/input-event-codes.h @@ -601,6 +601,11 @@ #define BTN_DPAD_LEFT 0x222 #define BTN_DPAD_RIGHT 0x223 +#define BTN_GRIPL 0x224 +#define BTN_GRIPR 0x225 +#define BTN_GRIPL2 0x226 +#define BTN_GRIPR2 0x227 + #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ #define KEY_ROTATE_LOCK_TOGGLE 0x231 /* Display rotation lock */ #define KEY_REFRESH_RATE_TOGGLE 0x232 /* Display refresh rate toggle */ @@ -765,6 +770,9 @@ #define KEY_KBD_LCD_MENU4 0x2bb #define KEY_KBD_LCD_MENU5 0x2bc +/* Performance Boost key (Alienware)/G-Mode key (Dell) */ +#define KEY_PERFORMANCE 0x2bd + #define BTN_TRIGGER_HAPPY 0x2c0 #define BTN_TRIGGER_HAPPY1 0x2c0 #define BTN_TRIGGER_HAPPY2 0x2c1 diff --git a/include/linux/linux/input.h b/include/linux/linux/input.h index 7f37e6e..fff30fa 100644 --- a/include/linux/linux/input.h +++ b/include/linux/linux/input.h @@ -6,14 +6,16 @@ * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. */ -#ifndef _INPUT_H -#define _INPUT_H +#ifndef _UAPI_INPUT_H +#define _UAPI_INPUT_H +#ifndef __KERNEL__ #include #include #include #include +#endif #include "input-event-codes.h" @@ -273,6 +275,7 @@ struct input_mask { #define BUS_CEC 0x1E #define BUS_INTEL_ISHTP 0x1F #define BUS_AMD_SFH 0x20 +#define BUS_SDW 0x21 /* * MT_TOOL types @@ -513,4 +516,4 @@ struct ff_effect { #define FF_MAX 0x7f #define FF_CNT (FF_MAX+1) -#endif /* _INPUT_H */ +#endif /* _UAPI_INPUT_H */