dt3155.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) dt3155.h (2bc46b3ad3c15165f91459b07ff8682478683194)
1/***************************************************************************
2 * Copyright (C) 2006-2010 by Marin Mitov *
3 * mitov@issp.bas.bg *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *

--- 147 unchanged lines hidden (view full) ---

156/* per board private data structure */
157/**
158 * struct dt3155_priv - private data structure
159 *
160 * @v4l2_dev: v4l2_device structure
161 * @vdev: video_device structure
162 * @pdev: pointer to pci_dev structure
163 * @vidq: vb2_queue structure
1/***************************************************************************
2 * Copyright (C) 2006-2010 by Marin Mitov *
3 * mitov@issp.bas.bg *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *

--- 147 unchanged lines hidden (view full) ---

156/* per board private data structure */
157/**
158 * struct dt3155_priv - private data structure
159 *
160 * @v4l2_dev: v4l2_device structure
161 * @vdev: video_device structure
162 * @pdev: pointer to pci_dev structure
163 * @vidq: vb2_queue structure
164 * @alloc_ctx: dma_contig allocation context
165 * @curr_buf: pointer to curren buffer
166 * @mux: mutex to protect the instance
167 * @dmaq: queue for dma buffers
168 * @lock: spinlock for dma queue
169 * @std: input standard
170 * @width: frame width
171 * @height: frame height
172 * @input: current input
173 * @sequence: frame counter
174 * @stats: statistics structure
175 * @regs: local copy of mmio base register
176 * @csr2: local copy of csr2 register
177 * @config: local copy of config register
178 */
179struct dt3155_priv {
180 struct v4l2_device v4l2_dev;
181 struct video_device vdev;
182 struct pci_dev *pdev;
183 struct vb2_queue vidq;
164 * @curr_buf: pointer to curren buffer
165 * @mux: mutex to protect the instance
166 * @dmaq: queue for dma buffers
167 * @lock: spinlock for dma queue
168 * @std: input standard
169 * @width: frame width
170 * @height: frame height
171 * @input: current input
172 * @sequence: frame counter
173 * @stats: statistics structure
174 * @regs: local copy of mmio base register
175 * @csr2: local copy of csr2 register
176 * @config: local copy of config register
177 */
178struct dt3155_priv {
179 struct v4l2_device v4l2_dev;
180 struct video_device vdev;
181 struct pci_dev *pdev;
182 struct vb2_queue vidq;
184 struct vb2_alloc_ctx *alloc_ctx;
185 struct vb2_v4l2_buffer *curr_buf;
186 struct mutex mux;
187 struct list_head dmaq;
188 spinlock_t lock;
189 v4l2_std_id std;
190 unsigned width, height;
191 unsigned input;
192 unsigned int sequence;
193 void __iomem *regs;
194 u8 csr2, config;
195};
196
197#endif /* _DT3155_H_ */
183 struct vb2_v4l2_buffer *curr_buf;
184 struct mutex mux;
185 struct list_head dmaq;
186 spinlock_t lock;
187 v4l2_std_id std;
188 unsigned width, height;
189 unsigned input;
190 unsigned int sequence;
191 void __iomem *regs;
192 u8 csr2, config;
193};
194
195#endif /* _DT3155_H_ */