job.h 733 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Tegra host1x Job
  4. *
  5. * Copyright (c) 2011-2013, NVIDIA Corporation.
  6. */
  7. #ifndef __HOST1X_JOB_H
  8. #define __HOST1X_JOB_H
  9. #include <linux/dma-direction.h>
  10. struct host1x_job_gather {
  11. unsigned int words;
  12. dma_addr_t base;
  13. struct host1x_bo *bo;
  14. unsigned int offset;
  15. bool handled;
  16. };
  17. struct host1x_job_wait {
  18. u32 id;
  19. u32 threshold;
  20. u32 next_class;
  21. bool relative;
  22. };
  23. struct host1x_job_cmd {
  24. bool is_wait;
  25. union {
  26. struct host1x_job_gather gather;
  27. struct host1x_job_wait wait;
  28. };
  29. };
  30. struct host1x_job_unpin_data {
  31. struct host1x_bo_mapping *map;
  32. };
  33. /*
  34. * Dump contents of job to debug output.
  35. */
  36. void host1x_job_dump(struct device *dev, struct host1x_job *job);
  37. #endif