intr.h 920 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Tegra host1x Interrupt Management
  4. *
  5. * Copyright (c) 2010-2021, NVIDIA Corporation.
  6. */
  7. #ifndef __HOST1X_INTR_H
  8. #define __HOST1X_INTR_H
  9. struct host1x;
  10. struct host1x_syncpt_fence;
  11. struct host1x_intr_irq_data {
  12. struct host1x *host;
  13. u32 offset;
  14. };
  15. /* Initialize host1x sync point interrupt */
  16. int host1x_intr_init(struct host1x *host);
  17. /* Deinitialize host1x sync point interrupt */
  18. void host1x_intr_deinit(struct host1x *host);
  19. /* Enable host1x sync point interrupt */
  20. void host1x_intr_start(struct host1x *host);
  21. /* Disable host1x sync point interrupt */
  22. void host1x_intr_stop(struct host1x *host);
  23. void host1x_intr_handle_interrupt(struct host1x *host, unsigned int id);
  24. void host1x_intr_add_fence_locked(struct host1x *host, struct host1x_syncpt_fence *fence);
  25. bool host1x_intr_remove_fence(struct host1x *host, struct host1x_syncpt_fence *fence);
  26. #endif