aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/sbi_tlb.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-01-15 11:42:51 +0530
committerAnup Patel <anup@brainfault.org>2020-01-22 12:10:40 +0530
commita8b4b83b7fef84b0491f5a897651a30f98d75a9a (patch)
tree66ce28ccd2f74daeb90e5fb9f3c8396e3be913b7 /include/sbi/sbi_tlb.h
parentda9b76b957dae1cf59272cc0f351ae425351c3c8 (diff)
lib: Introduce sbi_tlb_fifo_request() API
Instead of directly calling sbi_ipi_send_many(), we introduce sbi_tlb_fifo_request() for halting a set of HARTs. This way in future we can assign any IPI event number for remote FENCE within sbi_tlb.c only. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_tlb.h')
-rw-r--r--include/sbi/sbi_tlb.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sbi/sbi_tlb.h b/include/sbi/sbi_tlb.h
index 83f9458..38a9418 100644
--- a/include/sbi/sbi_tlb.h
+++ b/include/sbi/sbi_tlb.h
@@ -47,8 +47,11 @@ int sbi_tlb_fifo_update(struct sbi_scratch *scratch, u32 hartid, void *data);
void sbi_tlb_fifo_process(struct sbi_scratch *scratch);
-int sbi_tlb_fifo_init(struct sbi_scratch *scratch, bool cold_boot);
-
void sbi_tlb_fifo_sync(struct sbi_scratch *scratch);
+int sbi_tlb_fifo_request(struct sbi_scratch *scratch, ulong hmask,
+ ulong hbase, struct sbi_tlb_info *tinfo);
+
+int sbi_tlb_fifo_init(struct sbi_scratch *scratch, bool cold_boot);
+
#endif