Merge tag 'hardening-v6.2-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / drivers / gpu / drm / sti / sti_vtg.h
CommitLineData
e2842570 1/* SPDX-License-Identifier: GPL-2.0 */
f2cb3148
BG
2/*
3 * Copyright (C) STMicroelectronics SA 2014
4 * Author: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.
f2cb3148
BG
5 */
6
7#ifndef _STI_VTG_H_
8#define _STI_VTG_H_
9
10#define VTG_TOP_FIELD_EVENT 1
11#define VTG_BOTTOM_FIELD_EVENT 2
12
503290ce
VA
13#define VTG_SYNC_ID_HDMI 1
14#define VTG_SYNC_ID_HDDCS 2
15#define VTG_SYNC_ID_HDF 3
16#define VTG_SYNC_ID_DVO 4
17
f2cb3148 18struct sti_vtg;
5e2f97a9 19struct drm_crtc;
f2cb3148
BG
20struct drm_display_mode;
21struct notifier_block;
22
23struct sti_vtg *of_vtg_find(struct device_node *np);
24void sti_vtg_set_config(struct sti_vtg *vtg,
25 const struct drm_display_mode *mode);
2388693e
TR
26int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,
27 struct drm_crtc *crtc);
f2cb3148
BG
28int sti_vtg_unregister_client(struct sti_vtg *vtg,
29 struct notifier_block *nb);
30
31u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y);
32u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x);
33
34#endif