diff options
author | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-07-21 23:04:45 +0200 |
---|---|---|
committer | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-07-21 23:04:45 +0200 |
commit | 0a1182796f6475b8cb2ff1781dad873a744b3197 (patch) | |
tree | e15b5256dac226c49a25b5e24594cd638e2fec2c /arch/arm/mach-exynos/secmem-allocdev.c | |
parent | 633018c13fe06461d9c60692fbb114734aa37802 (diff) | |
download | kernel_samsung_smdk4412-0a1182796f6475b8cb2ff1781dad873a744b3197.zip kernel_samsung_smdk4412-0a1182796f6475b8cb2ff1781dad873a744b3197.tar.gz kernel_samsung_smdk4412-0a1182796f6475b8cb2ff1781dad873a744b3197.tar.bz2 |
samsung opensource update3
Diffstat (limited to 'arch/arm/mach-exynos/secmem-allocdev.c')
-rw-r--r-- | arch/arm/mach-exynos/secmem-allocdev.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/secmem-allocdev.c b/arch/arm/mach-exynos/secmem-allocdev.c index ce0b3d4..1e68e9c 100644 --- a/arch/arm/mach-exynos/secmem-allocdev.c +++ b/arch/arm/mach-exynos/secmem-allocdev.c @@ -279,6 +279,26 @@ static long secmem_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) *(uint32_t *)(mfc_shm_virtaddr + 0xC) = MFC_SEC_MAGIC_CHUNK3; break; } + + case SECMEM_IOC_TEXT_CHUNKINFO: + { + struct cma_info info; + struct secchunk_info minfo; + + if (cma_info(&info, secmem.this_device, "fimc0")) + return -EINVAL; + + minfo.base = info.lower_bound; + minfo.size = info.total_size; + + printk("[minfo base] : 0x%x", minfo.base); + printk("[minfo size] : 0x%x", minfo.size); + + if (copy_to_user((void __user *)arg, &minfo, sizeof(minfo))) + return -EFAULT; + break; + } + default: return -ENOTTY; } |