job.h 602 B

12345678910111213141516171819202122232425262728293031323334
  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_unpin_data {
  18. struct host1x_bo *bo;
  19. struct sg_table *sgt;
  20. struct device *dev;
  21. size_t size;
  22. enum dma_data_direction dir;
  23. };
  24. /*
  25. * Dump contents of job to debug output.
  26. */
  27. void host1x_job_dump(struct device *dev, struct host1x_job *job);
  28. #endif