fbdev: add FBIOCOPYAREA ioctl
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Mon, 17 Jun 2013 10:32:11 +0000 (13:32 +0300)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:12:49 +0000 (19:12 +0000)
commitb04ce1406f2c47941241d5a5a09782e1de5d0cc5
treed17f5019155f0987564caf5b3badc7171d883849
parent7b7587f3976e7219bb18867ab059b4d40af4476e
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