Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
suspend.h File Reference
#include <linux/notifier.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Data Structures

struct  swsusp_arch_regs
 
struct  sh_sleep_regs
 
struct  sh_sleep_data
 

Macros

#define SH_MOBILE_SLEEP_BOARD   0
 
#define SH_MOBILE_SLEEP_CPU   1
 
#define SH_MOBILE_PRE(x)   (x)
 
#define SH_MOBILE_POST(x)   (-(x))
 
#define SUSP_SH_SLEEP   (1 << 0) /* Regular sleep mode */
 
#define SUSP_SH_STANDBY   (1 << 1) /* SH-Mobile Software standby mode */
 
#define SUSP_SH_RSTANDBY   (1 << 2) /* SH-Mobile R-standby mode */
 
#define SUSP_SH_USTANDBY   (1 << 3) /* SH-Mobile U-standby mode */
 
#define SUSP_SH_SF   (1 << 4) /* Enable self-refresh */
 
#define SUSP_SH_MMU   (1 << 5) /* Save/restore MMU and cache */
 
#define SUSP_SH_REGS   (1 << 6) /* Save/restore registers */
 

Functions

void sh_mobile_call_standby (unsigned long mode)
 
void sh_mobile_register_self_refresh (unsigned long flags, void *pre_start, void *pre_end, void *post_start, void *post_end)
 

Variables

struct atomic_notifier_head sh_mobile_pre_sleep_notifier_list
 
struct atomic_notifier_head sh_mobile_post_sleep_notifier_list
 
unsigned long sh_mobile_sleep_supported
 

Macro Definition Documentation

#define SH_MOBILE_POST (   x)    (-(x))

Definition at line 30 of file suspend.h.

#define SH_MOBILE_PRE (   x)    (x)

Definition at line 29 of file suspend.h.

#define SH_MOBILE_SLEEP_BOARD   0

Definition at line 27 of file suspend.h.

#define SH_MOBILE_SLEEP_CPU   1

Definition at line 28 of file suspend.h.

#define SUSP_SH_MMU   (1 << 5) /* Save/restore MMU and cache */

Definition at line 93 of file suspend.h.

#define SUSP_SH_REGS   (1 << 6) /* Save/restore registers */

Definition at line 94 of file suspend.h.

#define SUSP_SH_RSTANDBY   (1 << 2) /* SH-Mobile R-standby mode */

Definition at line 90 of file suspend.h.

#define SUSP_SH_SF   (1 << 4) /* Enable self-refresh */

Definition at line 92 of file suspend.h.

#define SUSP_SH_SLEEP   (1 << 0) /* Regular sleep mode */

Definition at line 88 of file suspend.h.

#define SUSP_SH_STANDBY   (1 << 1) /* SH-Mobile Software standby mode */

Definition at line 89 of file suspend.h.

#define SUSP_SH_USTANDBY   (1 << 3) /* SH-Mobile U-standby mode */

Definition at line 91 of file suspend.h.

Function Documentation

void sh_mobile_call_standby ( unsigned long  mode)

Definition at line 49 of file pm.c.

void sh_mobile_register_self_refresh ( unsigned long  flags,
void pre_start,
void pre_end,
void post_start,
void post_end 
)

Definition at line 80 of file pm.c.

Variable Documentation

struct atomic_notifier_head sh_mobile_post_sleep_notifier_list
struct atomic_notifier_head sh_mobile_pre_sleep_notifier_list
unsigned long sh_mobile_sleep_supported

Definition at line 78 of file pm.c.