summaryrefslogtreecommitdiff
path: root/include/sbi_utils/irqchip/plic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/irqchip/plic.h')
-rw-r--r--include/sbi_utils/irqchip/plic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sbi_utils/irqchip/plic.h b/include/sbi_utils/irqchip/plic.h
index 8f21af6..21b2266 100644
--- a/include/sbi_utils/irqchip/plic.h
+++ b/include/sbi_utils/irqchip/plic.h
@@ -17,6 +17,12 @@ struct plic_data {
unsigned long num_src;
};
+void plic_context_save(const struct plic_data *plic, int context_id,
+ u32 *enable, u32 *threshold);
+
+void plic_context_restore(const struct plic_data *plic, int context_id,
+ const u32 *enable, u32 threshold);
+
int plic_context_init(const struct plic_data *plic, int context_id,
bool enable, u32 threshold);