xref: /linux/drivers/gpu/drm/v3d/v3d_performance_counters.h (revision 9c3951ec27b947ea419b48294ff7342fd15005dc)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2024 Raspberry Pi
4  */
5 #ifndef V3D_PERFORMANCE_COUNTERS_H
6 #define V3D_PERFORMANCE_COUNTERS_H
7 
8 /* Holds a description of a given performance counter. The index of performance
9  * counter is given by the array on v3d_performance_counter.h
10  */
11 struct v3d_perf_counter_desc {
12 	/* Category of the counter */
13 	char category[32];
14 
15 	/* Name of the counter */
16 	char name[64];
17 
18 	/* Description of the counter */
19 	char description[256];
20 };
21 
22 
23 #define V3D_V42_NUM_PERFCOUNTERS (87)
24 #define V3D_V71_NUM_PERFCOUNTERS (93)
25 
26 /* Maximum number of performance counters supported by any version of V3D */
27 #define V3D_MAX_COUNTERS (93)
28 
29 #endif
30