File: s2ram.h

package info (click to toggle)
uswsusp 1.0+20120915-6.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,572 kB
  • ctags: 1,440
  • sloc: ansic: 7,164; sh: 566; makefile: 223; perl: 65
file content (38 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (3)
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
37
38
/*
 * 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 no_kms_flag;

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);