ump_ukk_wrappers.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2010, 2012 ARM Limited. All rights reserved.
  3. *
  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.
  6. *
  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.
  9. */
  10. /**
  11. * @file ump_ukk_wrappers.h
  12. * Defines the wrapper functions which turn Linux IOCTL calls into _ukk_ calls
  13. */
  14. #ifndef __UMP_UKK_WRAPPERS_H__
  15. #define __UMP_UKK_WRAPPERS_H__
  16. #include <linux/kernel.h>
  17. #include "ump_kernel_common.h"
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif
  22. int ump_get_api_version_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  23. int ump_release_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  24. int ump_size_get_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  25. int ump_msync_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  26. int ump_cache_operations_control_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  27. int ump_switch_hw_usage_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  28. int ump_lock_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  29. int ump_unlock_wrapper(u32 __user * argument, struct ump_session_data * session_data);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif /* __UMP_UKK_WRAPPERS_H__ */