Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 lines
683 B
C
29 lines
683 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (c) 2018 The Linux Foundation. All rights reserved. */
|
|
|
|
#ifndef __A2XX_GPU_H__
|
|
#define __A2XX_GPU_H__
|
|
|
|
#include "adreno_gpu.h"
|
|
|
|
/* arrg, somehow fb.h is getting pulled in: */
|
|
#undef ROP_COPY
|
|
#undef ROP_XOR
|
|
|
|
#include "a2xx.xml.h"
|
|
|
|
struct a2xx_gpu {
|
|
struct adreno_gpu base;
|
|
bool pm_enabled;
|
|
bool protection_disabled;
|
|
};
|
|
#define to_a2xx_gpu(x) container_of(x, struct a2xx_gpu, base)
|
|
|
|
extern const struct adreno_gpu_funcs a2xx_gpu_funcs;
|
|
|
|
struct msm_mmu *a2xx_gpummu_new(struct device *dev, struct msm_gpu *gpu);
|
|
void a2xx_gpummu_params(struct msm_mmu *mmu, dma_addr_t *pt_base,
|
|
dma_addr_t *tran_error);
|
|
|
|
#endif /* __A2XX_GPU_H__ */
|