This source file includes following definitions.
- s3c_pm_init
- s3c64xx_pm_init
- s3c_pm_debug_smdkled
- samsung_pm_restore_gpios
- samsung_pm_save_gpios
1
2
3
4
5
6
7
8
9
10
11
12
13
14 #include <plat/pm-common.h>
15
16 struct device;
17
18 #ifdef CONFIG_SAMSUNG_PM
19
20 extern __init int s3c_pm_init(void);
21 extern __init int s3c64xx_pm_init(void);
22
23 #else
24
25 static inline int s3c_pm_init(void)
26 {
27 return 0;
28 }
29
30 static inline int s3c64xx_pm_init(void)
31 {
32 return 0;
33 }
34 #endif
35
36
37 extern unsigned long s3c_irqwake_intmask;
38 extern unsigned long s3c_irqwake_eintmask;
39
40
41
42 extern void (*pm_cpu_prep)(void);
43 extern int (*pm_cpu_sleep)(unsigned long);
44
45
46
47 extern unsigned long s3c_pm_flags;
48
49
50
51 extern int s3c2410_cpu_suspend(unsigned long);
52
53 #ifdef CONFIG_PM_SLEEP
54 extern int s3c_irq_wake(struct irq_data *data, unsigned int state);
55 extern void s3c_cpu_resume(void);
56 #else
57 #define s3c_irq_wake NULL
58 #define s3c_cpu_resume NULL
59 #endif
60
61 #ifdef CONFIG_SAMSUNG_PM
62 extern int s3c_irqext_wake(struct irq_data *data, unsigned int state);
63 #else
64 #define s3c_irqext_wake NULL
65 #endif
66
67 #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK
68
69
70
71
72
73 extern void s3c_pm_debug_smdkled(u32 set, u32 clear);
74
75 #else
76 static inline void s3c_pm_debug_smdkled(u32 set, u32 clear) { }
77 #endif
78
79
80
81
82
83
84
85 extern void s3c_pm_configure_extint(void);
86
87 #ifdef CONFIG_GPIO_SAMSUNG
88
89
90
91
92
93
94
95 extern void samsung_pm_restore_gpios(void);
96
97
98
99
100
101
102 extern void samsung_pm_save_gpios(void);
103 #else
104 static inline void samsung_pm_restore_gpios(void) {}
105 static inline void samsung_pm_save_gpios(void) {}
106 #endif
107
108 extern void s3c_pm_save_core(void);
109 extern void s3c_pm_restore_core(void);