]> git.karo-electronics.de Git - linux-beck.git/commit
drm/cma: add debugfs helpers
authorRob Clark <robdclark@gmail.com>
Mon, 10 Dec 2012 16:46:43 +0000 (10:46 -0600)
committerRob Clark <robdclark@gmail.com>
Sun, 17 Feb 2013 22:55:42 +0000 (17:55 -0500)
commit6f646095ec2f5d38a6429dd896cb2d5cbbb776dc
tree41444767a379449c4e57f60dbee6d3bf2c670904
parent21a245d2d62ef617978316203af032d499805cd2
drm/cma: add debugfs helpers

Add helper to display fb's which can be used directly in drm_info_list:

static struct drm_info_list foo_debugfs_list[] = {
...
{ "fb",   drm_fb_cma_debugfs_show, 0 },
};

to display information about CMA fb objects, as well as a
drm_gem_cma_describe() which can be used if the driver bothers to keep
a list of CMA GEM objects.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_fb_cma_helper.c
drivers/gpu/drm/drm_gem_cma_helper.c
include/drm/drm_fb_cma_helper.h
include/drm/drm_gem_cma_helper.h