fbdev: add FBIOCOPYAREA ioctl
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Mon, 17 Jun 2013 10:32:11 +0000 (13:32 +0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:49 +0000 (16:03 +0000)
commit138d2c698fd18b0c171eb59c5c41dd615596f636
tree658021c9fc89da01e3c790b002934326a96632d7
parent7c1ff3e05128c04b1c91cfa25484fd48cb9ec2dd
fbdev: add FBIOCOPYAREA ioctl

Based on the patch authored by Ali Gholami Rudi at
    https://lkml.org/lkml/2009/7/13/153

Provide an ioctl for userspace applications, but only if this operation
is hardware accelerated (otherwide it does not make any sense).

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
bcm2708_fb: Add ioctl for reading gpu memory through dma

video: bcm2708_fb: Add compat_ioctl support.

When using a 64 bit kernel with 32 bit userspace we need
compat ioctl handling for FBIODMACOPY as one of the
parameters is a pointer.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/video/fbdev/bcm2708_fb.c
drivers/video/fbdev/core/fbmem.c
include/uapi/linux/fb.h