xref: /linux/drivers/gpu/host1x/job.h (revision d2912cb15bdda8ba4a5dd73396ad62641af2f520)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Tegra host1x Job
4  *
5  * Copyright (c) 2011-2013, NVIDIA Corporation.
6  */
7 
8 #ifndef __HOST1X_JOB_H
9 #define __HOST1X_JOB_H
10 
11 struct host1x_job_gather {
12 	unsigned int words;
13 	dma_addr_t base;
14 	struct host1x_bo *bo;
15 	unsigned int offset;
16 	bool handled;
17 };
18 
19 struct host1x_job_unpin_data {
20 	struct host1x_bo *bo;
21 	struct sg_table *sgt;
22 	size_t size;
23 };
24 
25 /*
26  * Dump contents of job to debug output.
27  */
28 void host1x_job_dump(struct device *dev, struct host1x_job *job);
29 
30 #endif
31