mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
pckbd: move mapping of I8042_MMIO registers to MIPS magnum machine
Now that the register memory region is exposed as a SysBus memory region, move the mapping of the I8042_MMIO registers from i8042_mm_init() to the MIPS magnum 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-29-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
903dd0e49b
commit
01d924dce8
3 changed files with 9 additions and 10 deletions
|
@ -709,8 +709,7 @@ static void i8042_mmio_class_init(ObjectClass *klass, void *data)
|
|||
}
|
||||
|
||||
MMIOKBDState *i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
|
||||
MemoryRegion *region, ram_addr_t size,
|
||||
hwaddr mask)
|
||||
ram_addr_t size, hwaddr mask)
|
||||
{
|
||||
DeviceState *dev;
|
||||
KBDState *s;
|
||||
|
@ -726,8 +725,6 @@ MMIOKBDState *i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
|
|||
|
||||
vmstate_register(NULL, 0, &vmstate_kbd, s);
|
||||
|
||||
region = &I8042_MMIO(dev)->region;
|
||||
|
||||
s->kbd = ps2_kbd_init(kbd_update_kbd_irq, s);
|
||||
s->mouse = ps2_mouse_init(kbd_update_aux_irq, s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue