162306a36Sopenharmony_ci/* SPDX-License-Identifier: MIT */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Function prototypes for misc. drm utility functions.
462306a36Sopenharmony_ci * Specifically this file is for function prototypes for functions which
562306a36Sopenharmony_ci * may also be used outside of drm code (e.g. in fbdev drivers).
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com>
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#ifndef __DRM_UTILS_H__
1162306a36Sopenharmony_ci#define __DRM_UTILS_H__
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#include <linux/types.h>
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciint drm_get_panel_orientation_quirk(int width, int height);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_cisigned long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif
20