summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_pmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi/sbi_pmu.h')
-rw-r--r--include/sbi/sbi_pmu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/sbi_pmu.h b/include/sbi/sbi_pmu.h
index c365243..b3b75c1 100644
--- a/include/sbi/sbi_pmu.h
+++ b/include/sbi/sbi_pmu.h
@@ -42,6 +42,11 @@ struct sbi_pmu_device {
uint32_t event_idx_code);
/**
+ * Fetch the max width of this counter in number of bits.
+ */
+ int (*fw_counter_width)(void);
+
+ /**
* Read value of custom firmware counter
* Note: 0 <= counter_index < SBI_PMU_FW_CTR_MAX
*/