Laura Abbott | 1343947 | 2016-08-30 17:04:28 -0700 | [diff] [blame] | 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 | |
| 15 | struct 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 | |
| 32 | struct ion_platform_data *ion_parse_dt(struct platform_device *pdev, |
| 33 | struct ion_of_heap *compatible); |
| 34 | |
| 35 | void ion_destroy_platform_data(struct ion_platform_data *data); |
| 36 | |
| 37 | #endif |