2022-06-06 20:43:21 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/*
|
2024-05-08 14:06:47 +01:00
|
|
|
* Loongson ipi interrupt header files
|
2022-06-06 20:43:21 +08:00
|
|
|
*
|
|
|
|
* Copyright (C) 2021 Loongson Technology Corporation Limited
|
|
|
|
*/
|
|
|
|
|
2024-05-08 14:06:47 +01:00
|
|
|
#ifndef HW_LOONGSON_IPI_H
|
|
|
|
#define HW_LOONGSON_IPI_H
|
2022-06-06 20:43:21 +08:00
|
|
|
|
2024-07-23 11:25:53 +02:00
|
|
|
#include "qom/object.h"
|
|
|
|
#include "hw/intc/loongson_ipi_common.h"
|
2022-06-06 20:43:21 +08:00
|
|
|
#include "hw/sysbus.h"
|
|
|
|
|
2024-05-08 14:06:47 +01:00
|
|
|
#define TYPE_LOONGSON_IPI "loongson_ipi"
|
2024-07-23 11:25:53 +02:00
|
|
|
OBJECT_DECLARE_TYPE(LoongsonIPIState, LoongsonIPIClass, LOONGSON_IPI)
|
2022-06-06 20:43:21 +08:00
|
|
|
|
2024-07-23 11:25:53 +02:00
|
|
|
struct LoongsonIPIClass {
|
|
|
|
LoongsonIPICommonClass parent_class;
|
|
|
|
|
|
|
|
DeviceRealize parent_realize;
|
|
|
|
DeviceUnrealize parent_unrealize;
|
|
|
|
};
|
|
|
|
|
2024-07-15 16:50:51 +02:00
|
|
|
struct LoongsonIPIState {
|
2024-07-23 11:25:53 +02:00
|
|
|
LoongsonIPICommonState parent_obj;
|
|
|
|
|
2024-07-15 16:58:55 +02:00
|
|
|
MemoryRegion *ipi_mmio_mem;
|
2022-06-06 20:43:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|