blob: 70775748d243b0fd6e13a088d05c45f31cf34a4a [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* 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
10#ifndef __DRM_UTILS_H__
11#define __DRM_UTILS_H__
12
David Brazdil0f672f62019-12-10 10:32:29 +000013#include <linux/types.h>
14
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000015int drm_get_panel_orientation_quirk(int width, int height);
16
David Brazdil0f672f62019-12-10 10:32:29 +000017signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
18
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000019#endif