sti_vtg.h 838 B

12345678910111213141516171819202122232425262728
  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. */
  6. #ifndef _STI_VTG_H_
  7. #define _STI_VTG_H_
  8. #define VTG_TOP_FIELD_EVENT 1
  9. #define VTG_BOTTOM_FIELD_EVENT 2
  10. struct sti_vtg;
  11. struct drm_display_mode;
  12. struct notifier_block;
  13. struct sti_vtg *of_vtg_find(struct device_node *np);
  14. void sti_vtg_set_config(struct sti_vtg *vtg,
  15. const struct drm_display_mode *mode);
  16. int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,
  17. struct drm_crtc *crtc);
  18. int sti_vtg_unregister_client(struct sti_vtg *vtg,
  19. struct notifier_block *nb);
  20. u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y);
  21. u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x);
  22. #endif