summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_ipi.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-01-15 08:46:54 +0300
committerAnup Patel <anup@brainfault.org>2020-01-22 09:40:37 +0300
commitda9b76b957dae1cf59272cc0f351ae425351c3c8 (patch)
tree69d0eb671608a15a3d5a8960ff25b868053844ae /include/sbi/sbi_ipi.h
parent3d2aaac69a967ff1986f57862c4048d42acfe1ec (diff)
downloadopensbi-da9b76b957dae1cf59272cc0f351ae425351c3c8.tar.xz
lib: Introduce sbi_ipi_send_halt() API
Instead of directly calling sbi_ipi_send_many(), we introduce sbi_ipi_send_halt() for halting a set of HARTs. This way in future we can assign any IPI event number for HART halting within sbi_ipi.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_ipi.h')
-rw-r--r--include/sbi/sbi_ipi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_ipi.h b/include/sbi/sbi_ipi.h
index 45f655c..4a1bed0 100644
--- a/include/sbi/sbi_ipi.h
+++ b/include/sbi/sbi_ipi.h
@@ -29,6 +29,8 @@ int sbi_ipi_send_smode(struct sbi_scratch *scratch, ulong hmask, ulong hbase);
void sbi_ipi_clear_smode(struct sbi_scratch *scratch);
+int sbi_ipi_send_halt(struct sbi_scratch *scratch, ulong hmask, ulong hbase);
+
void sbi_ipi_process(struct sbi_scratch *scratch);
int sbi_ipi_init(struct sbi_scratch *scratch, bool cold_boot);