a4xx_gpu.h 947 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Copyright (c) 2014 The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __A4XX_GPU_H__
  14. #define __A4XX_GPU_H__
  15. #include "adreno_gpu.h"
  16. /* arrg, somehow fb.h is getting pulled in: */
  17. #undef ROP_COPY
  18. #undef ROP_XOR
  19. #include "a4xx.xml.h"
  20. struct a4xx_gpu {
  21. struct adreno_gpu base;
  22. struct platform_device *pdev;
  23. /* if OCMEM is used for GMEM: */
  24. uint32_t ocmem_base;
  25. void *ocmem_hdl;
  26. };
  27. #define to_a4xx_gpu(x) container_of(x, struct a4xx_gpu, base)
  28. #endif /* __A4XX_GPU_H__ */