include: Include headers where needed
[qemu.git] / include / hw / intc / goldfish_pic.h
blob3e795803672432c6916310b1e7f77f1fd122ef06
1 /*
2 * SPDX-License-Identifier: GPL-2.0-or-later
4 * Goldfish PIC
6 * (c) 2020 Laurent Vivier <laurent@vivier.eu>
8 */
10 #ifndef HW_INTC_GOLDFISH_PIC_H
11 #define HW_INTC_GOLDFISH_PIC_H
13 #include "hw/sysbus.h"
15 #define TYPE_GOLDFISH_PIC "goldfish_pic"
16 OBJECT_DECLARE_SIMPLE_TYPE(GoldfishPICState, GOLDFISH_PIC)
18 #define GOLDFISH_PIC_IRQ_NB 32
20 struct GoldfishPICState {
21 SysBusDevice parent_obj;
23 MemoryRegion iomem;
24 qemu_irq irq;
26 uint32_t pending;
27 uint32_t enabled;
29 /* statistics */
30 uint64_t stats_irq_count[32];
31 /* for tracing */
32 uint8_t idx;
35 #endif