diff options
author | Show Liu <show.liu@linaro.org> | 2013-12-25 14:14:27 +0800 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-04-28 11:37:14 +0800 |
commit | 2fdaee08fcbc16be5e6cd984017deffd10533b2f (patch) | |
tree | 373571b0de6134a89ab0924685e355fd1e91afcc /drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h | |
parent | 87b98c1fa196a2d41af2987165b53a921322f3d0 (diff) |
Added Mali T6xx GPU driver
Diffstat (limited to 'drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h')
-rwxr-xr-x | drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h b/drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h new file mode 100755 index 00000000000..879872a60af --- /dev/null +++ b/drivers/gpu/arm/t6xx/kbase/mali_base_kernel_sync.h @@ -0,0 +1,45 @@ +/* + * + * (C) COPYRIGHT 2012 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. + * + */ + + + +/** + * @file + * Base cross-proccess sync API. + */ + +#ifndef _BASE_KERNEL_SYNC_H_ +#define _BASE_KERNEL_SYNC_H_ + +#include <linux/ioctl.h> + +#define STREAM_IOC_MAGIC '~' + +/* Fence insert. + * + * Inserts a fence on the stream operated on. + * Fence can be waited via a base fence wait soft-job + * or triggered via a base fence trigger soft-job. + * + * Fences must be cleaned up with close when no longer needed. + * + * No input/output arguments. + * Returns + * >=0 fd + * <0 error code + */ +#define STREAM_IOC_FENCE_INSERT _IO(STREAM_IOC_MAGIC, 0) + +#endif /* _BASE_KERNEL_SYNC_H_ */ |