summaryrefslogtreecommitdiff
path: root/kernel/power/tuxonice_builtin.h
blob: 9539818e06b9d8bf3ded470c5fe9c2f15e51ae72 (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
37
38
39
40
41
/*
 * Copyright (C) 2004-2015 Nigel Cunningham (nigel at nigelcunningham com au)
 *
 * This file is released under the GPLv2.
 */
#include <asm/setup.h>

extern struct toi_core_fns *toi_core_fns;
extern unsigned long toi_compress_bytes_in, toi_compress_bytes_out;
extern unsigned int nr_hibernates;
extern int toi_in_hibernate;

extern __nosavedata struct pbe *restore_highmem_pblist;

int toi_lowlevel_builtin(void);

#ifdef CONFIG_HIGHMEM
extern __nosavedata struct zone_data *toi_nosave_zone_list;
extern __nosavedata unsigned long toi_nosave_max_pfn;
#endif

extern unsigned long toi_get_nonconflicting_page(void);
extern int toi_post_context_save(void);

extern char toi_wait_for_keypress_dev_console(int timeout);
extern struct block_device *toi_open_by_devnum(dev_t dev);
extern void toi_close_bdev(struct block_device *bdev);
extern int toi_wait;
extern int toi_translate_err_default;
extern int toi_force_no_multithreaded;
extern void toi_read_lock_tasklist(void);
extern void toi_read_unlock_tasklist(void);
extern int toi_in_suspend(void);
extern void toi_generate_free_page_map(void);
extern int toi_size_of_free_region(struct zone *zone, unsigned long start_pfn);

#ifdef CONFIG_TOI_ZRAM_SUPPORT
extern int toi_do_flag_zram_disks(void);
#else
#define toi_do_flag_zram_disks() (0)
#endif