mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00

Now that the SBI IPI core clears IPIs at warm boot in a generic way, none of the drivers or platforms use these hooks, and we can remove them. Platforms need only to initialize the driver once during cold init. If other hooks are needed in the future, they can be added to struct sbi_ipi_device. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
31 lines
507 B
C
31 lines
507 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2020 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __FDT_IPI_H__
|
|
#define __FDT_IPI_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
#ifdef CONFIG_FDT_IPI
|
|
|
|
struct fdt_ipi {
|
|
const struct fdt_match *match_table;
|
|
int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match);
|
|
};
|
|
|
|
int fdt_ipi_init(void);
|
|
|
|
#else
|
|
|
|
static inline int fdt_ipi_init(void) { return 0; }
|
|
|
|
#endif
|
|
|
|
#endif
|