Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 1 | #ifndef __ACPI_VIDEO_H |
| 2 | #define __ACPI_VIDEO_H |
| 3 | |
Chris Wilson | b72512e | 2010-09-05 14:51:49 +0100 | [diff] [blame^] | 4 | #include <linux/errno.h> /* for ENODEV */ |
| 5 | |
| 6 | struct acpi_device; |
| 7 | |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 8 | #define ACPI_VIDEO_DISPLAY_CRT 1 |
| 9 | #define ACPI_VIDEO_DISPLAY_TV 2 |
| 10 | #define ACPI_VIDEO_DISPLAY_DVI 3 |
| 11 | #define ACPI_VIDEO_DISPLAY_LCD 4 |
| 12 | |
| 13 | #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100 |
| 14 | #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 |
| 15 | #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200 |
| 16 | |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 17 | #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) |
| 18 | extern int acpi_video_register(void); |
Zhao Yakui | 86e437f | 2009-06-16 11:23:13 +0800 | [diff] [blame] | 19 | extern void acpi_video_unregister(void); |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 20 | extern int acpi_video_get_edid(struct acpi_device *device, int type, |
| 21 | int device_id, void **edid); |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 22 | #else |
| 23 | static inline int acpi_video_register(void) { return 0; } |
Zhao Yakui | 86e437f | 2009-06-16 11:23:13 +0800 | [diff] [blame] | 24 | static inline void acpi_video_unregister(void) { return; } |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 25 | static inline int acpi_video_get_edid(struct acpi_device *device, int type, |
| 26 | int device_id, void **edid) |
| 27 | { |
| 28 | return -ENODEV; |
| 29 | } |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |
| 32 | #endif |