xref: /openbmc/linux/drivers/gpu/drm/msm/adreno/a4xx_gpu.h (revision 97fb5e8d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2014 The Linux Foundation. All rights reserved.
3  */
4 #ifndef __A4XX_GPU_H__
5 #define __A4XX_GPU_H__
6 
7 #include "adreno_gpu.h"
8 
9 /* arrg, somehow fb.h is getting pulled in: */
10 #undef ROP_COPY
11 #undef ROP_XOR
12 
13 #include "a4xx.xml.h"
14 
15 struct a4xx_gpu {
16 	struct adreno_gpu base;
17 
18 	/* if OCMEM is used for GMEM: */
19 	uint32_t ocmem_base;
20 	void *ocmem_hdl;
21 };
22 #define to_a4xx_gpu(x) container_of(x, struct a4xx_gpu, base)
23 
24 #endif /* __A4XX_GPU_H__ */
25