xref: /linux/drivers/gpu/drm/msm/adreno/a3xx_gpu.h (revision 3f1c07fc21c68bd3bd2df9d2c9441f6485e934d9)
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 	struct adreno_ocmem ocmem;
23 };
24 #define to_a3xx_gpu(x) container_of(x, struct a3xx_gpu, base)
25 
26 extern const struct adreno_gpu_funcs a3xx_gpu_funcs;
27 
28 #endif /* __A3XX_GPU_H__ */
29