~vcs-imports/suspend/trunk

89 by pavel
Create header file for s2ram.c, so it can be cleanly called from suspend.c
1
/*
2
 * Suspend-to-RAM
3
 *
4
 * Copyright 2006 Pavel Machek <pavel@suse.cz>
5
 * Distribute under GPLv2.
6
 */
7
365 by rjwysocki
8
#ifdef CONFIG_ARCH_X86
9
#include "s2ram-x86.h"
10
#endif
11
#ifdef CONFIG_ARCH_PPC
12
#include "s2ram-ppc.h"
13
#endif
14
89 by pavel
Create header file for s2ram.c, so it can be cleanly called from suspend.c
15
/* from radeontool.c */
16
void radeon_cmd_light(int);
17
void map_radeon_cntl_mem(void);
18
19
/* from s2ram.c */
304 by tdykstra
Split x86 specific parts of s2ram.[ch] to s2ram-x86.[ch]
20
/* return codes for s2ram_is_supported */
21
#define S2RAM_OK        0
22
#define S2RAM_FAIL      1
23
#define S2RAM_NOFB      126
24
#define S2RAM_UNKNOWN   127
25
114 by seife
Refactor the s2ram code:
26
int s2ram_hacks(void);
296 by tdykstra
Add s2ram-style options for the `video hacks' to s2both.
27
int s2ram_is_supported(void);
304 by tdykstra
Split x86 specific parts of s2ram.[ch] to s2ram-x86.[ch]
28
void identify_machine(void);
316 by tdykstra
Make s2ram --test exit with 0 in case of 'know' and 1 for 'unknown' or 'unsure'
29
int machine_known(void);
89 by pavel
Create header file for s2ram.c, so it can be cleanly called from suspend.c
30
int s2ram_do(void);
305 by tdykstra
This should have gone in the last commit 'split of x86 s2ram code'
31
int s2ram_generic_do(void);
89 by pavel
Create header file for s2ram.c, so it can be cleanly called from suspend.c
32
void s2ram_resume(void);
296 by tdykstra
Add s2ram-style options for the `video hacks' to s2both.
33
void s2ram_add_flag(int opt, const char *arg);
34