Commit | Line | Data |
---|---|---|
74a365b3 MG |
1 | #ifndef __ACPI_VIDEO_H |
2 | #define __ACPI_VIDEO_H | |
3 | ||
b72512ed CW |
4 | #include <linux/errno.h> /* for ENODEV */ |
5 | ||
6 | struct acpi_device; | |
7 | ||
f5a3d0c4 MG |
8 | #define ACPI_VIDEO_CLASS "video" |
9 | ||
e92a7162 MG |
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 | ||
74a365b3 | 19 | #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) |
8e5c2b77 | 20 | extern int acpi_video_register(void); |
86e437f0 | 21 | extern void acpi_video_unregister(void); |
e92a7162 MG |
22 | extern int acpi_video_get_edid(struct acpi_device *device, int type, |
23 | int device_id, void **edid); | |
74a365b3 MG |
24 | #else |
25 | static inline int acpi_video_register(void) { return 0; } | |
86e437f0 | 26 | static inline void acpi_video_unregister(void) { return; } |
e92a7162 MG |
27 | static inline int acpi_video_get_edid(struct acpi_device *device, int type, |
28 | int device_id, void **edid) | |
29 | { | |
30 | return -ENODEV; | |
31 | } | |
74a365b3 MG |
32 | #endif |
33 | ||
34 | #endif |