mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 18:10:32 +00:00

Adds lenovo-wmi-events driver. The events driver is designed as a general entrypoint for all Lenovo WMI Events. It acts as a notification chain head that will process event data and pass it on to registered drivers so they can react to the events. Currently only the Gamezone interface Thermal Mode Event GUID is implemented in this driver. It is documented in the Gamezone documentation. Suggested-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com> Link: https://lore.kernel.org/r/20250702033826.1057762-4-derekjohn.clark@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
21 lines
537 B
C
21 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/* Copyright (C) 2025 Derek J. Clark <derekjohn.clark@gmail.com> */
|
|
|
|
#ifndef _LENOVO_WMI_EVENTS_H_
|
|
#define _LENOVO_WMI_EVENTS_H_
|
|
|
|
struct device;
|
|
struct notifier_block;
|
|
|
|
enum lwmi_events_type {
|
|
LWMI_EVENT_THERMAL_MODE = 1,
|
|
};
|
|
|
|
int lwmi_events_register_notifier(struct notifier_block *nb);
|
|
int lwmi_events_unregister_notifier(struct notifier_block *nb);
|
|
int devm_lwmi_events_register_notifier(struct device *dev,
|
|
struct notifier_block *nb);
|
|
|
|
#endif /* !_LENOVO_WMI_EVENTS_H_ */
|