Magnus Damm | 2ef7f0d | 2009-03-06 09:47:02 +0000 | [diff] [blame] | 1 | #ifndef _ASM_SH_SUSPEND_H |
| 2 | #define _ASM_SH_SUSPEND_H |
| 3 | |
Magnus Damm | 7759491 | 2009-03-13 15:23:04 +0000 | [diff] [blame] | 4 | #ifndef __ASSEMBLY__ |
Magnus Damm | 2ef7f0d | 2009-03-06 09:47:02 +0000 | [diff] [blame] | 5 | static inline int arch_prepare_suspend(void) { return 0; } |
| 6 | |
| 7 | #include <asm/ptrace.h> |
| 8 | |
| 9 | struct swsusp_arch_regs { |
| 10 | struct pt_regs user_regs; |
| 11 | unsigned long bank1_regs[8]; |
| 12 | }; |
Magnus Damm | 7426394 | 2009-07-03 10:28:00 +0000 | [diff] [blame] | 13 | |
| 14 | void sh_mobile_call_standby(unsigned long mode); |
| 15 | |
| 16 | #ifdef CONFIG_CPU_IDLE |
| 17 | void sh_mobile_setup_cpuidle(void); |
| 18 | #else |
| 19 | static inline void sh_mobile_setup_cpuidle(void) {} |
| 20 | #endif |
| 21 | |
Magnus Damm | 7759491 | 2009-03-13 15:23:04 +0000 | [diff] [blame] | 22 | #endif |
| 23 | |
| 24 | /* flags passed to assembly suspend code */ |
| 25 | #define SUSP_SH_SLEEP (1 << 0) /* Regular sleep mode */ |
| 26 | #define SUSP_SH_STANDBY (1 << 1) /* SH-Mobile Software standby mode */ |
| 27 | #define SUSP_SH_RSTANDBY (1 << 2) /* SH-Mobile R-standby mode */ |
| 28 | #define SUSP_SH_USTANDBY (1 << 3) /* SH-Mobile U-standby mode */ |
| 29 | #define SUSP_SH_SF (1 << 4) /* Enable self-refresh */ |
Magnus Damm | 2ef7f0d | 2009-03-06 09:47:02 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* _ASM_SH_SUSPEND_H */ |