|
@@ -14,11 +14,14 @@
|
|
|
#define _MEDIA_VIDEOBUF2_DMA_COHERENT_H
|
|
|
|
|
|
#include <media/videobuf2-core.h>
|
|
|
+#include <linux/dma-mapping.h>
|
|
|
|
|
|
-static inline unsigned long vb2_dma_contig_plane_paddr(
|
|
|
- struct vb2_buffer *vb, unsigned int plane_no)
|
|
|
+static inline dma_addr_t
|
|
|
+vb2_dma_contig_plane_paddr(struct vb2_buffer *vb, unsigned int plane_no)
|
|
|
{
|
|
|
- return (unsigned long)vb2_plane_cookie(vb, plane_no);
|
|
|
+ dma_addr_t *paddr = vb2_plane_cookie(vb, plane_no);
|
|
|
+
|
|
|
+ return *paddr;
|
|
|
}
|
|
|
|
|
|
void *vb2_dma_contig_init_ctx(struct device *dev);
|