mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
add rga version
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user