blob: fb492f7202cf53c835aeec36d77d3fa6bcc69099 (
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
42
43
44
45
46
47
48
|
/*
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef __EXYNOS_MEMOMY_COMPRESSOR_H
#define __EXYNOS_MEMOMY_COMPRESSOR_H
int memory_comp_start_compress(u32 disk_num, u32 nr_pages);
void memory_comp_init(u32 nr_disk, u32 **sswap_disk, u32 **comp_buf,
u32 **comp_info, struct tasklet_struct *tasklet);
#endif
/* regs */
#ifndef __EXYNOS__REGS_MEMORY_COMPRESSOR_H
#define __EXYNOS__REGS_MEMORY_COMPRESSOR_H
#define CMD 0x0000
#define CMD_START 0x1
#define CMD_PAGES 16
#define IER 0x0004
#define IER_ENABLE 0x1
#define ISR 0x0008
#define ISR_CLEAR 1
#define DISK_ADDR 0x000C
#define COMPBUF_ADDR 0x0010
#define COMPINFO_ADDR 0x0014
#define CONTROL 0x0018
#define CONTROL_DRCG_DISABLE 8
#define CONTROL_ARCACHE 12
#define CONTROL_AWCACHE 16
#define CONTROL_THRESHOLD 20
#define CONTROL_AWUSER 28
#define CONTROL_ARUSER 29
#define BUS_CONFIG 0x0010C
#define VERSION 0x0F00
#endif
|