diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /drivers/video/wmt/ge/ge_accel.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'drivers/video/wmt/ge/ge_accel.h')
-rwxr-xr-x | drivers/video/wmt/ge/ge_accel.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/drivers/video/wmt/ge/ge_accel.h b/drivers/video/wmt/ge/ge_accel.h new file mode 100755 index 00000000..c6934daa --- /dev/null +++ b/drivers/video/wmt/ge/ge_accel.h @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2008-2013 WonderMedia Technologies, Inc. + * + * 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, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * WonderMedia Technologies, Inc. + * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C + */ + +#ifndef GE_ACCEL_H +#define GE_ACCEL_H + +#include <linux/init.h> +#include <linux/module.h> +#include <linux/types.h> +#include <linux/fb.h> + +#ifndef __KERNEL__ +#define __KERNEL__ +#endif + +#define GE_DEBUG 0 +#define FB_ACCEL_WMT 0x8910 +#define MAX_XRES 1920 +#define MAX_YRES 1080 +#define GE_FB_NUM 3 + +#define HAVE_MALI +#define HAVE_VPP + +extern int vbl; +extern int vsync; + +unsigned int phy_mem_end(void); +unsigned int phy_mem_end_sub(unsigned int size); +int ge_init(struct fb_info *info); +int ge_exit(struct fb_info *info); +int ge_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg); +int ge_pan_display(struct fb_var_screeninfo *var, struct fb_info *info); +int ge_sync(struct fb_info *info); +int ge_release(struct fb_info *info); +int ge_blank(int mode, struct fb_info *info); +int ge_suspend(struct fb_info *info); +int ge_resume(struct fb_info *info); + +void ge_vo_get_default_var(struct fb_var_screeninfo *var); +void ge_vo_wait_vsync(void); + +#ifdef HAVE_VPP +#include "../vpp.h" +extern void vpp_wait_vsync(int idx, int cnt); +extern void wmtfb_set_mutex(struct fb_info *info, int lock); +extern int vpp_get_info(int fbn, struct fb_var_screeninfo *var); +extern int vpp_pan_display(struct fb_var_screeninfo *var, struct fb_info *info); +extern int vpp_set_blank(struct fb_info *info, int blank); +extern int vpp_set_par(struct fb_info *info); +extern int wmtfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info); +#endif /* HAVE_VPP */ + +#ifdef HAVE_MALI +extern unsigned int mali_ump_secure_id; +extern unsigned int (*mali_get_ump_secure_id)(unsigned int addr, + unsigned int size); +extern void (*mali_put_ump_secure_id)(unsigned int ump_id); +#endif /* HAVE_MALI */ + +#endif |