aboutsummaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-pxa/pm.h
blob: 62b69004819d8c51d6154942cbf9768d6eefa894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * 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.
 *
 */

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;

extern int pxa_pm_enter(suspend_state_t state);