Merge tag 'dmaengine-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw...
[deliverable/linux.git] / include / acpi / video.h
1 #ifndef __ACPI_VIDEO_H
2 #define __ACPI_VIDEO_H
3
4 #include <linux/errno.h> /* for ENODEV */
5
6 struct acpi_device;
7
8 #define ACPI_VIDEO_CLASS "video"
9
10 #define ACPI_VIDEO_DISPLAY_CRT 1
11 #define ACPI_VIDEO_DISPLAY_TV 2
12 #define ACPI_VIDEO_DISPLAY_DVI 3
13 #define ACPI_VIDEO_DISPLAY_LCD 4
14
15 #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100
16 #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110
17 #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200
18
19 #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
20 extern int acpi_video_register(void);
21 extern void acpi_video_unregister(void);
22 extern void acpi_video_unregister_backlight(void);
23 extern int acpi_video_get_edid(struct acpi_device *device, int type,
24 int device_id, void **edid);
25 extern bool acpi_video_verify_backlight_support(void);
26 #else
27 static inline int acpi_video_register(void) { return 0; }
28 static inline void acpi_video_unregister(void) { return; }
29 static inline void acpi_video_unregister_backlight(void) { return; }
30 static inline int acpi_video_get_edid(struct acpi_device *device, int type,
31 int device_id, void **edid)
32 {
33 return -ENODEV;
34 }
35 static inline bool acpi_video_verify_backlight_support(void) { return false; }
36 #endif
37
38 #endif
This page took 0.032791 seconds and 6 git commands to generate.