add rga version

This commit is contained in:
huangdesheng
2012-07-05 17:47:06 +08:00
parent f8dbfea945
commit 6c68734667
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#define RGA_BLIT_ASYNC 0x5018
#define RGA_FLUSH 0x5019
#define RGA_GET_RESULT 0x501a
#define RGA_GET_VERSION 0x501b
#define RGA_REG_CTRL_LEN 0x8 /* 8 */

View File

@@ -68,6 +68,8 @@
#define DRIVER_DESC "RGA Device Driver"
#define DRIVER_NAME "rga"
#define RGA_VERSION "1.000"
ktime_t rga_start;
ktime_t rga_end;
@@ -954,6 +956,10 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
break;
case RGA_GET_RESULT:
ret = rga_get_result(session, arg);
case RGA_GET_VERSION:
ret = copy_to_user((void *)arg, RGA_VERSION, sizeof(RGA_VERSION));
//ret = 0;
break;
default:
ERR("unknown ioctl cmd!\n");
ret = -EINVAL;