drivers/perf: hisi: Add support for HiSilicon H60PA and PAv3 PMU driver
[linux-2.6-microblaze.git] / drivers / perf / hisilicon / hisi_uncore_pmu.h
index 07890a8..772857b 100644 (file)
@@ -62,6 +62,13 @@ struct hisi_uncore_ops {
        void (*disable_filter)(struct perf_event *event);
 };
 
+/* Describes the HISI PMU chip features information */
+struct hisi_pmu_dev_info {
+       const char *name;
+       const struct attribute_group **attr_groups;
+       void *private;
+};
+
 struct hisi_pmu_hwevents {
        struct perf_event *hw_events[HISI_MAX_COUNTERS];
        DECLARE_BITMAP(used_mask, HISI_MAX_COUNTERS);
@@ -72,6 +79,7 @@ struct hisi_pmu_hwevents {
 struct hisi_pmu {
        struct pmu pmu;
        const struct hisi_uncore_ops *ops;
+       const struct hisi_pmu_dev_info *dev_info;
        struct hisi_pmu_hwevents pmu_events;
        /* associated_cpus: All CPUs associated with the PMU */
        cpumask_t associated_cpus;