174a365b3SMatthew Garrett #ifndef __ACPI_VIDEO_H 274a365b3SMatthew Garrett #define __ACPI_VIDEO_H 374a365b3SMatthew Garrett 4b72512edSChris Wilson #include <linux/errno.h> /* for ENODEV */ 5b72512edSChris Wilson 6b72512edSChris Wilson struct acpi_device; 7b72512edSChris Wilson 8e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_CRT 1 9e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_TV 2 10e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_DVI 3 11e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_LCD 4 12e92a7162SMatthew Garrett 13e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100 14e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110 15e92a7162SMatthew Garrett #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200 16e92a7162SMatthew Garrett 1774a365b3SMatthew Garrett #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) 1874a365b3SMatthew Garrett extern int acpi_video_register(void); 1986e437f0SZhao Yakui extern void acpi_video_unregister(void); 20e92a7162SMatthew Garrett extern int acpi_video_get_edid(struct acpi_device *device, int type, 21e92a7162SMatthew Garrett int device_id, void **edid); 2274a365b3SMatthew Garrett #else 2374a365b3SMatthew Garrett static inline int acpi_video_register(void) { return 0; } 2486e437f0SZhao Yakui static inline void acpi_video_unregister(void) { return; } 25e92a7162SMatthew Garrett static inline int acpi_video_get_edid(struct acpi_device *device, int type, 26e92a7162SMatthew Garrett int device_id, void **edid) 27e92a7162SMatthew Garrett { 28e92a7162SMatthew Garrett return -ENODEV; 29e92a7162SMatthew Garrett } 3074a365b3SMatthew Garrett #endif 3174a365b3SMatthew Garrett 3274a365b3SMatthew Garrett #endif 33