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 16 #include "adreno_gpu.h" 17 18 /* arrg, somehow fb.h is getting pulled in: */ 19 #undef ROP_COPY 20 #undef ROP_XOR 21 22 #include "a4xx.xml.h" 23 24 struct a4xx_gpu { 25 struct adreno_gpu base; 26 struct platform_device *pdev; 27 28 /* if OCMEM is used for GMEM: */ 29 uint32_t ocmem_base; 30 void *ocmem_hdl; 31 }; 32 #define to_a4xx_gpu(x) container_of(x, struct a4xx_gpu, base) 33 34 #endif /* __A4XX_GPU_H__ */ 35