summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/include/goya/goya_async_events.h
blob: 09081401cb1dd9542c0e2da5121e2165bef45119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/* SPDX-License-Identifier: GPL-2.0
 *
 * Copyright 2018 HabanaLabs, Ltd.
 * All Rights Reserved.
 *
 */

#ifndef __GOYA_ASYNC_EVENTS_H_
#define __GOYA_ASYNC_EVENTS_H_

enum goya_async_event_id {
	GOYA_ASYNC_EVENT_ID_PCIE_CORE = 32,
	GOYA_ASYNC_EVENT_ID_PCIE_IF = 33,
	GOYA_ASYNC_EVENT_ID_PCIE_PHY = 34,
	GOYA_ASYNC_EVENT_ID_TPC0_ECC = 36,
	GOYA_ASYNC_EVENT_ID_TPC1_ECC = 39,
	GOYA_ASYNC_EVENT_ID_TPC2_ECC = 42,
	GOYA_ASYNC_EVENT_ID_TPC3_ECC = 45,
	GOYA_ASYNC_EVENT_ID_TPC4_ECC = 48,
	GOYA_ASYNC_EVENT_ID_TPC5_ECC = 51,
	GOYA_ASYNC_EVENT_ID_TPC6_ECC = 54,
	GOYA_ASYNC_EVENT_ID_TPC7_ECC = 57,
	GOYA_ASYNC_EVENT_ID_MME_ECC = 60,
	GOYA_ASYNC_EVENT_ID_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= 104,
	GOYA_ASYNC_EVENT_ID_SRAM24 = 105,
	GOYA_ASYNC_EVENT_ID_SRAM25 = 106,
	GOYA_ASYNC_EVENT_ID_SRAM26 = 107,
	GOYA_ASYNC_EVENT_ID_SRAM27 = 108,
	GOYA_ASYNC_EVENT_ID_SRAM28 = 109,
	GOYA_ASYNC_EVENT_ID_SRAM29 = 110,
	GOYA_ASYNC_EVENT_ID_GIC500 = 112,
	GOYA_ASYNC_EVENT_ID_PCIE_DEC = 115,
	GOYA_ASYNC_EVENT_ID_TPC0_DEC = 117,
	GOYA_ASYNC_EVENT_ID_TPC1_DEC = 120,
	GOYA_ASYNC_EVENT_ID_TPC2_DEC = 123,
	GOYA_ASYNC_EVENT_ID_TPC3_DEC = 126,
	GOYA_ASYNC_EVENT_ID_TPC4_DEC = 129,
	GOYA_ASYNC_EVENT_ID_TPC5_DEC = 132,
	GOYA_ASYNC_EVENT_ID_TPC6_DEC = 135,
	GOYA_ASYNC_EVENT_ID_TPC7_DEC = 138,
	GOYA_ASYNC_EVENT_ID_AXI_ECC = 139,
	GOYA_ASYNC_EVENT_ID_L2_RAM_ECC = 140,
	GOYA_ASYNC_EVENT_ID_MME_WACS = 141,
	GOYA_ASYNC_EVENT_ID_MME_WACSD = 142,
	GOYA_ASYNC_EVENT_ID_PLL0 = 143,
	GOYA_ASYNC_EVENT_ID_PLL1 = 144,
	GOYA_ASYNC_EVENT_ID_PLL2 = 145,
	GOYA_ASYNC_EVENT_ID_PLL3 = 146,
	GOYA_ASYNC_EVENT_ID_PLL4 = 147,
	GOYA_ASYNC_EVENT_ID_PLL5 = 148,
	GOYA_ASYNC_EVENT_ID_PLL6 = 149,
	GOYA_ASYNC_EVENT_ID_CPU_AXI_SPLITTER = 155,
	GOYA_ASYNC_EVENT_ID_PSOC_AXI_DEC = 159,
	GOYA_ASYNC_EVENT_ID_PSOC = 160,
	GOYA_ASYNC_EVENT_ID_PCIE_FLR = 171,
	GOYA_ASYNC_EVENT_ID_PCIE_HOT_RESET = 172,
	GOYA_ASYNC_EVENT_ID_PCIE_PERST = 173,
	GOYA_ASYNC_EVENT_ID_PCIE_QID0_ENG0 = 174,
	GOYA_ASYNC_EVENT_ID_PCIE_QID0_ENG1 = 175,
	GOYA_ASYNC_EVENT_ID_PCIE_QID0_ENG2 = 176,
	GOYA_ASYNC_EVENT_ID_PCIE_QID0_ENG3 = 177,
	GOYA_ASYNC_EVENT_ID_PCIE_QID1_ENG0 = 178,
	GOYA_ASYNC_EVENT_ID_PCIE_QID1_ENG1 = 179,
	GOYA_ASYNC_EVENT_ID_PCIE_QID1_ENG2 = 180,
	GOYA_ASYNC_EVENT_ID_PCIE_QID1_ENG3 = 181,
	GOYA_ASYNC_EVENT_ID_PCIE_APB = 182,
	GOYA_ASYNC_EVENT_ID_PCIE_QDB = 183,
	GOYA_ASYNC_EVENT_ID_PCIE_BM_D_P_WR = 184,
	GOYA_ASYNC_EVENT_ID_PCIE_BM_D_RD = 185,
	GOYA_ASYNC_EVENT_ID_PCIE_BM_U_P_WR = 186,
	GOYA_ASYNC_EVENT_ID_PCIE_BM_U_RD = 187,
	GOYA_ASYNC_EVENT_ID_TPC0_BMON_SPMU = 190,
	GOYA_ASYNC_EVENT_ID_TPC0_KRN_ERR = 191,
	GOYA_ASYNC_EVENT_ID_TPC1_BMON_SPMU = 200,
	GOYA_ASYNC_EVENT_ID_TPC1_KRN_ERR = 201,
	GOYA_ASYNC_EVENT_ID_TPC2_BMON_SPMU = 210,
	GOYA_ASYNC_EVENT_ID_TPC2_KRN_ERR = 211,
	GOYA_ASYNC_EVENT_ID_TPC3_BMON_SPMU = 220,
	GOYA_ASYNC_EVENT_ID_TPC3_KRN_ERR = 221,
	GOYA_ASYNC_EVENT_ID_TPC4_BMON_SPMU = 230,
	GOYA_ASYNC_EVENT_ID_TPC4_KRN_ERR = 231,
	GOYA_ASYNC_EVENT_ID_TPC5_BMON_SPMU = 240,
	GOYA_ASYNC_EVENT_ID_TPC5_KRN_ERR = 241,
	GOYA_ASYNC_EVENT_ID_TPC6_BMON_SPMU = 250,
	GOYA_ASYNC_EVENT_ID_TPC6_KRN_ERR = 251,
	GOYA_ASYNC_EVENT_ID_TPC7_BMON_SPMU = 260,
	GOYA_ASYNC_EVENT_ID_TPC7_KRN_ERR = 261,
	GOYA_ASYNC_EVENT_ID_MMU_SBA_SPMU0 = 270,
	GOYA_ASYNC_EVENT_ID_MMU_SBA_SPMU1 = 271,
	GOYA_ASYNC_EVENT_ID_MME_WACS_UP = 272,
	GOYA_ASYNC_EVENT_ID_MME_WACS_DOWN = 273,
	GOYA_ASYNC_EVENT_ID_MMU_PAGE_FAULT = 280,
	GOYA_ASYNC_EVENT_ID_MMU_WR_PERM = 281,
	GOYA_ASYNC_EVENT_ID_MMU_DBG_BM = 282,
	GOYA_ASYNC_EVENT_ID_DMA_BM_CH0 = 290,
	GOYA_ASYNC_EVENT_ID_DMA_BM_CH1 = 291,
	GOYA_ASYNC_EVENT_ID_DMA_BM_CH2 = 292,
	GOYA_ASYNC_EVENT_ID_DMA_BM_CH3 = 293,
	GOYA_ASYNC_EVENT_ID_DMA_BM_CH4 = 294,
	GOYA_ASYNC_EVENT_ID_DDR0_PHY_DFI = 300,
	GOYA_ASYNC_EVENT_ID_DDR0_ECC_SCRUB = 301,
	GOYA_ASYNC_EVENT_ID_DDR0_DB_ECC = 302,
	GOYA_ASYNC_EVENT_ID_DDR0_SB_ECC = 303,
	GOYA_ASYNC_EVENT_ID_DDR0_SB_ECC_MC = 304,
	GOYA_ASYNC_EVENT_ID_DDR0_AXI_RD = 305,
	GOYA_ASYNC_EVENT_ID_DDR0_AXI_WR = 306,
	GOYA_ASYNC_EVENT_ID_DDR1_PHY_DFI = 310,
	GOYA_ASYNC_EVENT_ID_DDR1_ECC_SCRUB = 311,
	GOYA_ASYNC_EVENT_ID_DDR1_DB_ECC = 312,
	GOYA_ASYNC_EVENT_ID_DDR1_SB_ECC = 313,
	GOYA_ASYNC_EVENT_ID_DDR1_SB_ECC_MC = 314,
	GOYA_ASYNC_EVENT_ID_DDR1_AXI_RD = 315,
	GOYA_ASYNC_EVENT_ID_DDR1_AXI_WR = 316,
	GOYA_ASYNC_EVENT_ID_CPU_BMON = 320,
	GOYA_ASYNC_EVENT_ID_TS_EAST = 322,
	GOYA_ASYNC_EVENT_ID_TS_WEST = 323,
	GOYA_ASYNC_EVENT_ID_TS_NORTH = 324,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_U16_0 = 330,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_U16_1 = 331,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_U16_2 = 332,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_U16_3 = 333,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_U16_4 = 334,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_05_SW_RESET = 356,
	GOYA_ASYNC_EVENT_ID_PSOC_GPIO_10_VRHOT_ICRIT = 361,
	GOYA_ASYNC_EVENT_ID_FAN = 425,
	GOYA_ASYNC_EVENT_ID_TPC0_CMDQ = 430,
	GOYA_ASYNC_EVENT_ID_TPC1_CMDQ = 431,
	GOYA_ASYNC_EVENT_ID_TPC2_CMDQ = 432,
	GOYA_ASYNC_EVENT_ID_TPC3_CMDQ = 433,
	GOYA_ASYNC_EVENT_ID_TPC4_CMDQ = 434,
	GOYA_ASYNC_EVENT_ID_TPC5_CMDQ = 435,
	GOYA_ASYNC_EVENT_ID_TPC6_CMDQ = 436,
	GOYA_ASYNC_EVENT_ID_TPC7_CMDQ = 437,
	GOYA_ASYNC_EVENT_ID_TPC0_QM = 438,
	GOYA_ASYNC_EVENT_ID_TPC1_QM = 439,
	GOYA_ASYNC_EVENT_ID_TPC2_QM = 440,
	GOYA_ASYNC_EVENT_ID_TPC3_QM = 441,
	GOYA_ASYNC_EVENT_ID_TPC4_QM = 442,
	GOYA_ASYNC_EVENT_ID_TPC5_QM = 443,
	GOYA_ASYNC_EVENT_ID_TPC6_QM = 444,
	GOYA_ASYNC_EVENT_ID_TPC7_QM = 445,
	GOYA_ASYNC_EVENT_ID_MME_QM = 447,
	GOYA_ASYNC_EVENT_ID_MME_CMDQ = 448,
	GOYA_ASYNC_EVENT_ID_DMA0_QM = 449,
	GOYA_ASYNC_EVENT_ID_DMA1_QM = 450,
	GOYA_ASYNC_EVENT_ID_DMA2_QM = 451,
	GOYA_ASYNC_EVENT_ID_DMA3_QM = 452,
	GOYA_ASYNC_EVENT_ID_DMA4_QM = 453,
	GOYA_ASYNC_EVENT_ID_DMA_ON_HBW = 454,
	GOYA_ASYNC_EVENT_ID_DMA0_CH = 455,
	GOYA_ASYNC_EVENT_ID_DMA1_CH = 456,
	GOYA_ASYNC_EVENT_ID_DMA2_CH = 457,
	GOYA_ASYNC_EVENT_ID_DMA3_CH = 458,
	GOYA_ASYNC_EVENT_ID_DMA4_CH = 459,
	GOYA_ASYNC_EVENT_ID_PI_UPDATE = 484,
	GOYA_ASYNC_EVENT_ID_HALT_MACHINE = 485,
	GOYA_ASYNC_EVENT_ID_INTS_REGISTER = 486,
	GOYA_ASYNC_EVENT_ID_SOFT_RESET = 487,
	GOYA_ASYNC_EVENT_PKT_QUEUE_OUT_SYNC = 506,
	GOYA_ASYNC_EVENT_ID_FIX_POWER_ENV_S = 507,
	GOYA_ASYNC_EVENT_ID_FIX_POWER_ENV_E = 508,
	GOYA_ASYNC_EVENT_ID_FIX_THERMAL_ENV_S = 509,
	GOYA_ASYNC_EVENT_ID_FIX_THERMAL_ENV_E = 510,
	GOYA_ASYNC_EVENT_ID_LAST_VALID_ID = 1023,
	GOYA_ASYNC_EVENT_ID_SIZE
};

#endif /* __GOYA_ASYNC_EVENTS_H_ */