Loading...
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 */
11struct 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
22struct v3d_perfmon_info {
23 /*
24 * Different revisions of V3D have different total number of
25 * performance counters.
26 */
27 unsigned int max_counters;
28
29 /*
30 * Array of counters valid for the platform.
31 */
32 const struct v3d_perf_counter_desc *counters;
33};
34
35#endif