xref: /qemu/include/hw/intc/loongarch_pch_pic.h (revision 513823e7521a09ed7ad1e32e6454bac3b2cbf52d)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * LoongArch 7A1000 I/O interrupt controller definitions
4  *
5  * Copyright (c) 2021 Loongson Technology Corporation Limited
6  */
7 
8 #ifndef HW_LOONGARCH_PCH_PIC_H
9 #define HW_LOONGARCH_PCH_PIC_H
10 
11 #include "hw/intc/loongarch_pic_common.h"
12 
13 #define TYPE_LOONGARCH_PIC  "loongarch_pic"
14 #define PCH_PIC_NAME(name)  TYPE_LOONGARCH_PIC#name
15 OBJECT_DECLARE_TYPE(LoongarchPICState, LoongarchPICClass, LOONGARCH_PIC)
16 
17 struct LoongarchPICState {
18     LoongArchPICCommonState parent_obj;
19 };
20 
21 struct LoongarchPICClass {
22     LoongArchPICCommonClass parent_class;
23 
24     DeviceRealize parent_realize;
25 };
26 
27 #endif /* HW_LOONGARCH_PCH_PIC_H */
28