26 #ifdef CONFIG_DEBUG_FS
30 struct drm_info_node *
node = (
struct drm_info_node *) m->
private;
40 omap_gem_describe_objects(&
priv->obj_list, m);
47 static int mm_show(
struct seq_file *m,
void *arg)
49 struct drm_info_node *node = (
struct drm_info_node *) m->
private;
51 return drm_mm_dump_table(m,
dev->mm_private);
54 static int fb_show(
struct seq_file *m,
void *arg)
56 struct drm_info_node *node = (
struct drm_info_node *) m->
private;
73 omap_framebuffer_describe(
priv->fbdev->fb, m);
80 omap_framebuffer_describe(
fb, m);
90 static struct drm_info_list omap_debugfs_list[] = {
97 static struct drm_info_list omap_dmm_debugfs_list[] = {
98 {
"tiler_map", tiler_map_show, 0},
101 int omap_debugfs_init(
struct drm_minor *minor)
106 ret = drm_debugfs_create_files(omap_debugfs_list,
108 minor->debugfs_root, minor);
111 dev_err(dev->dev,
"could not install omap_debugfs_list\n");
115 if (dmm_is_available())
116 ret = drm_debugfs_create_files(omap_dmm_debugfs_list,
118 minor->debugfs_root, minor);
121 dev_err(dev->dev,
"could not install omap_dmm_debugfs_list\n");
128 void omap_debugfs_cleanup(
struct drm_minor *minor)
130 drm_debugfs_remove_files(omap_debugfs_list,
132 if (dmm_is_available())
133 drm_debugfs_remove_files(omap_dmm_debugfs_list,