1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _LINUX_OMAP_ION_H
20 #define _LINUX_OMAP_ION_H
21 #include <linux/types.h>
22 struct omap_ion_tiler_alloc_data {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  size_t w;
25  size_t h;
26  int fmt;
27  unsigned int flags;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  struct ion_handle *handle;
30  size_t stride;
31  size_t offset;
32  unsigned int out_align;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  unsigned int token;
35 };
36 enum {
37  OMAP_ION_HEAP_TYPE_TILER = ION_HEAP_TYPE_CUSTOM + 1,
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 #define OMAP_ION_HEAP_TILER_MASK (1 << OMAP_ION_HEAP_TYPE_TILER)
41 enum {
42  OMAP_ION_TILER_ALLOC,
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 };
45 enum {
46  TILER_PIXEL_FMT_MIN = 0,
47  TILER_PIXEL_FMT_8BIT = 0,
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  TILER_PIXEL_FMT_16BIT = 1,
50  TILER_PIXEL_FMT_32BIT = 2,
51  TILER_PIXEL_FMT_PAGE = 3,
52  TILER_PIXEL_FMT_MAX = 3
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 };
55 enum {
56  OMAP_ION_HEAP_LARGE_SURFACES,
57  OMAP_ION_HEAP_TILER,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  OMAP_ION_HEAP_SECURE_INPUT,
60 };
61 #endif
62