[PATCH v3 08/12] lib: utils/ipi: Exposing the ACLINT IPI device
Nick Hu
nick.hu at sifive.com
Tue Jul 8 00:49:36 PDT 2025
Exposing the ACLINT IPI device so the other driver can send the CLINT
IPI on the platform with IMSIC.
Signed-off-by: Nick Hu <nick.hu at sifive.com>
Reviewed-by: Cyan Yang <cyan.yang at sifive.com>
---
include/sbi_utils/ipi/aclint_mswi.h | 1 +
lib/utils/ipi/aclint_mswi.c | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/include/sbi_utils/ipi/aclint_mswi.h b/include/sbi_utils/ipi/aclint_mswi.h
index 4b8249f2..311228eb 100644
--- a/include/sbi_utils/ipi/aclint_mswi.h
+++ b/include/sbi_utils/ipi/aclint_mswi.h
@@ -26,6 +26,7 @@ struct aclint_mswi_data {
u32 hart_count;
};
+struct sbi_ipi_device *aclint_mswi_get(void);
int aclint_mswi_cold_init(struct aclint_mswi_data *mswi);
#endif
diff --git a/lib/utils/ipi/aclint_mswi.c b/lib/utils/ipi/aclint_mswi.c
index 9e55078a..a4173b7c 100644
--- a/lib/utils/ipi/aclint_mswi.c
+++ b/lib/utils/ipi/aclint_mswi.c
@@ -66,6 +66,11 @@ static struct sbi_ipi_device aclint_mswi = {
.ipi_clear = mswi_ipi_clear
};
+struct sbi_ipi_device *aclint_mswi_get(void)
+{
+ return &aclint_mswi;
+}
+
int aclint_mswi_cold_init(struct aclint_mswi_data *mswi)
{
u32 i;
--
2.17.1
More information about the opensbi
mailing list