Hi~ Simply comments below Marek Szyprowski Saturday, November 20, 2010 12:56 AM Wrote: snip > +/* > + * videobuf2-cma.h - CMA memory allocator for videobuf2 > + * > + * Copyright (C) 2010 Samsung Electronics > + * > + * Author: Pawel Osciak <p.osciak@xxxxxxxxxxx> > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation. > + */ > + > +static inline unsigned long vb2_cma_plane_paddr(struct vb2_buffer *vb, > + unsigned int plane_no) > +{ > + return (unsigned long)vb2_plane_cookie(vb, plane_no); vb2_plane_cookie() function is in the videobuf2-core. So, this header file should include "<media/videobuf2-core.h>" > +} > + > +struct vb2_alloc_ctx *vb2_cma_init(struct device *dev, const char *type, > + unsigned long alignment); > +void vb2_cma_cleanup(struct vb2_alloc_ctx *alloc_ctx); > + > +struct vb2_alloc_ctx **vb2_cma_init_multi(struct device *dev, > + unsigned int num_planes, const char *types[], > + unsigned long alignments[]); > +void vb2_cma_cleanup_multi(struct vb2_alloc_ctx **alloc_ctxes); > + > +struct vb2_alloc_ctx *vb2_cma_init(struct device *dev, const char *type, > + unsigned long alignment); > +void vb2_cma_cleanup(struct vb2_alloc_ctx *alloc_ctx); > + > -- > 1.7.1.569.g6f426 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html