1d38ceaf9SAlex Deucher /*
2d38ceaf9SAlex Deucher  * Copyright 2014 Advanced Micro Devices, Inc.
3d38ceaf9SAlex Deucher  *
4d38ceaf9SAlex Deucher  * Permission is hereby granted, free of charge, to any person obtaining a
5d38ceaf9SAlex Deucher  * copy of this software and associated documentation files (the "Software"),
6d38ceaf9SAlex Deucher  * to deal in the Software without restriction, including without limitation
7d38ceaf9SAlex Deucher  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8d38ceaf9SAlex Deucher  * and/or sell copies of the Software, and to permit persons to whom the
9d38ceaf9SAlex Deucher  * Software is furnished to do so, subject to the following conditions:
10d38ceaf9SAlex Deucher  *
11d38ceaf9SAlex Deucher  * The above copyright notice and this permission notice shall be included in
12d38ceaf9SAlex Deucher  * all copies or substantial portions of the Software.
13d38ceaf9SAlex Deucher  *
14d38ceaf9SAlex Deucher  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15d38ceaf9SAlex Deucher  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16d38ceaf9SAlex Deucher  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17d38ceaf9SAlex Deucher  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18d38ceaf9SAlex Deucher  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19d38ceaf9SAlex Deucher  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20d38ceaf9SAlex Deucher  * OTHER DEALINGS IN THE SOFTWARE.
21d38ceaf9SAlex Deucher  *
22d38ceaf9SAlex Deucher  */
23d38ceaf9SAlex Deucher 
24d38ceaf9SAlex Deucher #ifndef __AMDGPU_GDS_H__
25d38ceaf9SAlex Deucher #define __AMDGPU_GDS_H__
26d38ceaf9SAlex Deucher 
27d38ceaf9SAlex Deucher struct amdgpu_ring;
28d38ceaf9SAlex Deucher struct amdgpu_bo;
29d38ceaf9SAlex Deucher 
30d38ceaf9SAlex Deucher struct amdgpu_gds {
31dca29491SChristian König 	uint32_t gds_size;
32dca29491SChristian König 	uint32_t gws_size;
33dca29491SChristian König 	uint32_t oa_size;
3441cca166SMarek Olšák 	uint32_t gds_compute_max_wave_id;
35d38ceaf9SAlex Deucher };
36d38ceaf9SAlex Deucher 
37d38ceaf9SAlex Deucher struct amdgpu_gds_reg_offset {
38d38ceaf9SAlex Deucher 	uint32_t	mem_base;
39d38ceaf9SAlex Deucher 	uint32_t	mem_size;
40d38ceaf9SAlex Deucher 	uint32_t	gws;
41d38ceaf9SAlex Deucher 	uint32_t	oa;
42d38ceaf9SAlex Deucher };
43d38ceaf9SAlex Deucher 
44d38ceaf9SAlex Deucher #endif /* __AMDGPU_GDS_H__ */
45