aboutsummaryrefslogtreecommitdiff
path: root/include/hw/misc/virt_ctrl.h
blob: 25a237e51874d2ffd77dafabc451bcf9f8159a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SPDX-License-Identifier: GPL-2.0-or-later
 *
 * Virt system Controller
 */

#ifndef VIRT_CTRL_H
#define VIRT_CTRL_H

#define TYPE_VIRT_CTRL "virt-ctrl"
OBJECT_DECLARE_SIMPLE_TYPE(VirtCtrlState, VIRT_CTRL)

struct VirtCtrlState {
    SysBusDevice parent_obj;

    MemoryRegion iomem;
    qemu_irq irq;

    uint32_t irq_enabled;
};

#endif