a2xx_gpu.h 683 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0
  2. /* Copyright (c) 2018 The Linux Foundation. All rights reserved. */
  3. #ifndef __A2XX_GPU_H__
  4. #define __A2XX_GPU_H__
  5. #include "adreno_gpu.h"
  6. /* arrg, somehow fb.h is getting pulled in: */
  7. #undef ROP_COPY
  8. #undef ROP_XOR
  9. #include "a2xx.xml.h"
  10. struct a2xx_gpu {
  11. struct adreno_gpu base;
  12. bool pm_enabled;
  13. bool protection_disabled;
  14. };
  15. #define to_a2xx_gpu(x) container_of(x, struct a2xx_gpu, base)
  16. extern const struct adreno_gpu_funcs a2xx_gpu_funcs;
  17. struct msm_mmu *a2xx_gpummu_new(struct device *dev, struct msm_gpu *gpu);
  18. void a2xx_gpummu_params(struct msm_mmu *mmu, dma_addr_t *pt_base,
  19. dma_addr_t *tran_error);
  20. #endif /* __A2XX_GPU_H__ */