aboutsummaryrefslogtreecommitdiff
path: root/include/hw/intc/loongson_ipi.h
blob: 4e517cc8dc4273db1799a0e9a1ce1e1a0ffc4a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Loongson ipi interrupt header files
 *
 * Copyright (C) 2021 Loongson Technology Corporation Limited
 */

#ifndef HW_LOONGSON_IPI_H
#define HW_LOONGSON_IPI_H

#include "qom/object.h"
#include "hw/intc/loongson_ipi_common.h"
#include "hw/sysbus.h"

#define TYPE_LOONGSON_IPI "loongson_ipi"
OBJECT_DECLARE_TYPE(LoongsonIPIState, LoongsonIPIClass, LOONGSON_IPI)

struct LoongsonIPIClass {
    LoongsonIPICommonClass parent_class;

    DeviceRealize parent_realize;
    DeviceUnrealize parent_unrealize;
};

struct LoongsonIPIState {
    LoongsonIPICommonState parent_obj;

    MemoryRegion *ipi_mmio_mem;
};

#endif