aboutsummaryrefslogtreecommitdiffstats
path: root/s2ram.h
blob: 145b111a39a31e0c76d221e183c0935c9ddcff4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Suspend-to-RAM
 *
 * Copyright 2006 Pavel Machek <pavel@suse.cz>
 * Distribute under GPLv2.
 */

#ifdef CONFIG_ARCH_X86
#include "s2ram-x86.h"
#endif
#ifdef CONFIG_ARCH_PPC
#include "s2ram-ppc.h"
#endif

/* from radeontool.c */
void radeon_cmd_light(int);
void map_radeon_cntl_mem(void);

/* from s2ram.c */
/* return codes for s2ram_is_supported */
#define S2RAM_OK        0
#define S2RAM_FAIL      1
#define S2RAM_NOFB      126
#define S2RAM_UNKNOWN   127

int s2ram_hacks(void);
int s2ram_is_supported(void);
void identify_machine(void);
int machine_known(void);
int s2ram_do(void);
int s2ram_check_kms(void);
int s2ram_generic_do(void);
void s2ram_resume(void);
void s2ram_add_flag(int opt, const char *arg);
void s2ram_add_quirks(char*);
int get_s2ram_config(void);