2005-11-06 15:03:23 +00: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-07-18 10:38:45 +00:00
|
|
|
struct pxa_cpu_pm_fns {
|
|
|
|
int save_size;
|
|
|
|
void (*save)(unsigned long *);
|
|
|
|
void (*restore)(unsigned long *);
|
|
|
|
int (*valid)(suspend_state_t state);
|
|
|
|
void (*enter)(suspend_state_t state);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
|
|
|
|
|
2005-11-06 15:03:23 +00:00
|
|
|
extern int pxa_pm_enter(suspend_state_t state);
|