0001
0002
0003
0004
0005
0006
0007 #ifndef _STI_VTG_H_
0008 #define _STI_VTG_H_
0009
0010 #define VTG_TOP_FIELD_EVENT 1
0011 #define VTG_BOTTOM_FIELD_EVENT 2
0012
0013 #define VTG_SYNC_ID_HDMI 1
0014 #define VTG_SYNC_ID_HDDCS 2
0015 #define VTG_SYNC_ID_HDF 3
0016 #define VTG_SYNC_ID_DVO 4
0017
0018 struct sti_vtg;
0019 struct drm_crtc;
0020 struct drm_display_mode;
0021 struct notifier_block;
0022
0023 struct sti_vtg *of_vtg_find(struct device_node *np);
0024 void sti_vtg_set_config(struct sti_vtg *vtg,
0025 const struct drm_display_mode *mode);
0026 int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,
0027 struct drm_crtc *crtc);
0028 int sti_vtg_unregister_client(struct sti_vtg *vtg,
0029 struct notifier_block *nb);
0030
0031 u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y);
0032 u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x);
0033
0034 #endif