Merge remote-tracking branch 'staging/staging-next'
[deliverable/linux.git] / drivers / staging / android / ion / ion_of.h
CommitLineData
13439479
LA
1/*
2 * Based on work from:
3 * Andrew Andrianov <andrew@ncrmnt.org>
4 * Google
5 * The Linux Foundation
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12#ifndef _ION_OF_H
13#define _ION_OF_H
14
15struct ion_of_heap {
16 const char *compat;
17 int heap_id;
18 int type;
19 const char *name;
20 int align;
21};
22
23#define PLATFORM_HEAP(_compat, _id, _type, _name) \
24{ \
25 .compat = _compat, \
26 .heap_id = _id, \
27 .type = _type, \
28 .name = _name, \
29 .align = PAGE_SIZE, \
30}
31
32struct ion_platform_data *ion_parse_dt(struct platform_device *pdev,
33 struct ion_of_heap *compatible);
34
35void ion_destroy_platform_data(struct ion_platform_data *data);
36
37#endif
This page took 0.026323 seconds and 5 git commands to generate.