Add a system controller for the m68k-virt machine. This controller allows the kernel to power off or reset the machine. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210312214145.2936082-5-laurent@vivier.eu>
23 lines
344 B
C
23 lines
344 B
C
/*
|
|
* SPDX-License-Identifer: 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
|