mali_base_kernel_sync.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. *
  3. * (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
  4. *
  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
  8. * of such GNU licence.
  9. *
  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.
  13. *
  14. */
  15. /**
  16. * @file
  17. * Base cross-proccess sync API.
  18. */
  19. #ifndef _BASE_KERNEL_SYNC_H_
  20. #define _BASE_KERNEL_SYNC_H_
  21. #include <linux/ioctl.h>
  22. #define STREAM_IOC_MAGIC '~'
  23. /* Fence insert.
  24. *
  25. * Inserts a fence on the stream operated on.
  26. * Fence can be waited via a base fence wait soft-job
  27. * or triggered via a base fence trigger soft-job.
  28. *
  29. * Fences must be cleaned up with close when no longer needed.
  30. *
  31. * No input/output arguments.
  32. * Returns
  33. * >=0 fd
  34. * <0 error code
  35. */
  36. #define STREAM_IOC_FENCE_INSERT _IO(STREAM_IOC_MAGIC, 0)
  37. #endif // ifndef _BASE_KERNEL_SYNC_H_