Philippe Mathieu-Daudé | 0d5d8a3 | 2017-10-17 13:44:23 -0300 | [diff] [blame] | 1 | /* |
| 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 Armbruster | ec150c7 | 2019-08-12 07:23:31 +0200 | [diff] [blame] | 14 | |
Philippe Mathieu-Daudé | 0d5d8a3 | 2017-10-17 13:44:23 -0300 | [diff] [blame] | 15 | #ifndef HW_MISC_PVPANIC_H |
| 16 | #define HW_MISC_PVPANIC_H |
| 17 | |
Markus Armbruster | 7a5951f | 2022-12-22 13:08:11 +0100 | [diff] [blame] | 18 | #include "exec/memory.h" |
Markus Armbruster | ec150c7 | 2019-08-12 07:23:31 +0200 | [diff] [blame] | 19 | #include "qom/object.h" |
| 20 | |
Mihai Carabas | 677726e | 2021-01-27 16:59:27 +0200 | [diff] [blame] | 21 | #define TYPE_PVPANIC_ISA_DEVICE "pvpanic" |
Mihai Carabas | d097b3d | 2021-01-27 16:59:28 +0200 | [diff] [blame] | 22 | #define TYPE_PVPANIC_PCI_DEVICE "pvpanic-pci" |
Philippe Mathieu-Daudé | 0d5d8a3 | 2017-10-17 13:44:23 -0300 | [diff] [blame] | 23 | |
Juan Quintela | c0b5be5 | 2018-07-10 22:51:53 +0200 | [diff] [blame] | 24 | #define PVPANIC_IOPORT_PROP "ioport" |
| 25 | |
Mihai Carabas | 677726e | 2021-01-27 16:59:27 +0200 | [diff] [blame] | 26 | /* |
| 27 | * PVPanicState for any device type |
| 28 | */ |
| 29 | typedef struct PVPanicState PVPanicState; |
| 30 | struct PVPanicState { |
| 31 | MemoryRegion mr; |
| 32 | uint8_t events; |
| 33 | }; |
| 34 | |
| 35 | void pvpanic_setup_io(PVPanicState *s, DeviceState *dev, unsigned size); |
| 36 | |
Philippe Mathieu-Daudé | 0d5d8a3 | 2017-10-17 13:44:23 -0300 | [diff] [blame] | 37 | #endif |