diff options
Diffstat (limited to 'drivers/gpu/host1x/job.h')
-rw-r--r-- | drivers/gpu/host1x/job.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/drivers/gpu/host1x/job.h b/drivers/gpu/host1x/job.h index 62b8805e6b35..dad5a1946693 100644 --- a/drivers/gpu/host1x/job.h +++ b/drivers/gpu/host1x/job.h @@ -8,6 +8,8 @@ #ifndef __HOST1X_JOB_H #define __HOST1X_JOB_H +#include <linux/dma-direction.h> + struct host1x_job_gather { unsigned int words; dma_addr_t base; @@ -16,10 +18,24 @@ struct host1x_job_gather { bool handled; }; +struct host1x_job_wait { + u32 id; + u32 threshold; + u32 next_class; + bool relative; +}; + +struct host1x_job_cmd { + bool is_wait; + + union { + struct host1x_job_gather gather; + struct host1x_job_wait wait; + }; +}; + struct host1x_job_unpin_data { - struct host1x_bo *bo; - struct sg_table *sgt; - size_t size; + struct host1x_bo_mapping *map; }; /* |