diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-04-22 10:27:15 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-04-28 17:03:31 +0530 |
commit | dc39c7b630a607b96c25f8ea50f0bb1af619928a (patch) | |
tree | f0c1d9ae8c5a68cc38e4ffba772f50f43111e715 /include/sbi_utils | |
parent | 559a8f1d3be3210d4903c0db54c2d36e2f8d6ad4 (diff) |
lib: sbi: Simplify ipi platform operations
Instead of having ipi_send() and ipi_clear() callbacks in
platform operations, it will be much simpler for ipi driver
to directly register these operations as a device to sbi_ipi
implementation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r-- | include/sbi_utils/ipi/fdt_ipi.h | 6 | ||||
-rw-r--r-- | include/sbi_utils/sys/clint.h | 4 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/sbi_utils/ipi/fdt_ipi.h b/include/sbi_utils/ipi/fdt_ipi.h index e817141..9337353 100644 --- a/include/sbi_utils/ipi/fdt_ipi.h +++ b/include/sbi_utils/ipi/fdt_ipi.h @@ -17,14 +17,8 @@ struct fdt_ipi { int (*cold_init)(void *fdt, int nodeoff, const struct fdt_match *match); int (*warm_init)(void); void (*exit)(void); - void (*send)(u32 target_hart); - void (*clear)(u32 target_hart); }; -void fdt_ipi_send(u32 target_hart); - -void fdt_ipi_clear(u32 target_hart); - void fdt_ipi_exit(void); int fdt_ipi_init(bool cold_boot); diff --git a/include/sbi_utils/sys/clint.h b/include/sbi_utils/sys/clint.h index e102196..1e2b40b 100644 --- a/include/sbi_utils/sys/clint.h +++ b/include/sbi_utils/sys/clint.h @@ -29,10 +29,6 @@ struct clint_data { void (*time_wr)(u64 value, volatile u64 *addr); }; -void clint_ipi_send(u32 target_hart); - -void clint_ipi_clear(u32 target_hart); - int clint_warm_ipi_init(void); int clint_cold_ipi_init(struct clint_data *clint); |