OSDN Git Service

hw/misc/pvpanic: split-out generic and bus dependent code
authorMihai Carabas <mihai.carabas@oracle.com>
Wed, 27 Jan 2021 14:59:27 +0000 (16:59 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2021 10:47:28 +0000 (10:47 +0000)
commit677726ef1ebc567e4f5081f68623debc68f958d9
tree2dc3e9c9d2963d99f0906600b5bc7c6c56ba507b
parent8a74ce618b647e71ac703b5fe5dba3a2329a4d76
hw/misc/pvpanic: split-out generic and bus dependent code

To ease the PCI device addition in next patches, split the code as follows:
- generic code (read/write/setup) is being kept in pvpanic.c
- ISA dependent code moved to pvpanic-isa.c

Also, rename:
- ISA_PVPANIC_DEVICE -> PVPANIC_ISA_DEVICE.
- TYPE_PVPANIC -> TYPE_PVPANIC_ISA.
- MemoryRegion io -> mr.
- pvpanic_ioport_* in pvpanic_*.

Update the build system with the new files and config structure.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i386/Kconfig
hw/misc/Kconfig
hw/misc/meson.build
hw/misc/pvpanic-isa.c [new file with mode: 0644]
hw/misc/pvpanic.c
include/hw/misc/pvpanic.h
tests/qtest/meson.build