master
h 31 lines 672 Bytes
Raw
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Loongson ipi interrupt header files
4 *
5 * Copyright (C) 2021 Loongson Technology Corporation Limited
6 */
7
8 #ifndef HW_LOONGSON_IPI_H
9 #define HW_LOONGSON_IPI_H
10
11 #include "qom/object.h"
12 #include "hw/intc/loongson_ipi_common.h"
13 #include "hw/core/sysbus.h"
14
15 #define TYPE_LOONGSON_IPI "loongson_ipi"
16 OBJECT_DECLARE_TYPE(LoongsonIPIState, LoongsonIPIClass, LOONGSON_IPI)
17
18 struct LoongsonIPIClass {
19 LoongsonIPICommonClass parent_class;
20
21 DeviceRealize parent_realize;
22 DeviceUnrealize parent_unrealize;
23 };
24
25 struct LoongsonIPIState {
26 LoongsonIPICommonState parent_obj;
27
28 MemoryRegion *ipi_mmio_mem;
29 };
30
31 #endif