hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/amd/amdgpu/df_v3_6.h
....@@ -35,6 +35,16 @@
3535 DF_V3_6_MGCG_ENABLE_63_CYCLE_DELAY = 15
3636 };
3737
38
+/* Defined in global_features.h as FTI_PERFMON_VISIBLE */
39
+#define DF_V3_6_MAX_COUNTERS 4
40
+
41
+/* get flags from df perfmon config */
42
+#define DF_V3_6_GET_EVENT(x) (x & 0xFFUL)
43
+#define DF_V3_6_GET_INSTANCE(x) ((x >> 8) & 0xFFUL)
44
+#define DF_V3_6_GET_UNITMASK(x) ((x >> 16) & 0xFFUL)
45
+#define DF_V3_6_PERFMON_OVERFLOW 0xFFFFFFFFFFFFULL
46
+
47
+extern const struct attribute_group *df_v3_6_attr_groups[];
3848 extern const struct amdgpu_df_funcs df_v3_6_funcs;
3949
4050 #endif