1
2
3
4
5
6
7
8
9 #ifndef __PUV3_PM_H__
10 #define __PUV3_PM_H__
11
12 #include <linux/suspend.h>
13
14 struct puv3_cpu_pm_fns {
15 int save_count;
16 void (*save)(unsigned long *);
17 void (*restore)(unsigned long *);
18 int (*valid)(suspend_state_t state);
19 void (*enter)(suspend_state_t state);
20 int (*prepare)(void);
21 void (*finish)(void);
22 };
23
24 extern struct puv3_cpu_pm_fns *puv3_cpu_pm_fns;
25
26
27 extern void puv3_cpu_suspend(unsigned int);
28
29 extern void puv3_cpu_resume(void);
30
31 extern int puv3_pm_enter(suspend_state_t state);
32
33
34 extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);
35
36 extern struct pbe *restore_pblist;
37 #endif