|
Linux Kernel
3.7.1
|
#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) |
| 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
| 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!
| void s3c_pm_do_save | ( | struct sleep_save * | ptr, |
| int | count | ||
| ) |
1.8.2