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 | f5a3d0c | 2011-07-12 18:30:52 -0400 | [diff] [blame] | 8 | #define ACPI_VIDEO_CLASS "video" |
| 9 | |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 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 | |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 19 | #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) |
Rafael J. Wysocki | 8e5c2b7 | 2013-07-25 21:43:39 +0200 | [diff] [blame] | 20 | extern int acpi_video_register(void); |
Zhao Yakui | 86e437f | 2009-06-16 11:23:13 +0800 | [diff] [blame] | 21 | extern void acpi_video_unregister(void); |
Hans de Goede | 1b7f37e | 2014-05-17 10:48:01 +0200 | [diff] [blame] | 22 | extern void acpi_video_unregister_backlight(void); |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 23 | extern int acpi_video_get_edid(struct acpi_device *device, int type, |
| 24 | int device_id, void **edid); |
Aaron Lu | 0b9f7d9 | 2014-07-07 15:43:51 +0800 | [diff] [blame^] | 25 | extern bool acpi_video_verify_backlight_support(void); |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 26 | #else |
| 27 | static inline int acpi_video_register(void) { return 0; } |
Zhao Yakui | 86e437f | 2009-06-16 11:23:13 +0800 | [diff] [blame] | 28 | static inline void acpi_video_unregister(void) { return; } |
Hans de Goede | 1b7f37e | 2014-05-17 10:48:01 +0200 | [diff] [blame] | 29 | static inline void acpi_video_unregister_backlight(void) { return; } |
Matthew Garrett | e92a716 | 2010-01-12 14:17:03 -0500 | [diff] [blame] | 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 | } |
Aaron Lu | 0b9f7d9 | 2014-07-07 15:43:51 +0800 | [diff] [blame^] | 35 | static inline bool acpi_video_verify_backlight_support(void) { return false; } |
Matthew Garrett | 74a365b | 2009-03-19 21:35:39 +0000 | [diff] [blame] | 36 | #endif |
| 37 | |
| 38 | #endif |