arm64: mm: ensure patched kernel text is fetched from PoU
[linux/fpc-iii.git] / include / acpi / video.h
blobe840b294c6f5beb2f8a178aa0d3bbb8e92040e40
1 #ifndef __ACPI_VIDEO_H
2 #define __ACPI_VIDEO_H
4 #include <linux/errno.h> /* for ENODEV */
6 struct acpi_device;
8 #define ACPI_VIDEO_CLASS "video"
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
15 #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100
16 #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110
17 #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200
19 enum acpi_backlight_type {
20 acpi_backlight_undef = -1,
21 acpi_backlight_none = 0,
22 acpi_backlight_video,
23 acpi_backlight_vendor,
24 acpi_backlight_native,
27 #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
28 extern int acpi_video_register(void);
29 extern void acpi_video_unregister(void);
30 extern int acpi_video_get_edid(struct acpi_device *device, int type,
31 int device_id, void **edid);
32 extern enum acpi_backlight_type acpi_video_get_backlight_type(void);
33 extern void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type);
34 #else
35 static inline int acpi_video_register(void) { return 0; }
36 static inline void acpi_video_unregister(void) { return; }
37 static inline int acpi_video_get_edid(struct acpi_device *device, int type,
38 int device_id, void **edid)
40 return -ENODEV;
42 static inline enum acpi_backlight_type acpi_video_get_backlight_type(void)
44 return acpi_backlight_vendor;
46 static inline void acpi_video_set_dmi_backlight_type(enum acpi_backlight_type type)
49 #endif
51 #endif