brintos

brintos / linux-shallow public Read only

0
0
Text · 968 B · 46faf14 Raw
35 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * Copyright (C) STMicroelectronics SA 20144 * Author: Benjamin Gaignard <benjamin.gaignard@st.com> for STMicroelectronics.5 */6 7#ifndef _STI_VTG_H_8#define _STI_VTG_H_9 10#define VTG_TOP_FIELD_EVENT     111#define VTG_BOTTOM_FIELD_EVENT  212 13#define VTG_SYNC_ID_HDMI        114#define VTG_SYNC_ID_HDDCS       215#define VTG_SYNC_ID_HDF         316#define VTG_SYNC_ID_DVO         417 18struct sti_vtg;19struct drm_crtc;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);26int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,27			    struct drm_crtc *crtc);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#endif35