Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / misc / pvpanic.h
blob9a71a5ad0d7dd3b9f52d8e16159435139b438cec
1 /*
2 * QEMU simulated pvpanic device.
4 * Copyright Fujitsu, Corp. 2013
6 * Authors:
7 * Wen Congyang <wency@cn.fujitsu.com>
8 * Hu Tao <hutao@cn.fujitsu.com>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
15 #ifndef HW_MISC_PVPANIC_H
16 #define HW_MISC_PVPANIC_H
18 #include "exec/memory.h"
19 #include "qom/object.h"
21 #include "standard-headers/misc/pvpanic.h"
23 #define PVPANIC_EVENTS (PVPANIC_PANICKED | \
24 PVPANIC_CRASH_LOADED | \
25 PVPANIC_SHUTDOWN)
27 #define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
28 #define TYPE_PVPANIC_PCI_DEVICE "pvpanic-pci"
30 #define PVPANIC_IOPORT_PROP "ioport"
33 * PVPanicState for any device type
35 typedef struct PVPanicState PVPanicState;
36 struct PVPanicState {
37 MemoryRegion mr;
38 uint8_t events;
41 void pvpanic_setup_io(PVPanicState *s, DeviceState *dev, unsigned size);
43 #endif