2 * Copyright (C) 2010-2015 ARM Limited. All rights reserved.
4 * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
7 * A copy of the licence is included with the program, and can also be obtained from Free Software
8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11 #ifndef __UMP_KERNEL_TYPES_H__
12 #define __UMP_KERNEL_TYPES_H__
14 #include "ump_kernel_interface.h"
17 #include <linux/rbtree.h>
22 UMP_USED_BY_UNKNOWN_DEVICE = 100,
32 * This struct is what is "behind" a ump_dd_handle
34 typedef struct ump_dd_mem {
36 ump_secure_id secure_id;
37 _mali_osk_atomic_t ref_count;
38 unsigned long size_bytes;
39 unsigned long nr_blocks;
40 ump_dd_physical_block *block_array;
41 void (*release_func)(void *ctx, struct ump_dd_mem *descriptor);
45 ump_hw_usage hw_device;
46 ump_lock_usage lock_usage;
51 #endif /* __UMP_KERNEL_TYPES_H__ */