xref: /linux/drivers/media/platform/ti/omap/omap_vout_vrfb.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*012e3ca3SMauro Carvalho Chehab /*
2*012e3ca3SMauro Carvalho Chehab  * omap_vout_vrfb.h
3*012e3ca3SMauro Carvalho Chehab  *
4*012e3ca3SMauro Carvalho Chehab  * Copyright (C) 2010 Texas Instruments.
5*012e3ca3SMauro Carvalho Chehab  *
6*012e3ca3SMauro Carvalho Chehab  * This file is licensed under the terms of the GNU General Public License
7*012e3ca3SMauro Carvalho Chehab  * version 2. This program is licensed "as is" without any warranty of any
8*012e3ca3SMauro Carvalho Chehab  * kind, whether express or implied.
9*012e3ca3SMauro Carvalho Chehab  *
10*012e3ca3SMauro Carvalho Chehab  */
11*012e3ca3SMauro Carvalho Chehab 
12*012e3ca3SMauro Carvalho Chehab #ifndef OMAP_VOUT_VRFB_H
13*012e3ca3SMauro Carvalho Chehab #define OMAP_VOUT_VRFB_H
14*012e3ca3SMauro Carvalho Chehab 
15*012e3ca3SMauro Carvalho Chehab #ifdef CONFIG_VIDEO_OMAP2_VOUT_VRFB
16*012e3ca3SMauro Carvalho Chehab void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout);
17*012e3ca3SMauro Carvalho Chehab int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
18*012e3ca3SMauro Carvalho Chehab 			bool static_vrfb_allocation);
19*012e3ca3SMauro Carvalho Chehab void omap_vout_release_vrfb(struct omap_vout_device *vout);
20*012e3ca3SMauro Carvalho Chehab int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
21*012e3ca3SMauro Carvalho Chehab 			unsigned int *count, unsigned int startindex);
22*012e3ca3SMauro Carvalho Chehab int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
23*012e3ca3SMauro Carvalho Chehab 			struct vb2_buffer *vb);
24*012e3ca3SMauro Carvalho Chehab void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout);
25*012e3ca3SMauro Carvalho Chehab #else
omap_vout_free_vrfb_buffers(struct omap_vout_device * vout)26*012e3ca3SMauro Carvalho Chehab static inline void omap_vout_free_vrfb_buffers(struct omap_vout_device *vout) { };
omap_vout_setup_vrfb_bufs(struct platform_device * pdev,int vid_num,bool static_vrfb_allocation)27*012e3ca3SMauro Carvalho Chehab static inline int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num,
28*012e3ca3SMauro Carvalho Chehab 			bool static_vrfb_allocation)
29*012e3ca3SMauro Carvalho Chehab 		{ return 0; };
omap_vout_release_vrfb(struct omap_vout_device * vout)30*012e3ca3SMauro Carvalho Chehab static inline void omap_vout_release_vrfb(struct omap_vout_device *vout) { };
omap_vout_vrfb_buffer_setup(struct omap_vout_device * vout,unsigned int * count,unsigned int startindex)31*012e3ca3SMauro Carvalho Chehab static inline int omap_vout_vrfb_buffer_setup(struct omap_vout_device *vout,
32*012e3ca3SMauro Carvalho Chehab 			unsigned int *count, unsigned int startindex)
33*012e3ca3SMauro Carvalho Chehab 		{ return 0; };
omap_vout_prepare_vrfb(struct omap_vout_device * vout,struct vb2_buffer * vb)34*012e3ca3SMauro Carvalho Chehab static inline int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
35*012e3ca3SMauro Carvalho Chehab 			struct vb2_buffer *vb)
36*012e3ca3SMauro Carvalho Chehab 		{ return 0; };
omap_vout_calculate_vrfb_offset(struct omap_vout_device * vout)37*012e3ca3SMauro Carvalho Chehab static inline void omap_vout_calculate_vrfb_offset(struct omap_vout_device *vout) { };
38*012e3ca3SMauro Carvalho Chehab #endif
39*012e3ca3SMauro Carvalho Chehab 
40*012e3ca3SMauro Carvalho Chehab #endif
41