xilinx-vtc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Xilinx Video Timing Controller
  3. *
  4. * Copyright (C) 2013-2015 Ideas on Board
  5. * Copyright (C) 2013-2015 Xilinx, Inc.
  6. *
  7. * Contacts: Hyun Kwon <hyun.kwon@xilinx.com>
  8. * Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __XILINX_VTC_H__
  15. #define __XILINX_VTC_H__
  16. struct device_node;
  17. struct xvtc_device;
  18. #define XVTC_MAX_HSIZE 8191
  19. #define XVTC_MAX_VSIZE 8191
  20. struct xvtc_config {
  21. unsigned int hblank_start;
  22. unsigned int hsync_start;
  23. unsigned int hsync_end;
  24. unsigned int hsize;
  25. unsigned int vblank_start;
  26. unsigned int vsync_start;
  27. unsigned int vsync_end;
  28. unsigned int vsize;
  29. };
  30. struct xvtc_device *xvtc_of_get(struct device_node *np);
  31. void xvtc_put(struct xvtc_device *xvtc);
  32. int xvtc_generator_start(struct xvtc_device *xvtc,
  33. const struct xvtc_config *config);
  34. int xvtc_generator_stop(struct xvtc_device *xvtc);
  35. #endif /* __XILINX_VTC_H__ */