video.h 958 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __ACPI_VIDEO_H
  2. #define __ACPI_VIDEO_H
  3. #include <linux/errno.h> /* for ENODEV */
  4. struct acpi_device;
  5. #define ACPI_VIDEO_CLASS "video"
  6. #define ACPI_VIDEO_DISPLAY_CRT 1
  7. #define ACPI_VIDEO_DISPLAY_TV 2
  8. #define ACPI_VIDEO_DISPLAY_DVI 3
  9. #define ACPI_VIDEO_DISPLAY_LCD 4
  10. #define ACPI_VIDEO_DISPLAY_LEGACY_MONITOR 0x0100
  11. #define ACPI_VIDEO_DISPLAY_LEGACY_PANEL 0x0110
  12. #define ACPI_VIDEO_DISPLAY_LEGACY_TV 0x0200
  13. #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
  14. extern int acpi_video_register(void);
  15. extern void acpi_video_unregister(void);
  16. extern int acpi_video_get_edid(struct acpi_device *device, int type,
  17. int device_id, void **edid);
  18. #else
  19. static inline int acpi_video_register(void) { return 0; }
  20. static inline void acpi_video_unregister(void) { return; }
  21. static inline int acpi_video_get_edid(struct acpi_device *device, int type,
  22. int device_id, void **edid)
  23. {
  24. return -ENODEV;
  25. }
  26. #endif
  27. #endif