2005-11-06 23:03:23 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2005 Richard Purdie
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-10-18 18:04:39 +08:00
|
|
|
#include <linux/suspend.h>
|
|
|
|
|
2007-07-18 18:38:45 +08:00
|
|
|
struct pxa_cpu_pm_fns {
|
2008-05-03 04:17:06 +08:00
|
|
|
int save_count;
|
2007-07-18 18:38:45 +08:00
|
|
|
void (*save)(unsigned long *);
|
|
|
|
void (*restore)(unsigned long *);
|
|
|
|
int (*valid)(suspend_state_t state);
|
|
|
|
void (*enter)(suspend_state_t state);
|
2008-08-27 19:55:04 +08:00
|
|
|
int (*prepare)(void);
|
|
|
|
void (*finish)(void);
|
2007-07-18 18:38:45 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
|
|
|
|
|
2007-07-18 18:40:13 +08:00
|
|
|
/* sleep.S */
|
|
|
|
extern void pxa25x_cpu_suspend(unsigned int);
|
|
|
|
extern void pxa27x_cpu_suspend(unsigned int);
|
|
|
|
extern void pxa_cpu_resume(void);
|
|
|
|
|
2005-11-06 23:03:23 +08:00
|
|
|
extern int pxa_pm_enter(suspend_state_t state);
|