2019-05-28 17:10:04 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2013-03-22 14:34:03 +00:00
|
|
|
/*
|
|
|
|
* Tegra host1x Job
|
|
|
|
*
|
|
|
|
* Copyright (c) 2011-2013, NVIDIA Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HOST1X_JOB_H
|
|
|
|
#define __HOST1X_JOB_H
|
|
|
|
|
2019-10-28 12:37:13 +00:00
|
|
|
#include <linux/dma-direction.h>
|
|
|
|
|
2013-03-22 14:34:03 +00:00
|
|
|
struct host1x_job_gather {
|
2018-05-16 15:01:43 +00:00
|
|
|
unsigned int words;
|
2013-03-22 14:34:03 +00:00
|
|
|
dma_addr_t base;
|
|
|
|
struct host1x_bo *bo;
|
2018-05-16 15:01:43 +00:00
|
|
|
unsigned int offset;
|
2013-03-22 14:34:03 +00:00
|
|
|
bool handled;
|
|
|
|
};
|
|
|
|
|
2021-06-10 11:04:45 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-03-22 14:34:03 +00:00
|
|
|
struct host1x_job_unpin_data {
|
2021-09-09 13:51:24 +00:00
|
|
|
struct host1x_bo_mapping *map;
|
2013-03-22 14:34:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Dump contents of job to debug output.
|
|
|
|
*/
|
|
|
|
void host1x_job_dump(struct device *dev, struct host1x_job *job);
|
|
|
|
|
|
|
|
#endif
|