tee_private.h 740 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2015-2016, Linaro Limited
  4. */
  5. #ifndef TEE_PRIVATE_H
  6. #define TEE_PRIVATE_H
  7. #include <linux/cdev.h>
  8. #include <linux/completion.h>
  9. #include <linux/device.h>
  10. #include <linux/kref.h>
  11. #include <linux/mutex.h>
  12. #include <linux/types.h>
  13. int tee_shm_get_fd(struct tee_shm *shm);
  14. bool tee_device_get(struct tee_device *teedev);
  15. void tee_device_put(struct tee_device *teedev);
  16. void teedev_ctx_get(struct tee_context *ctx);
  17. void teedev_ctx_put(struct tee_context *ctx);
  18. struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size);
  19. struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
  20. unsigned long addr, size_t length);
  21. #endif /*TEE_PRIVATE_H*/