Path: blob/master/arch/unicore32/include/mach/pm.h
10818 views
/*1* linux/arch/unicore/include/mach/pm.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#ifndef __PUV3_PM_H__12#define __PUV3_PM_H__1314#include <linux/suspend.h>1516struct puv3_cpu_pm_fns {17int save_count;18void (*save)(unsigned long *);19void (*restore)(unsigned long *);20int (*valid)(suspend_state_t state);21void (*enter)(suspend_state_t state);22int (*prepare)(void);23void (*finish)(void);24};2526extern struct puv3_cpu_pm_fns *puv3_cpu_pm_fns;2728/* sleep.S */29extern void puv3_cpu_suspend(unsigned int);3031extern void puv3_cpu_resume(void);3233extern int puv3_pm_enter(suspend_state_t state);3435/* Defined in hibernate_asm.S */36extern int restore_image(pgd_t *resume_pg_dir, struct pbe *restore_pblist);3738/* References to section boundaries */39extern const void __nosave_begin, __nosave_end;4041extern struct pbe *restore_pblist;42#endif434445