1 /*
2 * drivers/staging/omapdrm/omap_debugfs.c
3 *
4 * Copyright (C) 2011 Texas Instruments
5 * Author: Rob Clark <rob.clark@linaro.org>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "omap_drv.h"
21 #include "omap_dmm_tiler.h"
22
23 #ifdef CONFIG_DEBUG_FS
24
25 static struct drm_info_list omap_debugfs_list[] = {
26 {"tiler_map", tiler_map_show, 0},
27 };
28
omap_debugfs_init(struct drm_minor * minor)29 int omap_debugfs_init(struct drm_minor *minor)
30 {
31 return drm_debugfs_create_files(omap_debugfs_list,
32 ARRAY_SIZE(omap_debugfs_list),
33 minor->debugfs_root, minor);
34 }
35
omap_debugfs_cleanup(struct drm_minor * minor)36 void omap_debugfs_cleanup(struct drm_minor *minor)
37 {
38 drm_debugfs_remove_files(omap_debugfs_list,
39 ARRAY_SIZE(omap_debugfs_list), minor);
40 }
41
42 #endif
43