aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/exynos_mem.h
blob: 3ed0bd67b77f4103ee46062b53a372637d399b51 (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
/* linux/include/linux/exynos_mem.h
 *
 * Copyright (c) 2011 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 version 2 as
 * published by the Free Software Foundation.
*/

#ifndef __INCLUDE_EXYNOS_MEM_H
#define __INCLUDE_EXYNOS_MEM_H __FILE__

/* IOCTL commands */
#define EXYNOS_MEM_SET_CACHEABLE	_IOW('M', 200, bool)
#define EXYNOS_MEM_PADDR_CACHE_FLUSH	_IOW('M', 201, struct exynos_mem_flush_range)
#define EXYNOS_MEM_SET_PHYADDR		_IOW('M', 202, unsigned int)
#define EXYNOS_MEM_PADDR_CACHE_CLEAN	_IOW('M', 203, struct exynos_mem_flush_range)

struct exynos_mem_flush_range {
	phys_addr_t	start;
	size_t		length;
};

#define CMA_REGION_COUNT (12)
struct simple_cma_descriptor {
	const char 	*name;
	int		start;
	int		size;
};

extern void cma_region_descriptor_add(const char *name, int start, int size);

#endif /* __INCLUDE_EXYNOS_MEM_H */