From 16df9ccdb2c47cdf56316f6da6b35917b0b64496 Mon Sep 17 00:00:00 2001 From: Show Liu Date: Wed, 25 Dec 2013 14:14:27 +0800 Subject: Added Mali T6xx GPU driver --- .../gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 drivers/gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h (limited to 'drivers/gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h') diff --git a/drivers/gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h b/drivers/gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h new file mode 100755 index 00000000000..fb137a03d36 --- /dev/null +++ b/drivers/gpu/arm/t6xx/kbase/src/mali_base_mem_priv.h @@ -0,0 +1,50 @@ +/* + * + * (C) COPYRIGHT 2010-2013 ARM Limited. All rights reserved. + * + * This program is free software and is provided to you under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation, and any use by you of this program is subject to the terms + * of such GNU licence. + * + * A copy of the licence is included with the program, and can also be obtained + * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + + + +#ifndef _BASE_MEM_PRIV_H_ +#define _BASE_MEM_PRIV_H_ + +#define BASE_SYNCSET_OP_MSYNC (1U << 0) +#define BASE_SYNCSET_OP_CSYNC (1U << 1) + +/* + * This structure describe a basic memory coherency operation. + * It can either be: + * @li a sync from CPU to Memory: + * - type = ::BASE_SYNCSET_OP_MSYNC + * - mem_handle = a handle to the memory object on which the operation + * is taking place + * - user_addr = the address of the range to be synced + * - size = the amount of data to be synced, in bytes + * - offset is ignored. + * @li a sync from Memory to CPU: + * - type = ::BASE_SYNCSET_OP_CSYNC + * - mem_handle = a handle to the memory object on which the operation + * is taking place + * - user_addr = the address of the range to be synced + * - size = the amount of data to be synced, in bytes. + * - offset is ignored. + */ +typedef struct basep_syncset { + base_mem_handle mem_handle; + u64 user_addr; + u64 size; + u8 type; + u8 padding[7]; +} basep_syncset; + +#endif -- cgit v1.2.3