diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-27 18:25:44 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-27 18:25:44 -0300 |
commit | 89f22d9227d65dad3df4ad8fcf333a288016cdc8 (patch) | |
tree | bb73b6b7843e1b31be3bf721e4a0d8ccef0b0a25 /linux/include | |
parent | c594848c181742c41a59366a72b70cea997446fd (diff) | |
download | mediapointer-dvb-s2-89f22d9227d65dad3df4ad8fcf333a288016cdc8.tar.gz mediapointer-dvb-s2-89f22d9227d65dad3df4ad8fcf333a288016cdc8.tar.bz2 |
videobuf cleanup: mmap check is common to all videobuf. Make it at core
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/videobuf-core.h | 4 | ||||
-rw-r--r-- | linux/include/media/videobuf-dma-sg.h | 1 | ||||
-rw-r--r-- | linux/include/media/videobuf-vmalloc.h | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/linux/include/media/videobuf-core.h b/linux/include/media/videobuf-core.h index 30bdc2dd1..cf0759cb2 100644 --- a/linux/include/media/videobuf-core.h +++ b/linux/include/media/videobuf-core.h @@ -97,6 +97,9 @@ struct videobuf_buffer { /* buffer addr (userland ptr!) */ unsigned long baddr; + /* for mmap'ed buffers */ + struct videobuf_mapping *map; + /* Private pointer to allow specific methods to store their data */ int privsize; void *priv; @@ -143,7 +146,6 @@ struct videobuf_qtype_ops { int (*mmap_free) (struct videobuf_queue *q); int (*mmap_mapper) (struct videobuf_queue *q, struct vm_area_struct *vma); - int (*is_mmapped) (struct videobuf_buffer *buf); }; struct videobuf_queue { diff --git a/linux/include/media/videobuf-dma-sg.h b/linux/include/media/videobuf-dma-sg.h index 62a370990..206d9027b 100644 --- a/linux/include/media/videobuf-dma-sg.h +++ b/linux/include/media/videobuf-dma-sg.h @@ -86,7 +86,6 @@ struct videbuf_pci_sg_memory u32 magic; /* for mmap'ed buffers */ - struct videobuf_mapping *map; struct videobuf_dmabuf dma; }; diff --git a/linux/include/media/videobuf-vmalloc.h b/linux/include/media/videobuf-vmalloc.h index 5fff68df6..26a8958d2 100644 --- a/linux/include/media/videobuf-vmalloc.h +++ b/linux/include/media/videobuf-vmalloc.h @@ -21,9 +21,6 @@ struct videbuf_vmalloc_memory { u32 magic; - /* for mmap'ed buffers */ - struct videobuf_mapping *map; - void *vmalloc; /* remap_vmalloc_range seems to need to run after mmap() on some cases */ |