xref: /linux/drivers/gpu/drm/amd/amdgpu/cik.h (revision 8dd06ef34b6e2f41b29fbf5fc1663780f2524285)
1a2e73f56SAlex Deucher /*
2a2e73f56SAlex Deucher  * Copyright 2014 Advanced Micro Devices, Inc.
3a2e73f56SAlex Deucher  *
4a2e73f56SAlex Deucher  * Permission is hereby granted, free of charge, to any person obtaining a
5a2e73f56SAlex Deucher  * copy of this software and associated documentation files (the "Software"),
6a2e73f56SAlex Deucher  * to deal in the Software without restriction, including without limitation
7a2e73f56SAlex Deucher  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8a2e73f56SAlex Deucher  * and/or sell copies of the Software, and to permit persons to whom the
9a2e73f56SAlex Deucher  * Software is furnished to do so, subject to the following conditions:
10a2e73f56SAlex Deucher  *
11a2e73f56SAlex Deucher  * The above copyright notice and this permission notice shall be included in
12a2e73f56SAlex Deucher  * all copies or substantial portions of the Software.
13a2e73f56SAlex Deucher  *
14a2e73f56SAlex Deucher  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15a2e73f56SAlex Deucher  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16a2e73f56SAlex Deucher  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17a2e73f56SAlex Deucher  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18a2e73f56SAlex Deucher  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19a2e73f56SAlex Deucher  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20a2e73f56SAlex Deucher  * OTHER DEALINGS IN THE SOFTWARE.
21a2e73f56SAlex Deucher  *
22a2e73f56SAlex Deucher  */
23a2e73f56SAlex Deucher 
24a2e73f56SAlex Deucher #ifndef __CIK_H__
25a2e73f56SAlex Deucher #define __CIK_H__
26a2e73f56SAlex Deucher 
270da63bbbSChristian König #define CIK_FLUSH_GPU_TLB_NUM_WREG	3
28d9a701ccSChristian König 
29a2e73f56SAlex Deucher void cik_srbm_select(struct amdgpu_device *adev,
30a2e73f56SAlex Deucher 		     u32 me, u32 pipe, u32 queue, u32 vmid);
31a2e73f56SAlex Deucher int cik_set_ip_blocks(struct amdgpu_device *adev);
32a2e73f56SAlex Deucher 
334e2c1ac2SOak Zeng void legacy_doorbell_index_init(struct amdgpu_device *adev);
34*97c002beSAlex Deucher 
35a2e73f56SAlex Deucher #endif
36