xilinx-vtc.h 932 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Xilinx Video Timing Controller
  4. *
  5. * Copyright (C) 2013-2015 Ideas on Board
  6. * Copyright (C) 2013-2015 Xilinx, Inc.
  7. *
  8. * Contacts: Hyun Kwon <[email protected]>
  9. * Laurent Pinchart <[email protected]>
  10. */
  11. #ifndef __XILINX_VTC_H__
  12. #define __XILINX_VTC_H__
  13. struct device_node;
  14. struct xvtc_device;
  15. #define XVTC_MAX_HSIZE 8191
  16. #define XVTC_MAX_VSIZE 8191
  17. struct xvtc_config {
  18. unsigned int hblank_start;
  19. unsigned int hsync_start;
  20. unsigned int hsync_end;
  21. unsigned int hsize;
  22. unsigned int vblank_start;
  23. unsigned int vsync_start;
  24. unsigned int vsync_end;
  25. unsigned int vsize;
  26. };
  27. struct xvtc_device *xvtc_of_get(struct device_node *np);
  28. void xvtc_put(struct xvtc_device *xvtc);
  29. int xvtc_generator_start(struct xvtc_device *xvtc,
  30. const struct xvtc_config *config);
  31. int xvtc_generator_stop(struct xvtc_device *xvtc);
  32. #endif /* __XILINX_VTC_H__ */