xref: /openbmc/qemu/include/hw/misc/virt_ctrl.h (revision 36ebc7db)
1 /*
2  * SPDX-License-Identifier: GPL-2.0-or-later
3  *
4  * Virt system Controller
5  */
6 
7 #ifndef VIRT_CTRL_H
8 #define VIRT_CTRL_H
9 
10 #include "hw/sysbus.h"
11 
12 #define TYPE_VIRT_CTRL "virt-ctrl"
13 OBJECT_DECLARE_SIMPLE_TYPE(VirtCtrlState, VIRT_CTRL)
14 
15 struct VirtCtrlState {
16     SysBusDevice parent_obj;
17 
18     MemoryRegion iomem;
19     qemu_irq irq;
20 
21     uint32_t irq_enabled;
22 };
23 
24 #endif
25