blob: b2f137cd4b0909c60161f0da8d41819cd70fe82c [file] [log] [blame]
Steve Kondikf7652b32013-11-26 15:20:51 -08001/* Copyright (c) 2002,2008-2011, The Linux Foundation. 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;
18struct kgsl_process_private;
19
20#ifdef CONFIG_DEBUG_FS
21void kgsl_core_debugfs_init(void);
22void kgsl_core_debugfs_close(void);
23
24int kgsl_device_debugfs_init(struct kgsl_device *device);
25
26extern struct dentry *kgsl_debugfs_dir;
27static inline struct dentry *kgsl_get_debugfs_dir(void)
28{
29 return kgsl_debugfs_dir;
30}
31
32int kgsl_process_init_debugfs(struct kgsl_process_private *);
33#else
34static inline void kgsl_core_debugfs_init(void) { }
35static inline void kgsl_device_debugfs_init(struct kgsl_device *device) { }
36static inline void kgsl_core_debugfs_close(void) { }
37static inline struct dentry *kgsl_get_debugfs_dir(void) { return NULL; }
38static inline int kgsl_process_init_debugfs(struct kgsl_process_private *)
39{
40 return 0;
41}
42
43#endif
44
45#endif