xref: /openbmc/linux/drivers/gpu/drm/amd/amdkfd/cik_int.h (revision e7016d8e)
1f3a39818SAndrew Lewycky /*
2f3a39818SAndrew Lewycky  * Copyright 2014 Advanced Micro Devices, Inc.
3f3a39818SAndrew Lewycky  *
4f3a39818SAndrew Lewycky  * Permission is hereby granted, free of charge, to any person obtaining a
5f3a39818SAndrew Lewycky  * copy of this software and associated documentation files (the "Software"),
6f3a39818SAndrew Lewycky  * to deal in the Software without restriction, including without limitation
7f3a39818SAndrew Lewycky  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8f3a39818SAndrew Lewycky  * and/or sell copies of the Software, and to permit persons to whom the
9f3a39818SAndrew Lewycky  * Software is furnished to do so, subject to the following conditions:
10f3a39818SAndrew Lewycky  *
11f3a39818SAndrew Lewycky  * The above copyright notice and this permission notice shall be included in
12f3a39818SAndrew Lewycky  * all copies or substantial portions of the Software.
13f3a39818SAndrew Lewycky  *
14f3a39818SAndrew Lewycky  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15f3a39818SAndrew Lewycky  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16f3a39818SAndrew Lewycky  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17f3a39818SAndrew Lewycky  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18f3a39818SAndrew Lewycky  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19f3a39818SAndrew Lewycky  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20f3a39818SAndrew Lewycky  * OTHER DEALINGS IN THE SOFTWARE.
21f3a39818SAndrew Lewycky  */
22f3a39818SAndrew Lewycky 
23e7016d8eSYong Zhao #ifndef CIK_INT_H_INCLUDED
24e7016d8eSYong Zhao #define CIK_INT_H_INCLUDED
25f3a39818SAndrew Lewycky 
26f3a39818SAndrew Lewycky #include <linux/types.h>
27f3a39818SAndrew Lewycky 
28f3a39818SAndrew Lewycky struct cik_ih_ring_entry {
29f3a39818SAndrew Lewycky 	uint32_t source_id;
30f3a39818SAndrew Lewycky 	uint32_t data;
31f3a39818SAndrew Lewycky 	uint32_t ring_id;
32f3a39818SAndrew Lewycky 	uint32_t reserved;
33f3a39818SAndrew Lewycky };
34f3a39818SAndrew Lewycky 
35f3a39818SAndrew Lewycky #define CIK_INTSRC_CP_END_OF_PIPE	0xB5
36930c5ff4SAlexey Skidanov #define CIK_INTSRC_CP_BAD_OPCODE	0xB7
3766b783b4SBesar Wicaksono #define CIK_INTSRC_SDMA_TRAP		0xE0
38f3a39818SAndrew Lewycky #define CIK_INTSRC_SQ_INTERRUPT_MSG	0xEF
392640c3faSshaoyunl #define CIK_INTSRC_GFX_PAGE_INV_FAULT	0x92
402640c3faSshaoyunl #define CIK_INTSRC_GFX_MEM_PROT_FAULT	0x93
41f3a39818SAndrew Lewycky 
42f3a39818SAndrew Lewycky #endif
43f3a39818SAndrew Lewycky 
44