mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
lib: Move struct sbi_ipi_data definition to sbi_ipi.c
The struct sbi_ipi_data is only used in sbi_ipi.c so move it to sbi_ipi.c from sbi_ipi.h. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -21,11 +21,6 @@
|
|||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
|
|
||||||
struct sbi_scratch;
|
struct sbi_scratch;
|
||||||
struct sbi_trap_info;
|
|
||||||
|
|
||||||
struct sbi_ipi_data {
|
|
||||||
unsigned long ipi_type;
|
|
||||||
};
|
|
||||||
|
|
||||||
int sbi_ipi_send_many(struct sbi_scratch *scratch, ulong hmask,
|
int sbi_ipi_send_many(struct sbi_scratch *scratch, ulong hmask,
|
||||||
ulong hbase, u32 event, void *data);
|
ulong hbase, u32 event, void *data);
|
||||||
|
@@ -20,6 +20,10 @@
|
|||||||
#include <sbi/sbi_tlb.h>
|
#include <sbi/sbi_tlb.h>
|
||||||
#include <sbi/sbi_trap.h>
|
#include <sbi/sbi_trap.h>
|
||||||
|
|
||||||
|
struct sbi_ipi_data {
|
||||||
|
unsigned long ipi_type;
|
||||||
|
};
|
||||||
|
|
||||||
static unsigned long ipi_data_off;
|
static unsigned long ipi_data_off;
|
||||||
|
|
||||||
static int sbi_ipi_send(struct sbi_scratch *scratch, u32 hartid, u32 event,
|
static int sbi_ipi_send(struct sbi_scratch *scratch, u32 hartid, u32 event,
|
||||||
|
Reference in New Issue
Block a user