diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ecc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h new file mode 100644 index 00000000..f04ff56c --- /dev/null +++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * GK20A ECC | ||
3 | * | ||
4 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
7 | * copy of this software and associated documentation files (the "Software"), | ||
8 | * to deal in the Software without restriction, including without limitation | ||
9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
10 | * and/or sell copies of the Software, and to permit persons to whom the | ||
11 | * Software is furnished to do so, subject to the following conditions: | ||
12 | * | ||
13 | * The above copyright notice and this permission notice shall be included in | ||
14 | * all copies or substantial portions of the Software. | ||
15 | * | ||
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
22 | * DEALINGS IN THE SOFTWARE. | ||
23 | */ | ||
24 | #ifndef ECC_GK20A_H | ||
25 | #define ECC_GK20A_H | ||
26 | |||
27 | struct gk20a_ecc_stat { | ||
28 | char **names; | ||
29 | u32 *counters; | ||
30 | #ifdef CONFIG_SYSFS | ||
31 | struct hlist_node hash_node; | ||
32 | #endif | ||
33 | }; | ||
34 | |||
35 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | ||
36 | #include "ecc_t18x.h" | ||
37 | #endif | ||
38 | #ifdef CONFIG_TEGRA_19x_GPU | ||
39 | #include "ecc_t19x.h" | ||
40 | #endif | ||
41 | |||
42 | struct ecc_gk20a { | ||
43 | /* Stats per engine */ | ||
44 | struct { | ||
45 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | ||
46 | struct ecc_gr_t18x t18x; | ||
47 | #endif | ||
48 | #ifdef CONFIG_TEGRA_19x_GPU | ||
49 | struct ecc_gr_t19x t19x; | ||
50 | #endif | ||
51 | } gr; | ||
52 | |||
53 | struct { | ||
54 | #ifdef CONFIG_TEGRA_19x_GPU | ||
55 | struct ecc_ltc_t19x t19x; | ||
56 | #endif | ||
57 | } ltc; | ||
58 | |||
59 | struct { | ||
60 | #ifdef CONFIG_TEGRA_19x_GPU | ||
61 | struct ecc_eng_t19x t19x; | ||
62 | #endif | ||
63 | } eng; | ||
64 | |||
65 | }; | ||
66 | |||
67 | #endif /*__ECC_GK20A_H__*/ | ||