Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 lines
966 B
C
33 lines
966 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef __HID_PIDFF_H
|
|
#define __HID_PIDFF_H
|
|
|
|
#include <linux/hid.h>
|
|
|
|
/* HID PIDFF quirks */
|
|
|
|
/* Delay field (0xA7) missing. Skip it during set effect report upload */
|
|
#define HID_PIDFF_QUIRK_MISSING_DELAY BIT(0)
|
|
|
|
/* Missing Paramter block offset (0x23). Skip it during SET_CONDITION upload */
|
|
#define HID_PIDFF_QUIRK_MISSING_PBO BIT(1)
|
|
|
|
/* Initialise device control field even if logical_minimum != 1 */
|
|
#define HID_PIDFF_QUIRK_PERMISSIVE_CONTROL BIT(2)
|
|
|
|
/* Use fixed 0x4000 direction during SET_EFFECT report upload */
|
|
#define HID_PIDFF_QUIRK_FIX_CONDITIONAL_DIRECTION BIT(3)
|
|
|
|
/* Force all periodic effects to be uploaded as SINE */
|
|
#define HID_PIDFF_QUIRK_PERIODIC_SINE_ONLY BIT(4)
|
|
|
|
#ifdef CONFIG_HID_PID
|
|
int hid_pidff_init(struct hid_device *hid);
|
|
int hid_pidff_init_with_quirks(struct hid_device *hid, u32 initial_quirks);
|
|
#else
|
|
#define hid_pidff_init NULL
|
|
#define hid_pidff_init_with_quirks NULL
|
|
#endif
|
|
|
|
#endif
|