2009-03-19 21:35:39 +00:00
|
|
|
#ifndef __ACPI_VIDEO_H
|
|
|
|
#define __ACPI_VIDEO_H
|
|
|
|
|
2010-09-05 13:51:49 +00:00
|
|
|
#include <linux/errno.h> /* for ENODEV */
|
|
|
|
|
|
|
|
struct acpi_device;
|
|
|
|
|
2011-07-12 22:30:52 +00:00
|
|
|
#define ACPI_VIDEO_CLASS "video"
|
|
|
|
|
2010-01-12 19:17:03 +00:00
|
|
|
#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
|
|
|
|
|
2015-06-16 14:27:48 +00:00
|
|
|
enum acpi_backlight_type {
|
|
|
|
acpi_backlight_undef = -1,
|
|
|
|
acpi_backlight_none = 0,
|
|
|
|
acpi_backlight_video,
|
|
|
|
acpi_backlight_vendor,
|
|
|
|
acpi_backlight_native,
|
|
|
|
};
|
|
|
|
|
2009-03-19 21:35:39 +00:00
|
|
|
#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
|
2013-07-25 19:43:39 +00:00
|
|
|
extern int acpi_video_register(void);
|
2009-06-16 03:23:13 +00:00
|
|
|
extern void acpi_video_unregister(void);
|
2010-01-12 19:17:03 +00:00
|
|
|
extern int acpi_video_get_edid(struct acpi_device *device, int type,
|
|
|
|
int device_id, void **edid);
|
2015-06-16 14:27:48 +00:00
|
|
|
extern enum acpi_backlight_type acpi_video_get_backlight_type(void);
|
|
|
|
extern void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type);
|
2009-03-19 21:35:39 +00:00
|
|
|
#else
|
|
|
|
static inline int acpi_video_register(void) { return 0; }
|
2009-06-16 03:23:13 +00:00
|
|
|
static inline void acpi_video_unregister(void) { return; }
|
2010-01-12 19:17:03 +00:00
|
|
|
static inline int acpi_video_get_edid(struct acpi_device *device, int type,
|
|
|
|
int device_id, void **edid)
|
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
2015-06-16 14:27:48 +00:00
|
|
|
static inline enum acpi_backlight_type acpi_video_get_backlight_type(void)
|
|
|
|
{
|
|
|
|
return acpi_backlight_vendor;
|
|
|
|
}
|
2015-06-24 10:01:49 +00:00
|
|
|
static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
|
2015-06-16 14:27:48 +00:00
|
|
|
{
|
|
|
|
}
|
2009-03-19 21:35:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|