Linux 4.2.1
[linux/fpc-iii.git] / drivers / gpu / drm / sti / sti_vtg.h
blobe84d23f1f57ff71912eac3759f0691625eb64776
1 /*
2 * Copyright (C) STMicroelectronics SA 2014
3 * Author: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.
4 * License terms: GNU General Public License (GPL), version 2
5 */
7 #ifndef _STI_VTG_H_
8 #define _STI_VTG_H_
10 #define VTG_TOP_FIELD_EVENT 1
11 #define VTG_BOTTOM_FIELD_EVENT 2
13 struct sti_vtg;
14 struct drm_display_mode;
15 struct notifier_block;
17 struct sti_vtg *of_vtg_find(struct device_node *np);
18 void sti_vtg_set_config(struct sti_vtg *vtg,
19 const struct drm_display_mode *mode);
20 int sti_vtg_register_client(struct sti_vtg *vtg,
21 struct notifier_block *nb, int crtc_id);
22 int sti_vtg_unregister_client(struct sti_vtg *vtg,
23 struct notifier_block *nb);
25 u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y);
26 u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x);
28 #endif