aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-04 10:25:44 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-05-08 18:52:37 +0100
commit9701e56943282ea94876c1e4202ed30ce3a3c706 (patch)
tree6a08a43547544d40b8f4a26d86b539ae64c249c4
parentc3c3fe47086221de21cc387ef4c876f316463876 (diff)
downloadqemu-9701e56943282ea94876c1e4202ed30ce3a3c706.zip
qemu-9701e56943282ea94876c1e4202ed30ce3a3c706.tar.gz
qemu-9701e56943282ea94876c1e4202ed30ce3a3c706.tar.bz2
lasi: move parallel port initialisation to machine.c
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-35-mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r--hw/hppa/lasi.c6
-rw-r--r--hw/hppa/machine.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/hw/hppa/lasi.c b/hw/hppa/lasi.c
index 88ff914..6faa98d 100644
--- a/hw/hppa/lasi.c
+++ b/hw/hppa/lasi.c
@@ -18,7 +18,6 @@
#include "sysemu/sysemu.h"
#include "sysemu/runstate.h"
#include "hppa_sys.h"
-#include "hw/char/parallel.h"
#include "hw/char/serial.h"
#include "hw/input/lasips2.h"
#include "migration/vmstate.h"
@@ -237,11 +236,6 @@ LasiState *lasi_initfn(MemoryRegion *address_space)
dev = qdev_new(TYPE_LASI_CHIP);
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
- /* Parallel port */
- parallel_mm_init(address_space, LASI_LPT_HPA + 0x800, 0,
- qdev_get_gpio_in(dev, LASI_IRQ_LAN_HPA),
- parallel_hds[0]);
-
if (serial_hd(1)) {
/* Serial port */
serial_mm_init(address_space, LASI_UART_HPA + 0x800, 0,
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index b3b4a00..5244178 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -15,6 +15,7 @@
#include "hw/rtc/mc146818rtc.h"
#include "hw/timer/i8254.h"
#include "hw/char/serial.h"
+#include "hw/char/parallel.h"
#include "hw/net/lasi_82596.h"
#include "hw/nmi.h"
#include "hw/pci-host/dino.h"
@@ -204,6 +205,11 @@ static void machine_hppa_init(MachineState *machine)
115200, serial_hd(0), DEVICE_BIG_ENDIAN);
}
+ /* Parallel port */
+ parallel_mm_init(addr_space, LASI_LPT_HPA + 0x800, 0,
+ qdev_get_gpio_in(lasi_dev, LASI_IRQ_LAN_HPA),
+ parallel_hds[0]);
+
/* fw_cfg configuration interface */
create_fw_cfg(machine);