blob: 5e10988076defe627360ec45422a2ce837cd290b [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2002,2008-2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef _KGSL_DEBUGFS_H
15#define _KGSL_DEBUGFS_H
16
17struct kgsl_device;
18
19#ifdef CONFIG_DEBUG_FS
20void kgsl_core_debugfs_init(void);
Jordan Croused8f1c6b2011-10-04 09:31:29 -060021void kgsl_core_debugfs_close(void);
22
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070023void kgsl_device_debugfs_init(struct kgsl_device *device);
24
25extern struct dentry *kgsl_debugfs_dir;
26static inline struct dentry *kgsl_get_debugfs_dir(void)
27{
28 return kgsl_debugfs_dir;
29}
30
31#else
32static inline void kgsl_core_debugfs_init(void) { }
33static inline void kgsl_device_debugfs_init(struct kgsl_device *device) { }
Jordan Croused8f1c6b2011-10-04 09:31:29 -060034static inline void kgsl_core_debugfs_close(void) { }
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070035static inline struct dentry *kgsl_get_debugfs_dir(void) { return NULL; }
36
37#endif
38
39#endif