suspend.h 643 B

12345678910111213141516171819202122
  1. #ifndef _ASM_SH_SUSPEND_H
  2. #define _ASM_SH_SUSPEND_H
  3. #ifndef __ASSEMBLY__
  4. static inline int arch_prepare_suspend(void) { return 0; }
  5. #include <asm/ptrace.h>
  6. struct swsusp_arch_regs {
  7. struct pt_regs user_regs;
  8. unsigned long bank1_regs[8];
  9. };
  10. #endif
  11. /* flags passed to assembly suspend code */
  12. #define SUSP_SH_SLEEP (1 << 0) /* Regular sleep mode */
  13. #define SUSP_SH_STANDBY (1 << 1) /* SH-Mobile Software standby mode */
  14. #define SUSP_SH_RSTANDBY (1 << 2) /* SH-Mobile R-standby mode */
  15. #define SUSP_SH_USTANDBY (1 << 3) /* SH-Mobile U-standby mode */
  16. #define SUSP_SH_SF (1 << 4) /* Enable self-refresh */
  17. #endif /* _ASM_SH_SUSPEND_H */