diff options
author | Gerd Knorr <devnull@localhost> | 2004-09-23 13:58:19 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-09-23 13:58:19 +0000 |
commit | 2f9202097e4418d085a0d6ef636de1d0b0fb84dd (patch) | |
tree | 346e618d5502ac1f9abce855416aad2bb0b20a47 /linux/include/media/video-buf.h | |
parent | 953f8692136acd6aa9201f9388697a7005756894 (diff) | |
download | mediapointer-dvb-s2-2f9202097e4418d085a0d6ef636de1d0b0fb84dd.tar.gz mediapointer-dvb-s2-2f9202097e4418d085a0d6ef636de1d0b0fb84dd.tar.bz2 |
- make video-bufg don't touch struct file any more, pass through
a void ptr instead of a file ptr everythere.
- add cx22702 fe driver,
Diffstat (limited to 'linux/include/media/video-buf.h')
-rw-r--r-- | linux/include/media/video-buf.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/linux/include/media/video-buf.h b/linux/include/media/video-buf.h index 8a1b8ff5a..26fcde3eb 100644 --- a/linux/include/media/video-buf.h +++ b/linux/include/media/video-buf.h @@ -1,5 +1,5 @@ /* - * $Id: video-buf.h,v 1.5 2004/09/15 16:15:24 kraxel Exp $ + * $Id: video-buf.h,v 1.6 2004/09/23 13:58:19 kraxel Exp $ * * generic helper functions for video4linux capture buffers, to handle * memory management and PCI DMA. Right now bttv + saa7134 use it. @@ -167,12 +167,12 @@ struct videobuf_buffer { }; struct videobuf_queue_ops { - int (*buf_setup)(struct file *file, + int (*buf_setup)(void *priv, unsigned int *count, unsigned int *size); - int (*buf_prepare)(struct file *file,struct videobuf_buffer *vb, + int (*buf_prepare)(void *priv,struct videobuf_buffer *vb, enum v4l2_field field); - void (*buf_queue)(struct file *file,struct videobuf_buffer *vb); - void (*buf_release)(struct file *file,struct videobuf_buffer *vb); + void (*buf_queue)(void *priv,struct videobuf_buffer *vb); + void (*buf_release)(void *priv,struct videobuf_buffer *vb); }; struct videobuf_queue { @@ -210,36 +210,37 @@ void videobuf_queue_init(struct videobuf_queue *q, enum v4l2_field field, unsigned int msize); int videobuf_queue_is_busy(struct videobuf_queue *q); -void videobuf_queue_cancel(struct file *file, struct videobuf_queue *q); +void videobuf_queue_cancel(void *priv, struct videobuf_queue *q); enum v4l2_field videobuf_next_field(struct videobuf_queue *q); void videobuf_status(struct v4l2_buffer *b, struct videobuf_buffer *vb, enum v4l2_buf_type type); -int videobuf_reqbufs(struct file *file, struct videobuf_queue *q, +int videobuf_reqbufs(void *priv, struct videobuf_queue *q, struct v4l2_requestbuffers *req); int videobuf_querybuf(struct videobuf_queue *q, struct v4l2_buffer *b); -int videobuf_qbuf(struct file *file, struct videobuf_queue *q, +int videobuf_qbuf(void *priv, struct videobuf_queue *q, struct v4l2_buffer *b); -int videobuf_dqbuf(struct file *file, struct videobuf_queue *q, - struct v4l2_buffer *b); -int videobuf_streamon(struct file *file, struct videobuf_queue *q); -int videobuf_streamoff(struct file *file, struct videobuf_queue *q); - -int videobuf_read_start(struct file *file, struct videobuf_queue *q); -void videobuf_read_stop(struct file *file, struct videobuf_queue *q); -ssize_t videobuf_read_stream(struct file *file, struct videobuf_queue *q, +int videobuf_dqbuf(void *priv, struct videobuf_queue *q, + struct v4l2_buffer *b, int nonblocking); +int videobuf_streamon(void *priv, struct videobuf_queue *q); +int videobuf_streamoff(void *priv, struct videobuf_queue *q); + +int videobuf_read_start(void *priv, struct videobuf_queue *q); +void videobuf_read_stop(void *priv, struct videobuf_queue *q); +ssize_t videobuf_read_stream(void *priv, struct videobuf_queue *q, char __user *data, size_t count, loff_t *ppos, - int vbihack); -ssize_t videobuf_read_one(struct file *file, struct videobuf_queue *q, - char __user *data, size_t count, loff_t *ppos); -unsigned int videobuf_poll_stream(struct file *file, + int vbihack, int nonblocking); +ssize_t videobuf_read_one(void *priv, struct videobuf_queue *q, + char __user *data, size_t count, loff_t *ppos, + int nonblocking); +unsigned int videobuf_poll_stream(void *priv, struct videobuf_queue *q, poll_table *wait); -int videobuf_mmap_setup(struct file *file, struct videobuf_queue *q, +int videobuf_mmap_setup(void *priv, struct videobuf_queue *q, unsigned int bcount, unsigned int bsize, enum v4l2_memory memory); -int videobuf_mmap_free(struct file *file, struct videobuf_queue *q); +int videobuf_mmap_free(void *priv, struct videobuf_queue *q); int videobuf_mmap_mapper(struct vm_area_struct *vma, struct videobuf_queue *q); |