mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
This needs to be DMA-able data because it's eventually passed to the host1x CDMA. Bug 200768479 Signed-off-by: Thierry Reding <treding@nvidia.com> Change-Id: Ia209c9fac79e3edf3590288fc0739bc803609bc2 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2596396 (cherry picked from commit 4e064281d0bc8371e228b03386c128661a1a52a9) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2620150 Tested-by: Jonathan Hunter <jonathanh@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
25 lines
489 B
C
25 lines
489 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2020 NVIDIA Corporation */
|
|
|
|
#ifndef _TEGRA_DRM_SUBMIT_GATHER_BO_H
|
|
#define _TEGRA_DRM_SUBMIT_GATHER_BO_H
|
|
|
|
#include <linux/host1x-next.h>
|
|
#include <linux/kref.h>
|
|
|
|
struct gather_bo {
|
|
struct host1x_bo base;
|
|
|
|
struct kref ref;
|
|
|
|
struct device *dev;
|
|
u32 *gather_data;
|
|
dma_addr_t gather_data_dma;
|
|
size_t gather_data_words;
|
|
};
|
|
|
|
extern const struct host1x_bo_ops gather_bo_ops;
|
|
void gather_bo_put(struct host1x_bo *host_bo);
|
|
|
|
#endif
|