~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/x86/nvidia-wmi-ec-backlight.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright (c) 2020, NVIDIA CORPORATION.  All rights reserved.
  4  */
  5 
  6 #ifndef __PLATFORM_DATA_X86_NVIDIA_WMI_EC_BACKLIGHT_H
  7 #define __PLATFORM_DATA_X86_NVIDIA_WMI_EC_BACKLIGHT_H
  8 
  9 #define WMI_BRIGHTNESS_GUID "603E9613-EF25-4338-A3D0-C46177516DB7"
 10 
 11 /**
 12  * enum wmi_brightness_method - WMI method IDs
 13  * @WMI_BRIGHTNESS_METHOD_LEVEL:  Get/Set EC brightness level status
 14  * @WMI_BRIGHTNESS_METHOD_SOURCE: Get/Set EC Brightness Source
 15  */
 16 enum wmi_brightness_method {
 17         WMI_BRIGHTNESS_METHOD_LEVEL = 1,
 18         WMI_BRIGHTNESS_METHOD_SOURCE = 2,
 19         WMI_BRIGHTNESS_METHOD_MAX
 20 };
 21 
 22 /**
 23  * enum wmi_brightness_mode - Operation mode for WMI-wrapped method
 24  * @WMI_BRIGHTNESS_MODE_GET:            Get the current brightness level/source.
 25  * @WMI_BRIGHTNESS_MODE_SET:            Set the brightness level.
 26  * @WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL:  Get the maximum brightness level. This
 27  *                                      is only valid when the WMI method is
 28  *                                      %WMI_BRIGHTNESS_METHOD_LEVEL.
 29  */
 30 enum wmi_brightness_mode {
 31         WMI_BRIGHTNESS_MODE_GET = 0,
 32         WMI_BRIGHTNESS_MODE_SET = 1,
 33         WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL = 2,
 34         WMI_BRIGHTNESS_MODE_MAX
 35 };
 36 
 37 /**
 38  * enum wmi_brightness_source - Backlight brightness control source selection
 39  * @WMI_BRIGHTNESS_SOURCE_GPU: Backlight brightness is controlled by the GPU.
 40  * @WMI_BRIGHTNESS_SOURCE_EC:  Backlight brightness is controlled by the
 41  *                             system's Embedded Controller (EC).
 42  * @WMI_BRIGHTNESS_SOURCE_AUX: Backlight brightness is controlled over the
 43  *                             DisplayPort AUX channel.
 44  */
 45 enum wmi_brightness_source {
 46         WMI_BRIGHTNESS_SOURCE_GPU = 1,
 47         WMI_BRIGHTNESS_SOURCE_EC = 2,
 48         WMI_BRIGHTNESS_SOURCE_AUX = 3,
 49         WMI_BRIGHTNESS_SOURCE_MAX
 50 };
 51 
 52 /**
 53  * struct wmi_brightness_args - arguments for the WMI-wrapped ACPI method
 54  * @mode:    Pass in an &enum wmi_brightness_mode value to select between
 55  *           getting or setting a value.
 56  * @val:     In parameter for value to set when using %WMI_BRIGHTNESS_MODE_SET
 57  *           mode. Not used in conjunction with %WMI_BRIGHTNESS_MODE_GET or
 58  *           %WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL mode.
 59  * @ret:     Out parameter returning retrieved value when operating in
 60  *           %WMI_BRIGHTNESS_MODE_GET or %WMI_BRIGHTNESS_MODE_GET_MAX_LEVEL
 61  *           mode. Not used in %WMI_BRIGHTNESS_MODE_SET mode.
 62  * @ignored: Padding; not used. The ACPI method expects a 24 byte params struct.
 63  *
 64  * This is the parameters structure for the WmiBrightnessNotify ACPI method as
 65  * wrapped by WMI. The value passed in to @val or returned by @ret will be a
 66  * brightness value when the WMI method ID is %WMI_BRIGHTNESS_METHOD_LEVEL, or
 67  * an &enum wmi_brightness_source value with %WMI_BRIGHTNESS_METHOD_SOURCE.
 68  */
 69 struct wmi_brightness_args {
 70         u32 mode;
 71         u32 val;
 72         u32 ret;
 73         u32 ignored[3];
 74 };
 75 
 76 #endif
 77 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php