root/arch/unicore32/include/mach/pm.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-only */
   2 /*
   3  * linux/arch/unicore/include/mach/pm.h
   4  *
   5  * Code specific to PKUnity SoC and UniCore ISA
   6  *
   7  * Copyright (C) 2001-2010 GUAN Xue-tao
   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 /* sleep.S */
  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 /* Defined in hibernate_asm.S */
  34 extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);
  35 
  36 extern struct pbe *restore_pblist;
  37 #endif

/* [<][>][^][v][top][bottom][index][help] */