drm_utils.h 706 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: MIT */
  2. /*
  3. * Function prototypes for misc. drm utility functions.
  4. * Specifically this file is for function prototypes for functions which
  5. * may also be used outside of drm code (e.g. in fbdev drivers).
  6. *
  7. * Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com>
  8. */
  9. #ifndef __DRM_UTILS_H__
  10. #define __DRM_UTILS_H__
  11. #include <linux/types.h>
  12. struct drm_edid;
  13. int drm_get_panel_orientation_quirk(int width, int height);
  14. struct drm_panel_backlight_quirk {
  15. u16 min_brightness;
  16. u32 brightness_mask;
  17. };
  18. const struct drm_panel_backlight_quirk *
  19. drm_get_panel_backlight_quirk(const struct drm_edid *edid);
  20. signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
  21. #endif