job.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Tegra host1x Job
  3. *
  4. * Copyright (c) 2011-2013, NVIDIA Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __HOST1X_JOB_H
  19. #define __HOST1X_JOB_H
  20. struct host1x_job_gather {
  21. u32 words;
  22. dma_addr_t base;
  23. struct host1x_bo *bo;
  24. u32 offset;
  25. bool handled;
  26. };
  27. struct host1x_cmdbuf {
  28. u32 handle;
  29. u32 offset;
  30. u32 words;
  31. u32 pad;
  32. };
  33. struct host1x_waitchk {
  34. struct host1x_bo *bo;
  35. u32 offset;
  36. u32 syncpt_id;
  37. u32 thresh;
  38. };
  39. struct host1x_job_unpin_data {
  40. struct host1x_bo *bo;
  41. struct sg_table *sgt;
  42. };
  43. /*
  44. * Dump contents of job to debug output.
  45. */
  46. void host1x_job_dump(struct device *dev, struct host1x_job *job);
  47. #endif