| 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2024 Raspberry Pi |
| 4 | */ |
| 5 | |
| 6 | #ifndef V3D_PERFORMANCE_COUNTERS_H |
| 7 | #define V3D_PERFORMANCE_COUNTERS_H |
| 8 | |
| 9 | /* Holds a description of a given performance counter. The index of |
| 10 | * performance counter is given by the array on `v3d_performance_counter.c`. |
| 11 | */ |
| 12 | struct v3d_perf_counter_desc { |
| 13 | /* Category of the counter */ |
| 14 | char category[32]; |
| 15 | |
| 16 | /* Name of the counter */ |
| 17 | char name[64]; |
| 18 | |
| 19 | /* Description of the counter */ |
| 20 | char description[256]; |
| 21 | }; |
| 22 | |
| 23 | struct v3d_perfmon_info { |
| 24 | /* Different revisions of V3D have different total number of |
| 25 | * performance counters. |
| 26 | */ |
| 27 | unsigned int max_counters; |
| 28 | |
| 29 | /* Array of counters valid for the platform. */ |
| 30 | const struct v3d_perf_counter_desc *counters; |
| 31 | }; |
| 32 | |
| 33 | #endif |
| 34 | |