Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * videobuf2-dma-sg.h - DMA scatter/gather memory allocator for videobuf2
0003  *
0004  * Copyright (C) 2010 Samsung Electronics
0005  *
0006  * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
0007  *
0008  * This program is free software; you can redistribute it and/or modify
0009  * it under the terms of the GNU General Public License as published by
0010  * the Free Software Foundation.
0011  */
0012 
0013 #ifndef _MEDIA_VIDEOBUF2_DMA_SG_H
0014 #define _MEDIA_VIDEOBUF2_DMA_SG_H
0015 
0016 #include <media/videobuf2-v4l2.h>
0017 
0018 static inline struct sg_table *vb2_dma_sg_plane_desc(
0019         struct vb2_buffer *vb, unsigned int plane_no)
0020 {
0021     return (struct sg_table *)vb2_plane_cookie(vb, plane_no);
0022 }
0023 
0024 extern const struct vb2_mem_ops vb2_dma_sg_memops;
0025 
0026 #endif