/* DMABUF ops for exporters */
/*********************************************/
-#ifdef HAVE_GENERIC_DMA_COHERENT
-
struct vb2_dc_attachment {
struct sg_table sgt;
enum dma_data_direction dir;
return dbuf;
}
-#endif
-
/*********************************************/
/* callbacks for USERPTR buffers */
/*********************************************/
const struct vb2_mem_ops vb2_dma_contig_memops = {
.alloc = vb2_dc_alloc,
.put = vb2_dc_put,
-#ifdef CONFIG_HAVE_GENERIC_DMA_COHERENT
.get_dmabuf = vb2_dc_get_dmabuf,
-#endif
.cookie = vb2_dc_cookie,
.vaddr = vb2_dc_vaddr,
.mmap = vb2_dc_mmap,