xilinx-vipp.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Xilinx Video IP Composite Device
  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_VIPP_H__
  15. #define __XILINX_VIPP_H__
  16. #include <linux/list.h>
  17. #include <linux/mutex.h>
  18. #include <media/media-device.h>
  19. #include <media/v4l2-async.h>
  20. #include <media/v4l2-ctrls.h>
  21. #include <media/v4l2-device.h>
  22. /**
  23. * struct xvip_composite_device - Xilinx Video IP device structure
  24. * @v4l2_dev: V4L2 device
  25. * @media_dev: media device
  26. * @dev: (OF) device
  27. * @notifier: V4L2 asynchronous subdevs notifier
  28. * @entities: entities in the graph as a list of xvip_graph_entity
  29. * @num_subdevs: number of subdevs in the pipeline
  30. * @dmas: list of DMA channels at the pipeline output and input
  31. * @v4l2_caps: V4L2 capabilities of the whole device (see VIDIOC_QUERYCAP)
  32. */
  33. struct xvip_composite_device {
  34. struct v4l2_device v4l2_dev;
  35. struct media_device media_dev;
  36. struct device *dev;
  37. struct v4l2_async_notifier notifier;
  38. struct list_head entities;
  39. unsigned int num_subdevs;
  40. struct list_head dmas;
  41. u32 v4l2_caps;
  42. };
  43. #endif /* __XILINX_VIPP_H__ */