aboutsummaryrefslogtreecommitdiff
path: root/hw/input/lasips2.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:40:57 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:12 +0100
commit6479296fe561cc3aacc3ee99adf02ca7d2120713 (patch)
tree5398b269356b88b36bfd661c6691a2696f2e4cd8 /hw/input/lasips2.c
parent63195aa5a55a885a5c56b7103eb6e698abf2b95a (diff)
downloadqemu-6479296fe561cc3aacc3ee99adf02ca7d2120713.zip
qemu-6479296fe561cc3aacc3ee99adf02ca7d2120713.tar.gz
qemu-6479296fe561cc3aacc3ee99adf02ca7d2120713.tar.bz2
lasips2: move mapping of LASIPS2 registers to HPPA machine
Now that the register memory regions are exposed as SysBus memory regions, move the mapping of the LASIPS2 registers from lasips2_initfn() to the HPPA machine (which is its only user). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220624134109.881989-43-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/input/lasips2.c')
-rw-r--r--hw/input/lasips2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index 8d3a2d8..84e7a1f 100644
--- a/hw/input/lasips2.c
+++ b/hw/input/lasips2.c
@@ -245,8 +245,7 @@ static void lasips2_port_set_irq(void *opaque, int level)
lasips2_update_irq(port->parent);
}
-LASIPS2State *lasips2_initfn(MemoryRegion *address_space,
- hwaddr base, qemu_irq irq)
+LASIPS2State *lasips2_initfn(hwaddr base, qemu_irq irq)
{
LASIPS2State *s;
DeviceState *dev;
@@ -265,10 +264,6 @@ LASIPS2State *lasips2_initfn(MemoryRegion *address_space,
s->kbd.dev = ps2_kbd_init(lasips2_port_set_irq, &s->kbd);
s->mouse.dev = ps2_mouse_init(lasips2_port_set_irq, &s->mouse);
- memory_region_add_subregion(address_space, base, &s->kbd.reg);
-
- memory_region_add_subregion(address_space, base + 0x100, &s->mouse.reg);
-
return s;
}