blob: 65da3221b13891669cb4bef4518ed06fabfc418d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 | /*
 * Copyright (C) 2013 Motorola Mobility LLC
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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 __PM_DEBUG_REGS_H__
#define __PM_DEBUG_REGS_H__
#include <linux/dcache.h>
#ifdef CONFIG_PM_DEBUG
extern int  pm_dbg_regs_init(struct dentry *d);
extern void pm_dbg_regs_save(int reg_set);
extern void pm_dbg_regs_dump(int reg_set);
extern void pm_dbg_regs_dump_delta(int cur, int rfr);
extern void pm_dbg_show_wakeup_source(void);
extern void pm_dbg_regs_copy(int tgt, int src);
#else
static inline int pm_dbg_regs_init(struct dentry *d) { return 0; }
static inline void pm_dbg_regs_save(int reg_set) {};
static inline void pm_dbg_regs_dump(int reg_set) {};
static inline void pm_dbg_regs_dump_delta(int curr, int ref) {};
static inline void pm_dbg_show_wakeup_source(void) {};
static inline void pm_dbg_regs_copy(int tgt, int src) {};
#endif
#endif
 |