pm.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * linux/arch/unicore/include/mach/pm.h
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __PUV3_PM_H__
  13. #define __PUV3_PM_H__
  14. #include <linux/suspend.h>
  15. struct puv3_cpu_pm_fns {
  16. int save_count;
  17. void (*save)(unsigned long *);
  18. void (*restore)(unsigned long *);
  19. int (*valid)(suspend_state_t state);
  20. void (*enter)(suspend_state_t state);
  21. int (*prepare)(void);
  22. void (*finish)(void);
  23. };
  24. extern struct puv3_cpu_pm_fns *puv3_cpu_pm_fns;
  25. /* sleep.S */
  26. extern void puv3_cpu_suspend(unsigned int);
  27. extern void puv3_cpu_resume(void);
  28. extern int puv3_pm_enter(suspend_state_t state);
  29. /* Defined in hibernate_asm.S */
  30. extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);
  31. /* References to section boundaries */
  32. extern const void __nosave_begin, __nosave_end;
  33. extern struct pbe *restore_pblist;
  34. #endif