OSDN Git Service

drm/vmwgfx: Introduce a simple resource type
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 23 Mar 2017 22:09:42 +0000 (15:09 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 22:21:17 +0000 (15:21 -0700)
commitd4d21902222d44acc76a520f11f78040b1e34b5a
treefb909312ad6d76917811f2f054c59a1984fdb8da
parent50f837371dd9aea5470c06d5d10bc9ca3e8155b6
drm/vmwgfx: Introduce a simple resource type

The callbacks we need to provide to many resources are very similar, so
provide a simple resource type with a number of helpers for these
callbacks.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/Makefile
drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h
drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c [new file with mode: 0644]