18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: MIT */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Function prototypes for misc. drm utility functions.
48c2ecf20Sopenharmony_ci * Specifically this file is for function prototypes for functions which
58c2ecf20Sopenharmony_ci * may also be used outside of drm code (e.g. in fbdev drivers).
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __DRM_UTILS_H__
118c2ecf20Sopenharmony_ci#define __DRM_UTILS_H__
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <linux/types.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciint drm_get_panel_orientation_quirk(int width, int height);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_cisigned long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif
20