diff options
Diffstat (limited to 'include/hw/intc/loongarch_ipi.h')
-rw-r--r-- | include/hw/intc/loongarch_ipi.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_ipi.h b/include/hw/intc/loongarch_ipi.h new file mode 100644 index 0000000..5175a6b --- /dev/null +++ b/include/hw/intc/loongarch_ipi.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * LoongArch IPI interrupt header files + * + * Copyright (C) 2024 Loongson Technology Corporation Limited + */ + +#ifndef HW_LOONGARCH_IPI_H +#define HW_LOONGARCH_IPI_H + +#include "qom/object.h" +#include "hw/intc/loongson_ipi_common.h" + +#define TYPE_LOONGARCH_IPI "loongarch_ipi" +OBJECT_DECLARE_TYPE(LoongarchIPIState, LoongarchIPIClass, LOONGARCH_IPI) + +struct LoongarchIPIState { + LoongsonIPICommonState parent_obj; + int dev_fd; +}; + +struct LoongarchIPIClass { + LoongsonIPICommonClass parent_class; + DeviceRealize parent_realize; + ResettablePhases parent_phases; +}; + +void kvm_ipi_realize(DeviceState *dev, Error **errp); +int kvm_ipi_get(void *opaque); +int kvm_ipi_put(void *opaque, int version_id); + +#endif |