0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef _VIDEOBUF_VMALLOC_H
0013 #define _VIDEOBUF_VMALLOC_H
0014
0015 #include <media/videobuf-core.h>
0016
0017
0018
0019 struct videobuf_vmalloc_memory {
0020 u32 magic;
0021
0022 void *vaddr;
0023
0024
0025
0026 struct vm_area_struct *vma;
0027 };
0028
0029 void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
0030 const struct videobuf_queue_ops *ops,
0031 struct device *dev,
0032 spinlock_t *irqlock,
0033 enum v4l2_buf_type type,
0034 enum v4l2_field field,
0035 unsigned int msize,
0036 void *priv,
0037 struct mutex *ext_lock);
0038
0039 void *videobuf_to_vmalloc(struct videobuf_buffer *buf);
0040
0041 void videobuf_vmalloc_free(struct videobuf_buffer *buf);
0042
0043 #endif