-rw-r--r--[-rwxr-xr-x] | v3/fake-pipeline2/ge2d_main.h | 68 | ||||
-rwxr-xr-x | v3/fake-pipeline2/ge2d_stream.cpp | 3 | ||||
-rwxr-xr-x | v3/fake-pipeline2/ge2d_wq.h | 3 |
3 files changed, 39 insertions, 35 deletions
diff --git a/v3/fake-pipeline2/ge2d_main.h b/v3/fake-pipeline2/ge2d_main.h index bd0e4bb..d2270bd 100755..100644 --- a/v3/fake-pipeline2/ge2d_main.h +++ b/v3/fake-pipeline2/ge2d_main.h @@ -14,48 +14,54 @@ #include <linux/kthread.h> #include <linux/ion.h> #endif - +#include "ge2d_wq.h" /************************************************************** -** ** -** macro define ** -** ** +** ** +** macro define ** +** ** ***************************************************************/ -#define GE2D_CLASS_NAME "ge2d" +#define GE2D_CLASS_NAME "ge2d" + +#define GE2D_STRETCHBLIT_NOALPHA_NOBLOCK 0x4708 +#define GE2D_BLIT_NOALPHA_NOBLOCK 0x4707 +#define GE2D_BLEND_NOBLOCK 0x4706 +#define GE2D_BLIT_NOBLOCK 0x4705 +#define GE2D_STRETCHBLIT_NOBLOCK 0x4704 +#define GE2D_FILLRECTANGLE_NOBLOCK 0x4703 + -#define GE2D_STRETCHBLIT_NOALPHA_NOBLOCK 0x4708 -#define GE2D_BLIT_NOALPHA_NOBLOCK 0x4707 -#define GE2D_BLEND_NOBLOCK 0x4706 -#define GE2D_BLIT_NOBLOCK 0x4705 -#define GE2D_STRETCHBLIT_NOBLOCK 0x4704 -#define GE2D_FILLRECTANGLE_NOBLOCK 0x4703 +#define GE2D_STRETCHBLIT_NOALPHA 0x4702 +#define GE2D_BLIT_NOALPHA 0x4701 +#define GE2D_BLEND 0x4700 +#define GE2D_BLIT 0x46ff +#define GE2D_STRETCHBLIT 0x46fe +#define GE2D_FILLRECTANGLE 0x46fd +/* #define GE2D_SRCCOLORKEY 0x46fc */ +#define GE2D_SET_COEF 0x46fb +/* #define GE2D_CONFIG_EX 0x46fa */ +/* #define GE2D_CONFIG 0x46f9 */ +#define GE2D_ANTIFLICKER_ENABLE 0x46f8 +#define GE2D_IOC_MAGIC 'G' -#define GE2D_STRETCHBLIT_NOALPHA 0x4702 -#define GE2D_BLIT_NOALPHA 0x4701 -#define GE2D_BLEND 0x4700 -#define GE2D_BLIT 0x46ff -#define GE2D_STRETCHBLIT 0x46fe -#define GE2D_FILLRECTANGLE 0x46fd -#define GE2D_SRCCOLORKEY 0x46fc -#define GE2D_SET_COEF 0x46fb -#define GE2D_CONFIG_EX 0x46fa -#define GE2D_CONFIG 0x46f9 -#define GE2D_ANTIFLICKER_ENABLE 0x46f8 +#define GE2D_CONFIG _IOW(GE2D_IOC_MAGIC, 0x00, config_para_t) +#define GE2D_CONFIG_EX _IOW(GE2D_IOC_MAGIC, 0x01, config_para_ex_t) +#define GE2D_SRCCOLORKEY _IOW(GE2D_IOC_MAGIC, 0x02, config_para_t) /************************************************************** -** ** -** type define ** -** ** +** ** +** type define ** +** ** ***************************************************************/ #ifdef __KERNEL__ typedef struct { - char name[20]; - unsigned int open_count; - int major; - unsigned int dbg_enable; - struct class *cla; - struct device *dev; + char name[20]; + unsigned int open_count; + int major; + unsigned int dbg_enable; + struct class *cla; + struct device *dev; struct ion_client *ion_client; }ge2d_device_t; #endif |