| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Tegra host1x Job |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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 | 6 | */ |
|---|
| 18 | 7 | |
|---|
| 19 | 8 | #ifndef __HOST1X_JOB_H |
|---|
| 20 | 9 | #define __HOST1X_JOB_H |
|---|
| 10 | + |
|---|
| 11 | +#include <linux/dma-direction.h> |
|---|
| 21 | 12 | |
|---|
| 22 | 13 | struct host1x_job_gather { |
|---|
| 23 | 14 | unsigned int words; |
|---|
| .. | .. |
|---|
| 30 | 21 | struct host1x_job_unpin_data { |
|---|
| 31 | 22 | struct host1x_bo *bo; |
|---|
| 32 | 23 | struct sg_table *sgt; |
|---|
| 24 | + struct device *dev; |
|---|
| 33 | 25 | size_t size; |
|---|
| 26 | + enum dma_data_direction dir; |
|---|
| 34 | 27 | }; |
|---|
| 35 | 28 | |
|---|
| 36 | 29 | /* |
|---|