blob: fab94165d03d2f85bf80d0334a5c6baa61efd244 [file] [log] [blame]
Philippe Mathieu-Daudé0d5d8a32017-10-17 13:44:23 -03001/*
2 * QEMU simulated pvpanic device.
3 *
4 * Copyright Fujitsu, Corp. 2013
5 *
6 * Authors:
7 * Wen Congyang <wency@cn.fujitsu.com>
8 * Hu Tao <hutao@cn.fujitsu.com>
9 *
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.
12 *
13 */
Markus Armbrusterec150c72019-08-12 07:23:31 +020014
Philippe Mathieu-Daudé0d5d8a32017-10-17 13:44:23 -030015#ifndef HW_MISC_PVPANIC_H
16#define HW_MISC_PVPANIC_H
17
Markus Armbruster7a5951f2022-12-22 13:08:11 +010018#include "exec/memory.h"
Markus Armbrusterec150c72019-08-12 07:23:31 +020019#include "qom/object.h"
20
Mihai Carabas677726e2021-01-27 16:59:27 +020021#define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
Mihai Carabasd097b3d2021-01-27 16:59:28 +020022#define TYPE_PVPANIC_PCI_DEVICE "pvpanic-pci"
Philippe Mathieu-Daudé0d5d8a32017-10-17 13:44:23 -030023
Juan Quintelac0b5be52018-07-10 22:51:53 +020024#define PVPANIC_IOPORT_PROP "ioport"
25
Mihai Carabas677726e2021-01-27 16:59:27 +020026/*
27 * PVPanicState for any device type
28 */
29typedef struct PVPanicState PVPanicState;
30struct PVPanicState {
31 MemoryRegion mr;
32 uint8_t events;
33};
34
35void pvpanic_setup_io(PVPanicState *s, DeviceState *dev, unsigned size);
36
Philippe Mathieu-Daudé0d5d8a32017-10-17 13:44:23 -030037#endif