mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 3083ae11d58fb7a083663865020c0a763540532b Mon Sep 17 00:00:00 2001
|
|
From: Sammy He <r62914@freescale.com>
|
|
Date: Wed, 2 Nov 2011 20:02:35 +0800
|
|
Subject: [PATCH] ENGR00161215-1 arch/arm: Add two new IOCTLs in mxc_vpu.h
|
|
|
|
Add IOCTL VPU_IOC_QUERY_BITWORK_MEM and VPU_IOC_SET_BITWORK_MEM
|
|
for vpu driver.
|
|
The two ioctls can be used when user allocates working buffer
|
|
from user space, for exmaple, allocating it from pmem interface
|
|
on android, then register it to vpu driver.
|
|
|
|
Signed-off-by: Sammy He <r62914@freescale.com>
|
|
(cherry picked from commit ad29cb1c2ad8ca4bbb30ff2ff55a4e8888b08373)
|
|
---
|
|
arch/arm/plat-mxc/include/mach/mxc_vpu.h | 2 ++
|
|
1 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/arch/arm/plat-mxc/include/mach/mxc_vpu.h b/arch/arm/plat-mxc/include/mach/mxc_vpu.h
|
|
index 355a9ef..32865e5 100644
|
|
--- a/arch/arm/plat-mxc/include/mach/mxc_vpu.h
|
|
+++ b/arch/arm/plat-mxc/include/mach/mxc_vpu.h
|
|
@@ -48,6 +48,8 @@ struct vpu_mem_desc {
|
|
#define VPU_IOC_REQ_VSHARE_MEM _IO(VPU_IOC_MAGIC, 9)
|
|
#define VPU_IOC_SYS_SW_RESET _IO(VPU_IOC_MAGIC, 11)
|
|
#define VPU_IOC_GET_SHARE_MEM _IO(VPU_IOC_MAGIC, 12)
|
|
+#define VPU_IOC_QUERY_BITWORK_MEM _IO(VPU_IOC_MAGIC, 13)
|
|
+#define VPU_IOC_SET_BITWORK_MEM _IO(VPU_IOC_MAGIC, 14)
|
|
|
|
#define BIT_CODE_RUN 0x000
|
|
#define BIT_CODE_DOWN 0x004
|
|
--
|
|
1.5.4.4
|
|
|