drm/vc4: Add create and map BO ioctls.
authorEric Anholt <eric@anholt.net>
Sat, 17 Jan 2015 20:33:17 +0000 (09:33 +1300)
committerEric Anholt <eric@anholt.net>
Tue, 8 Dec 2015 04:04:57 +0000 (20:04 -0800)
commitd5bc60f6ad05b3c676b057bec662cfafc3ee24dd
tree5604e8a60ed54b6557152769796d09a5f7d3f3df
parentc826a6e1064419f78855463cf29ce9e8b9d25bf4
drm/vc4: Add create and map BO ioctls.

While there exist dumb APIs for creating and mapping BOs, one of the
rules is that drivers doing 3D acceleration have to provide their own
APIs for buffer allocation (besides, the pitch/height parameters of
the dumb alloc don't really make sense for a lot of 3D allocations).

v2: Use __u32-style types, use "drm.h" instead of <drm/drm.h>.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_drv.h
include/uapi/drm/Kbuild
include/uapi/drm/vc4_drm.h [new file with mode: 0644]