xref: /openbmc/linux/drivers/gpu/host1x/job.h (revision 326bbd79fd61716841585a52d5b68f48f4e6644e)
16579324aSTerje Bergstrom /*
26579324aSTerje Bergstrom  * Tegra host1x Job
36579324aSTerje Bergstrom  *
46579324aSTerje Bergstrom  * Copyright (c) 2011-2013, NVIDIA Corporation.
56579324aSTerje Bergstrom  *
66579324aSTerje Bergstrom  * This program is free software; you can redistribute it and/or modify it
76579324aSTerje Bergstrom  * under the terms and conditions of the GNU General Public License,
86579324aSTerje Bergstrom  * version 2, as published by the Free Software Foundation.
96579324aSTerje Bergstrom  *
106579324aSTerje Bergstrom  * This program is distributed in the hope it will be useful, but WITHOUT
116579324aSTerje Bergstrom  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
126579324aSTerje Bergstrom  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
136579324aSTerje Bergstrom  * more details.
146579324aSTerje Bergstrom  *
156579324aSTerje Bergstrom  * You should have received a copy of the GNU General Public License
166579324aSTerje Bergstrom  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
176579324aSTerje Bergstrom  */
186579324aSTerje Bergstrom 
196579324aSTerje Bergstrom #ifndef __HOST1X_JOB_H
206579324aSTerje Bergstrom #define __HOST1X_JOB_H
216579324aSTerje Bergstrom 
226579324aSTerje Bergstrom struct host1x_job_gather {
23*326bbd79SThierry Reding 	unsigned int words;
246579324aSTerje Bergstrom 	dma_addr_t base;
256579324aSTerje Bergstrom 	struct host1x_bo *bo;
26*326bbd79SThierry Reding 	unsigned int offset;
276579324aSTerje Bergstrom 	bool handled;
286579324aSTerje Bergstrom };
296579324aSTerje Bergstrom 
306579324aSTerje Bergstrom struct host1x_job_unpin_data {
316579324aSTerje Bergstrom 	struct host1x_bo *bo;
326579324aSTerje Bergstrom 	struct sg_table *sgt;
33404bfb78SMikko Perttunen 	size_t size;
346579324aSTerje Bergstrom };
356579324aSTerje Bergstrom 
366579324aSTerje Bergstrom /*
376579324aSTerje Bergstrom  * Dump contents of job to debug output.
386579324aSTerje Bergstrom  */
396579324aSTerje Bergstrom void host1x_job_dump(struct device *dev, struct host1x_job *job);
406579324aSTerje Bergstrom 
416579324aSTerje Bergstrom #endif
42