job.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. unsigned int words;
  22. dma_addr_t base;
  23. struct host1x_bo *bo;
  24. unsigned int offset;
  25. bool handled;
  26. };
  27. struct host1x_job_unpin_data {
  28. struct host1x_bo *bo;
  29. struct sg_table *sgt;
  30. size_t size;
  31. };
  32. /*
  33. * Dump contents of job to debug output.
  34. */
  35. void host1x_job_dump(struct device *dev, struct host1x_job *job);
  36. #endif