blob: ec8ee19b0283fced42636fe0689287bc83f807f1 (
plain) (
blame)
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
|
/*
* GK20A ECC
*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ECC_GK20A_H
#define ECC_GK20A_H
#include <uapi/linux/nvgpu.h>
struct gk20a_ecc_stat {
char **names;
u32 *counters;
struct hlist_node hash_node;
};
#ifdef CONFIG_ARCH_TEGRA_18x_SOC
#include "ecc_t18x.h"
#endif
#ifdef CONFIG_TEGRA_19x_GPU
#include "ecc_t19x.h"
#endif
struct ecc_gk20a {
/* Stats per engine */
struct {
#ifdef CONFIG_ARCH_TEGRA_18x_SOC
struct ecc_gr_t18x t18x;
#endif
#ifdef CONFIG_TEGRA_19x_GPU
struct ecc_gr_t19x t19x;
#endif
} gr;
struct {
#ifdef CONFIG_TEGRA_19x_GPU
struct ecc_ltc_t19x t19x;
#endif
} ltc;
struct {
#ifdef CONFIG_TEGRA_19x_GPU
struct ecc_eng_t19x t19x;
#endif
} eng;
};
#endif /*__ECC_GK20A_H__*/
|