123bd62fdSAravind Ganesan /* Copyright (c) 2014 The Linux Foundation. All rights reserved. 223bd62fdSAravind Ganesan * 323bd62fdSAravind Ganesan * This program is free software; you can redistribute it and/or modify 423bd62fdSAravind Ganesan * it under the terms of the GNU General Public License version 2 and 523bd62fdSAravind Ganesan * only version 2 as published by the Free Software Foundation. 623bd62fdSAravind Ganesan * 723bd62fdSAravind Ganesan * This program is distributed in the hope that it will be useful, 823bd62fdSAravind Ganesan * but WITHOUT ANY WARRANTY; without even the implied warranty of 923bd62fdSAravind Ganesan * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1023bd62fdSAravind Ganesan * GNU General Public License for more details. 1123bd62fdSAravind Ganesan * 1223bd62fdSAravind Ganesan */ 1323bd62fdSAravind Ganesan #ifndef __A4XX_GPU_H__ 1423bd62fdSAravind Ganesan #define __A4XX_GPU_H__ 1523bd62fdSAravind Ganesan 1623bd62fdSAravind Ganesan #include "adreno_gpu.h" 1723bd62fdSAravind Ganesan 1823bd62fdSAravind Ganesan /* arrg, somehow fb.h is getting pulled in: */ 1923bd62fdSAravind Ganesan #undef ROP_COPY 2023bd62fdSAravind Ganesan #undef ROP_XOR 2123bd62fdSAravind Ganesan 2223bd62fdSAravind Ganesan #include "a4xx.xml.h" 2323bd62fdSAravind Ganesan 2423bd62fdSAravind Ganesan struct a4xx_gpu { 2523bd62fdSAravind Ganesan struct adreno_gpu base; 2623bd62fdSAravind Ganesan struct platform_device *pdev; 2723bd62fdSAravind Ganesan 2823bd62fdSAravind Ganesan /* if OCMEM is used for GMEM: */ 2923bd62fdSAravind Ganesan uint32_t ocmem_base; 3023bd62fdSAravind Ganesan void *ocmem_hdl; 3123bd62fdSAravind Ganesan }; 3223bd62fdSAravind Ganesan #define to_a4xx_gpu(x) container_of(x, struct a4xx_gpu, base) 3323bd62fdSAravind Ganesan 3423bd62fdSAravind Ganesan #endif /* __A4XX_GPU_H__ */ 35