xref: /OK3568_Linux_fs/kernel/drivers/video/fbdev/wmt_ge_rops.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifdef CONFIG_FB_WMT_GE_ROPS
3*4882a593Smuzhiyun 
4*4882a593Smuzhiyun extern void wmt_ge_fillrect(struct fb_info *info,
5*4882a593Smuzhiyun 			    const struct fb_fillrect *rect);
6*4882a593Smuzhiyun extern void wmt_ge_copyarea(struct fb_info *info,
7*4882a593Smuzhiyun 			    const struct fb_copyarea *area);
8*4882a593Smuzhiyun extern int wmt_ge_sync(struct fb_info *info);
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #else
11*4882a593Smuzhiyun 
wmt_ge_sync(struct fb_info * p)12*4882a593Smuzhiyun static inline int wmt_ge_sync(struct fb_info *p)
13*4882a593Smuzhiyun {
14*4882a593Smuzhiyun 	return 0;
15*4882a593Smuzhiyun }
16*4882a593Smuzhiyun 
wmt_ge_fillrect(struct fb_info * p,const struct fb_fillrect * rect)17*4882a593Smuzhiyun static inline void wmt_ge_fillrect(struct fb_info *p,
18*4882a593Smuzhiyun 				    const struct fb_fillrect *rect)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	sys_fillrect(p, rect);
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun 
wmt_ge_copyarea(struct fb_info * p,const struct fb_copyarea * area)23*4882a593Smuzhiyun static inline void wmt_ge_copyarea(struct fb_info *p,
24*4882a593Smuzhiyun 				     const struct fb_copyarea *area)
25*4882a593Smuzhiyun {
26*4882a593Smuzhiyun 	sys_copyarea(p, area);
27*4882a593Smuzhiyun }
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #endif
30