xref: /openbmc/linux/drivers/gpu/drm/msm/adreno/a3xx_gpu.h (revision 8795a739)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2013 Red Hat
4  * Author: Rob Clark <robdclark@gmail.com>
5  */
6 
7 #ifndef __A3XX_GPU_H__
8 #define __A3XX_GPU_H__
9 
10 #include "adreno_gpu.h"
11 
12 /* arrg, somehow fb.h is getting pulled in: */
13 #undef ROP_COPY
14 #undef ROP_XOR
15 
16 #include "a3xx.xml.h"
17 
18 struct a3xx_gpu {
19 	struct adreno_gpu base;
20 
21 	/* if OCMEM is used for GMEM: */
22 	uint32_t ocmem_base;
23 	void *ocmem_hdl;
24 };
25 #define to_a3xx_gpu(x) container_of(x, struct a3xx_gpu, base)
26 
27 #endif /* __A3XX_GPU_H__ */
28