/* * Xilinx Video DMA * * Copyright (C) 2013-2015 Ideas on Board * Copyright (C) 2013-2015 Xilinx, Inc. * * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> * Laurent Pinchart <laurent.pinchart@ideasonboard.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __XILINX_VIP_DMA_H__ #define __XILINX_VIP_DMA_H__ #include <linux/dmaengine.h> #include <linux/mutex.h> #include <linux/spinlock.h> #include <linux/videodev2.h> #include <media/media-entity.h> #include <media/v4l2-dev.h> #include <media/videobuf2-v4l2.h> struct dma_chan; struct xvip_composite_device; struct xvip_video_format; /** * struct xvip_pipeline - Xilinx Video IP pipeline structure * @pipe: media pipeline * @lock: protects the pipeline @stream_count * @use_count: number of DMA engines using the pipeline * @stream_count: number of DMA engines currently streaming * @num_dmas: number of DMA engines in the pipeline * @output: DMA engine at the output of the pipeline */ struct xvip_pipeline { struct media_pipeline pipe; struct mutex lock; unsigned int use_count; unsigned int stream_count; unsigned int num_dmas; struct xvip_dma *output; };
static inline struct xvip_pipeline *to_xvip_pipeline(struct media_entity *e) { return container_of(e->pipe, struct xvip_pipeline, pipe); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
laurent pinchart | laurent pinchart | 27 | 100.00% | 1 | 100.00% |
Total | 27 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
laurent pinchart | laurent pinchart | 219 | 99.55% | 1 | 50.00% |
junghak sung | junghak sung | 1 | 0.45% | 1 | 50.00% |
Total | 220 | 100.00% | 2 | 100.00% |