fence.h 483 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020, NVIDIA Corporation.
  4. */
  5. #ifndef HOST1X_FENCE_H
  6. #define HOST1X_FENCE_H
  7. struct host1x_syncpt_fence {
  8. struct dma_fence base;
  9. atomic_t signaling;
  10. struct host1x_syncpt *sp;
  11. u32 threshold;
  12. bool timeout;
  13. struct delayed_work timeout_work;
  14. struct list_head list;
  15. };
  16. struct host1x_fence_list {
  17. spinlock_t lock;
  18. struct list_head list;
  19. };
  20. void host1x_fence_signal(struct host1x_syncpt_fence *fence);
  21. #endif