| /* Copyright (c) 2002,2008-2012, Code Aurora Forum. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| * |
| */ |
| #ifndef __ADRENO_DEBUGFS_H |
| #define __ADRENO_DEBUGFS_H |
| |
| #ifdef CONFIG_DEBUG_FS |
| |
| int adreno_debugfs_init(struct kgsl_device *device); |
| |
| extern int adreno_pm_regs_enabled; |
| extern int adreno_pm_ib_enabled; |
| |
| static inline int is_adreno_pm_regs_enabled(void) |
| { |
| return adreno_pm_regs_enabled; |
| } |
| |
| static inline int is_adreno_pm_ib_enabled(void) |
| { |
| return adreno_pm_ib_enabled; |
| } |
| |
| #else |
| static inline int adreno_debugfs_init(struct kgsl_device *device) |
| { |
| return 0; |
| } |
| |
| static inline int kgsl_pmregs_enabled(void) |
| { |
| /* If debugfs is turned off, then always print registers */ |
| return 1; |
| } |
| #endif |
| |
| #endif /* __ADRENO_DEBUGFS_H */ |