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, 19 Feb 2024 11:31:34 +0000 (11:31 +0000)
commit0ec2491582e1cfe726db6c2d13f84344d585a98b
treec824e9c16df470145f09dfa9a8304f571d70dee4
parent031038e91bfcf263fd6ac988c6d641008ef1073b
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/fb_chrdev.c
include/uapi/linux/fb.h