mali_kbase_hwaccess_backend.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. *
  3. * (C) COPYRIGHT 2014-2015 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. * HW access backend common APIs
  17. */
  18. #ifndef _KBASE_HWACCESS_BACKEND_H_
  19. #define _KBASE_HWACCESS_BACKEND_H_
  20. /**
  21. * kbase_backend_early_init - Perform any backend-specific initialization.
  22. * @kbdev: Device pointer
  23. *
  24. * Return: 0 on success, or an error code on failure.
  25. */
  26. int kbase_backend_early_init(struct kbase_device *kbdev);
  27. /**
  28. * kbase_backend_late_init - Perform any backend-specific initialization.
  29. * @kbdev: Device pointer
  30. *
  31. * Return: 0 on success, or an error code on failure.
  32. */
  33. int kbase_backend_late_init(struct kbase_device *kbdev);
  34. /**
  35. * kbase_backend_early_term - Perform any backend-specific termination.
  36. * @kbdev: Device pointer
  37. */
  38. void kbase_backend_early_term(struct kbase_device *kbdev);
  39. /**
  40. * kbase_backend_late_term - Perform any backend-specific termination.
  41. * @kbdev: Device pointer
  42. */
  43. void kbase_backend_late_term(struct kbase_device *kbdev);
  44. #endif /* _KBASE_HWACCESS_BACKEND_H_ */