3 * (C) COPYRIGHT ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
22 * Base cross-proccess sync API.
25 #ifndef _BASE_KERNEL_SYNC_H_
26 #define _BASE_KERNEL_SYNC_H_
28 #include <linux/ioctl.h>
30 #define STREAM_IOC_MAGIC '~'
34 * Inserts a fence on the stream operated on.
35 * Fence can be waited via a base fence wait soft-job
36 * or triggered via a base fence trigger soft-job.
38 * Fences must be cleaned up with close when no longer needed.
40 * No input/output arguments.
45 #define STREAM_IOC_FENCE_INSERT _IO(STREAM_IOC_MAGIC, 0)
47 #endif /* _BASE_KERNEL_SYNC_H_ */