Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pm.c File Reference
#include <linux/init.h>
#include <linux/suspend.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/serial_core.h>
#include <linux/io.h>
#include <asm/cacheflush.h>
#include <asm/suspend.h>
#include <mach/hardware.h>
#include <mach/map.h>
#include <plat/regs-serial.h>
#include <mach/regs-clock.h>
#include <mach/regs-irq.h>
#include <asm/irq.h>
#include <plat/pm.h>
#include <mach/pm-core.h>

Go to the source code of this file.

Macros

#define s3c_pm_debug_init()   do { } while(0)
 
#define any_allowed(mask, allow)   (((mask) & (allow)) != (allow))
 

Functions

int s3c_irqext_wake (struct irq_data *data, unsigned int state)
 
void s3c_pm_do_save (struct sleep_save *ptr, int count)
 
void s3c_pm_do_restore (struct sleep_save *ptr, int count)
 
void s3c_pm_do_restore_core (struct sleep_save *ptr, int count)
 
int __init s3c_pm_init (void)
 

Variables

unsigned long s3c_pm_flags
 
unsigned char pm_uart_udivslot
 
unsigned long s3c_irqwake_intmask = 0xffffffffL
 
unsigned long s3c_irqwake_eintmask = 0xffffffffL
 
void(* pm_cpu_prep )(void)
 
int(* pm_cpu_sleep )(unsigned long)
 

Macro Definition Documentation

#define any_allowed (   mask,
  allow 
)    (((mask) & (allow)) != (allow))

Definition at line 237 of file pm.c.

#define s3c_pm_debug_init ( )    do { } while(0)

Definition at line 67 of file pm.c.

Function Documentation

int s3c_irqext_wake ( struct irq_data data,
unsigned int  state 
)

Definition at line 140 of file pm.c.

void s3c_pm_do_restore ( struct sleep_save ptr,
int  count 
)

s3c_pm_do_restore() - restore register values from the save list. : Pointer to an array of registers. : Size of the ptr array.

Restore the register values saved from s3c_pm_do_save().

Note, we do not use S3C_PMDBG() in here, as the system may not have restore the UARTs state yet

Definition at line 187 of file pm.c.

void s3c_pm_do_restore_core ( struct sleep_save ptr,
int  count 
)

s3c_pm_do_restore_core() - early restore register values from save list.

This is similar to s3c_pm_do_restore() except we try and minimise the side effects of the function in case registers that hardware might need to work has been restored.

WARNING: Do not put any debug in here that may effect memory or use peripherals, as things may be changing!

Definition at line 208 of file pm.c.

void s3c_pm_do_save ( struct sleep_save ptr,
int  count 
)

s3c_pm_do_save() - save a set of registers for restoration on resume. : Pointer to an array of registers. : Size of the ptr array.

Run through the list of registers given, saving their contents in the array for later restoration when we wakeup.

Definition at line 168 of file pm.c.

int __init s3c_pm_init ( void  )

Definition at line 358 of file pm.c.

Variable Documentation

void(* pm_cpu_prep)(void)

Definition at line 234 of file pm.c.

int(* pm_cpu_sleep)(unsigned long)

Definition at line 235 of file pm.c.

unsigned char pm_uart_udivslot

Definition at line 73 of file pm.c.

unsigned long s3c_irqwake_eintmask = 0xffffffffL

Definition at line 138 of file pm.c.

unsigned long s3c_irqwake_intmask = 0xffffffffL

Definition at line 137 of file pm.c.

unsigned long s3c_pm_flags

Definition at line 37 of file pm.c.