cregit-Linux how code gets into the kernel

Release 4.7 include/acpi/video.h

Directory: include/acpi
#ifndef __ACPI_VIDEO_H

#define __ACPI_VIDEO_H

#include <linux/errno.h> /* for ENODEV */
#include <linux/types.h> /* for bool */


struct acpi_video_brightness_flags {
	
u8 _BCL_no_ac_battery_levels:1;	/* no AC/Battery levels in _BCL */
	
u8 _BCL_reversed:1;		/* _BCL package is in a reversed order */
	
u8 _BQC_use_index:1;		/* _BQC returns an index value */
};


struct acpi_video_device_brightness {
	
int curr;
	
int count;
	
int *levels;
	
struct acpi_video_brightness_flags flags;
};

struct acpi_device;


#define ACPI_VIDEO_CLASS	"video"


#define ACPI_VIDEO_DISPLAY_CRT  1

#define ACPI_VIDEO_DISPLAY_TV   2

#define ACPI_VIDEO_DISPLAY_DVI  3

#define ACPI_VIDEO_DISPLAY_LCD  4


#define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100

#define ACPI_VIDEO_DISPLAY_LEGACY_PANEL   0x0110

#define ACPI_VIDEO_DISPLAY_LEGACY_TV      0x0200


enum acpi_backlight_type {
	
acpi_backlight_undef = -1,
	
acpi_backlight_none = 0,
	
acpi_backlight_video,
	
acpi_backlight_vendor,
	
acpi_backlight_native,
};

#if IS_ENABLED(CONFIG_ACPI_VIDEO)
extern int acpi_video_register(void);
extern void acpi_video_unregister(void);
extern int acpi_video_get_edid(struct acpi_device *device, int type,
			       int device_id, void **edid);
extern enum acpi_backlight_type acpi_video_get_backlight_type(void);
extern void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type);
/*
 * Note: The value returned by acpi_video_handles_brightness_key_presses()
 * may change over time and should not be cached.
 */
extern bool acpi_video_handles_brightness_key_presses(void);
extern int acpi_video_get_levels(struct acpi_device *device,
				 struct acpi_video_device_brightness **dev_br,
				 int *pmax_level);
#else

static inline int acpi_video_register(void) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
matthew garrettmatthew garrett12100.00%1100.00%
Total12100.00%1100.00%


static inline void acpi_video_unregister(void) { return; }

Contributors

PersonTokensPropCommitsCommitProp
matthew garrettmatthew garrett990.00%150.00%
yakui zhaoyakui zhao110.00%150.00%
Total10100.00%2100.00%


static inline int acpi_video_get_edid(struct acpi_device *device, int type, int device_id, void **edid) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
matthew garrettmatthew garrett27100.00%1100.00%
Total27100.00%1100.00%


static inline enum acpi_backlight_type acpi_video_get_backlight_type(void) { return acpi_backlight_vendor; }

Contributors

PersonTokensPropCommitsCommitProp
hans de goedehans de goede13100.00%1100.00%
Total13100.00%1100.00%


static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type) { }

Contributors

PersonTokensPropCommitsCommitProp
hans de goedehans de goede990.00%150.00%
borislav petkovborislav petkov110.00%150.00%
Total10100.00%2100.00%


static inline bool acpi_video_handles_brightness_key_presses(void) { return false; }

Contributors

PersonTokensPropCommitsCommitProp
hans de goedehans de goede12100.00%1100.00%
Total12100.00%1100.00%


static inline int acpi_video_get_levels(struct acpi_device *device, struct acpi_video_device_brightness **dev_br, int *pmax_level) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
aaron luaaron lu2596.15%266.67%
arnd bergmannarnd bergmann13.85%133.33%
Total26100.00%3100.00%

#endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
matthew garrettmatthew garrett12339.42%423.53%
aaron luaaron lu8828.21%317.65%
hans de goedehans de goede8125.96%317.65%
chris wilsonchris wilson72.24%15.88%
rafael j. wysockirafael j. wysocki51.60%211.76%
sudeep hollasudeep holla30.96%15.88%
yakui zhaoyakui zhao30.96%15.88%
borislav petkovborislav petkov10.32%15.88%
arnd bergmannarnd bergmann10.32%15.88%
Total312100.00%17100.00%
Directory: include/acpi
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}