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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi_utils/irqchip/plic.h b/include/sbi_utils/irqchip/plic.h
index 21b2266..48c24f0 100644
--- a/include/sbi_utils/irqchip/plic.h
+++ b/include/sbi_utils/irqchip/plic.h
@@ -17,6 +17,11 @@ struct plic_data {
unsigned long num_src;
};
+/* So far, priorities on all consumers of these functions fit in 8 bits. */
+void plic_priority_save(const struct plic_data *plic, u8 *priority);
+
+void plic_priority_restore(const struct plic_data *plic, const u8 *priority);
+
void plic_context_save(const struct plic_data *plic, int context_id,
u32 *enable, u32 *threshold);