1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/unicore/include/mach/pm.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
12 #include <linux/suspend.h>
14 struct puv3_cpu_pm_fns {
16 void (*save)(unsigned long *);
17 void (*restore)(unsigned long *);
18 int (*valid)(suspend_state_t state);
19 void (*enter)(suspend_state_t state);
24 extern struct puv3_cpu_pm_fns *puv3_cpu_pm_fns;
27 extern void puv3_cpu_suspend(unsigned int);
29 extern void puv3_cpu_resume(void);
31 extern int puv3_pm_enter(suspend_state_t state);
33 /* Defined in hibernate_asm.S */
34 extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);
36 extern struct pbe *restore_pblist;