2 * Copyright (C) 2011-2012 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"
22 UMP_USED_BY_UNKNOWN_DEVICE= 100,
34 * This struct is what is "behind" a ump_dd_handle
36 typedef struct ump_dd_mem
38 ump_secure_id secure_id;
39 _mali_osk_atomic_t ref_count;
40 unsigned long size_bytes;
41 unsigned long nr_blocks;
42 ump_dd_physical_block * block_array;
43 void (*release_func)(void * ctx, struct ump_dd_mem * descriptor);
47 ump_hw_usage hw_device;
48 ump_lock_usage lock_usage;
50 #ifdef CONFIG_DMA_SHARED_BUFFER
51 struct dma_buf_attachment *import_attach;
58 #endif /* __UMP_KERNEL_TYPES_H__ */