#define RGA_BLIT_ASYNC 0x5018\r
#define RGA_FLUSH 0x5019\r
#define RGA_GET_RESULT 0x501a\r
+#define RGA_GET_VERSION 0x501b\r
\r
\r
#define RGA_REG_CTRL_LEN 0x8 /* 8 */\r
#define DRIVER_DESC "RGA Device Driver"\r
#define DRIVER_NAME "rga"\r
\r
+#define RGA_VERSION "1.000"\r
+\r
ktime_t rga_start;\r
ktime_t rga_end;\r
\r
break;\r
case RGA_GET_RESULT:\r
ret = rga_get_result(session, arg);\r
+ case RGA_GET_VERSION:\r
+ ret = copy_to_user((void *)arg, RGA_VERSION, sizeof(RGA_VERSION));\r
+ //ret = 0;\r
+ break;\r
default:\r
ERR("unknown ioctl cmd!\n");\r
ret = -EINVAL;\r