qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 545e5c: ps2: checkpatch fixes


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 545e5c: ps2: checkpatch fixes
Date: Sun, 26 Jun 2022 23:13:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 545e5cf817c0e635479f202cbb2e0973aa6431d0
      
https://github.com/qemu/qemu/commit/545e5cf817c0e635479f202cbb2e0973aa6431d0
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: checkpatch fixes

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-2-mark.cave-ayland@ilande.co.uk>


  Commit: 64bbdd138a1e40b71d54c71d25653361329d69fe
      
https://github.com/qemu/qemu/commit/64bbdd138a1e40b71d54c71d25653361329d69fe
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: QOMify PS2State

Make PS2State a new abstract PS2_DEVICE QOM type to represent the common
functionality shared between PS2 keyboard and mouse devices.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-3-mark.cave-ayland@ilande.co.uk>


  Commit: 8f84e53cd0067a1d4be4f6b2deb7d24bd5f469c6
      
https://github.com/qemu/qemu/commit/8f84e53cd0067a1d4be4f6b2deb7d24bd5f469c6
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: QOMify PS2KbdState

Make PS2KbdState into a new PS2_KBD_DEVICE QOM type which inherits from the
abstract PS2_DEVICE type.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-4-mark.cave-ayland@ilande.co.uk>


  Commit: 2d135409e642bb31cff032dc533bf7ce6b0d0051
      
https://github.com/qemu/qemu/commit/2d135409e642bb31cff032dc533bf7ce6b0d0051
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: QOMify PS2MouseState

Make PS2MouseState into a new PS2_MOUSE_DEVICE QOM type which inherits from the
abstract PS2_DEVICE type.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-5-mark.cave-ayland@ilande.co.uk>


  Commit: 0c235e38893c9376c7f235f7ecaf83c091436187
      
https://github.com/qemu/qemu/commit/0c235e38893c9376c7f235f7ecaf83c091436187
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: move QOM type definitions from ps2.c to ps2.h

Move the QOM type definitions into the ps2.h header file to allow the new QOM
types to be used by other devices.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-6-mark.cave-ayland@ilande.co.uk>


  Commit: 54334e7387c9da6015cf8b79b58dbf06286f822f
      
https://github.com/qemu/qemu/commit/54334e7387c9da6015cf8b79b58dbf06286f822f
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: improve function prototypes in ps2.c and ps2.h

With the latest changes it is now possible to improve some of the function
prototypes in ps2.c and ps.h to use the appropriate PS2KbdState or
PS2MouseState type instead of being a void opaque.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-7-mark.cave-ayland@ilande.co.uk>


  Commit: 494145b28644dee66c1125c33ba55a02d5585db7
      
https://github.com/qemu/qemu/commit/494145b28644dee66c1125c33ba55a02d5585db7
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: introduce PS2DeviceClass

This is in preparation for allowing the new PS2_KBD_DEVICE and PS2_MOUSE_DEVICE
QOM types to reference the parent PS2_DEVICE device reset() function.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-8-mark.cave-ayland@ilande.co.uk>


  Commit: 108cb22e4837a36bc22959a612f8bb50471139f6
      
https://github.com/qemu/qemu/commit/108cb22e4837a36bc22959a612f8bb50471139f6
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: implement ps2_reset() for the PS2_DEVICE QOM type based upon 
ps2_common_reset()

The functionality of ps2_common_reset() can be moved into a new ps2_reset() 
function
for the PS2_DEVICE QOM type. Update PS2DeviceClass to hold a reference to the 
parent
reset function and update the PS2_KBD_DEVICE and PS2_MOUSE_DEVICE types to use
device_class_set_parent_reset() accordingly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-9-mark.cave-ayland@ilande.co.uk>


  Commit: a243ecf8c09efd25a09f28e41eca0fea4f3444a0
      
https://github.com/qemu/qemu/commit/a243ecf8c09efd25a09f28e41eca0fea4f3444a0
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: remove duplicate setting of scancode_set in ps2_kbd_init()

The default value for scancode_set is already set in ps2_kbd_reset() so there 
is no
need to duplicate this in ps2_kbd_init().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-10-mark.cave-ayland@ilande.co.uk>


  Commit: ea247a0f3696a0ccdbc7ab818c1c15e5b53e4c31
      
https://github.com/qemu/qemu/commit/ea247a0f3696a0ccdbc7ab818c1c15e5b53e4c31
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: implement ps2_kbd_realize() and use it to register ps2_keyboard_handler

Move the registration of ps2_keyboard_handler from ps2_kbd_init() to a new
ps2_kbd_realize() function. Since the abstract PS2_DEVICE parent class doesn't
have a realize() function then it is not necessary to store the reference to
it in PS2DeviceClass and use device_class_set_parent_realize().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-11-mark.cave-ayland@ilande.co.uk>


  Commit: 4a68b4822ffceb40c34cf62847ff0da52532abb4
      
https://github.com/qemu/qemu/commit/4a68b4822ffceb40c34cf62847ff0da52532abb4
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: implement ps2_mouse_realize() and use it to register ps2_mouse_handler

Move the registration of ps2_mouse_handler from ps2_mouse_init() to a new
ps2_mouse_realize() function. Since the abstract PS2_DEVICE parent class doesn't
have a realize() function then it is not necessary to store the reference to
it in PS2DeviceClass and use device_class_set_parent_realize().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-12-mark.cave-ayland@ilande.co.uk>


  Commit: f055f5075ab6778bddf2242c232b35b4466510c0
      
https://github.com/qemu/qemu/commit/f055f5075ab6778bddf2242c232b35b4466510c0
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: don't use vmstate_register() in ps2_kbd_init()

Since PS2_KBD_DEVICE is a qdev device then vmstate_ps2_keyboard can be 
registered
using the DeviceClass vmsd field instead. There is no need to use
qdev_set_legacy_instance_id() to ensure migration compatibility since the first 
2
parameters to vmstate_register() are NULL and 0 respectively.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-13-mark.cave-ayland@ilande.co.uk>


  Commit: 97259e70cbc0b874a523302960ae70fd184621ae
      
https://github.com/qemu/qemu/commit/97259e70cbc0b874a523302960ae70fd184621ae
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: don't use vmstate_register() in ps2_mouse_init()

Since PS2_MOUSE_DEVICE is a qdev device then vmstate_ps2_mouse can be registered
using the DeviceClass vmsd field instead. There is no need to use
qdev_set_legacy_instance_id() to ensure migration compatibility since the first 
2
parameters to vmstate_register() are NULL and 0 respectively.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-14-mark.cave-ayland@ilande.co.uk>


  Commit: 600f71109d8a0c10205d0f9c344c47d5a7962eed
      
https://github.com/qemu/qemu/commit/600f71109d8a0c10205d0f9c344c47d5a7962eed
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pl050.c

  Log Message:
  -----------
  pl050: checkpatch fixes

This patch also includes a couple of minor spacing updates.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-15-mark.cave-ayland@ilande.co.uk>


  Commit: eca9e8702b7d071a8e2f94bd1096d846d91ca3d8
      
https://github.com/qemu/qemu/commit/eca9e8702b7d071a8e2f94bd1096d846d91ca3d8
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pl050.c

  Log Message:
  -----------
  pl050: split pl050_update_irq() into separate pl050_set_irq() and 
pl050_update_irq() functions

This will soon allow pl050_set_irq() to be used as a GPIO input function.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-16-mark.cave-ayland@ilande.co.uk>


  Commit: 2a93d3c16571305864df8f990e39cb4d99ea1d33
      
https://github.com/qemu/qemu/commit/2a93d3c16571305864df8f990e39cb4d99ea1d33
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: spacing fixes

This helps improve the readability of lasips2.c.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-17-mark.cave-ayland@ilande.co.uk>


  Commit: f342469f21df9594e400d1208083652847ca4675
      
https://github.com/qemu/qemu/commit/f342469f21df9594e400d1208083652847ca4675
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: rename ps2dev_update_irq() to lasips2_port_set_irq()

This better reflects that the IRQ input opaque is a LASIPS2Port structure
and not a PS2_DEVICE.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-18-mark.cave-ayland@ilande.co.uk>


  Commit: 32be01575df7cac57c58a34388126ee3d6740842
      
https://github.com/qemu/qemu/commit/32be01575df7cac57c58a34388126ee3d6740842
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: checkpatch fixes

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-19-mark.cave-ayland@ilande.co.uk>


  Commit: 77adda52ef7bcdb5edc9b4dc1678c83f31a02f46
      
https://github.com/qemu/qemu/commit/77adda52ef7bcdb5edc9b4dc1678c83f31a02f46
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: move KBDState from pckbd.c to i8042.h

This allows the QOM types in pckbd.c to be used elsewhere by simply including
i8042.h.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-20-mark.cave-ayland@ilande.co.uk>


  Commit: c9849a71b997a3b96757b19642b5b9a56c2ccb75
      
https://github.com/qemu/qemu/commit/c9849a71b997a3b96757b19642b5b9a56c2ccb75
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: move ISAKBDState from pckbd.c to i8042.h

This allows the QOM types in pckbd.c to be used elsewhere by simply including
i8042.h.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-21-mark.cave-ayland@ilande.co.uk>


  Commit: 150ee013ed3f2af7eec493cd68ae774a85d40a2b
      
https://github.com/qemu/qemu/commit/150ee013ed3f2af7eec493cd68ae774a85d40a2b
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: introduce new I8042_MMIO QOM type

Currently i8042_mm_init() creates a new KBDState directly which is used by the 
MIPS
magnum machine. Introduce a new I8042_MMIO QOM type that will soon be used to
allow the MIPS magnum machine to be wired up using standard qdev GPIOs.

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-22-mark.cave-ayland@ilande.co.uk>


  Commit: 57f6c3aac08d16eb7fe4a447dbbbfeb314d39234
      
https://github.com/qemu/qemu/commit/57f6c3aac08d16eb7fe4a447dbbbfeb314d39234
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: implement i8042_mmio_reset() for I8042_MMIO device

This allows the I8042_MMIO reset function to be registered directly within the
DeviceClass rather than using qemu_register_reset() directly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-23-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: d4f5b4d87945d2a0f02fea8b42439d24c809c458
      
https://github.com/qemu/qemu/commit/d4f5b4d87945d2a0f02fea8b42439d24c809c458
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: add mask qdev property to I8042_MMIO device

This allows the KBDState mask value to be set using a qdev property rather
than directly in i8042_mm_init().

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-24-mark.cave-ayland@ilande.co.uk>


  Commit: 7b9fff290c20ee65c5deba0ad98f97529061d231
      
https://github.com/qemu/qemu/commit/7b9fff290c20ee65c5deba0ad98f97529061d231
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: add size qdev property to I8042_MMIO device

This will soon be used to set the size of the register memory region using a
qdev property.

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-25-mark.cave-ayland@ilande.co.uk>


  Commit: f4de68d1d45f1f104535a82f3e0dd3c393c6539e
      
https://github.com/qemu/qemu/commit/f4de68d1d45f1f104535a82f3e0dd3c393c6539e
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: implement i8042_mmio_realize() function

Move the initialisation of the register memory region to the I8042_MMIO device
realize function and expose it using sysbus_init_mmio().

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-26-mark.cave-ayland@ilande.co.uk>


  Commit: 47fc74154c1dd68d70209a87213805fdad0d2790
      
https://github.com/qemu/qemu/commit/47fc74154c1dd68d70209a87213805fdad0d2790
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: implement i8042_mmio_init() function

This enables use to set the required value of extended_state directly during
device init rather than in i8042_mm_init().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-27-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 903dd0e49b5140df55d6f77f97c741f99346c23e
      
https://github.com/qemu/qemu/commit/903dd0e49b5140df55d6f77f97c741f99346c23e
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: alter i8042_mm_init() to return a I8042_MMIO device

This exposes the I8042_MMIO device to the caller to allow the register memory
region to be mapped outside of i8042_mm_init().

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-28-mark.cave-ayland@ilande.co.uk>


  Commit: 01d924dce88f6d43a0be36c0e626f058e68a9ea4
      
https://github.com/qemu/qemu/commit/01d924dce88f6d43a0be36c0e626f058e68a9ea4
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M hw/mips/jazz.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  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>


  Commit: 75877e9356638b6446f634298923be5c088a3a60
      
https://github.com/qemu/qemu/commit/75877e9356638b6446f634298923be5c088a3a60
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: more vmstate_register() from i8042_mm_init() to i8042_mmio_realize()

Note in this case it is not possible to register a (new) VMStateDescription in
the DeviceClass without breaking migration compatibility for the MIPS magnum
machine.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-30-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 488d1537a1f59018db57ea8293a7084e8ee71a86
      
https://github.com/qemu/qemu/commit/488d1537a1f59018db57ea8293a7084e8ee71a86
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: move ps2_kbd_init() and ps2_mouse_init() to i8042_mmio_realize()

Move ps2_kbd_init() and ps2_mouse_init() from i8042_mm_init() to
i8042_mmio_realize() to further reduce the initialisation logic done in
i8042_mm_init().

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-31-mark.cave-ayland@ilande.co.uk>


  Commit: 52b28f76dd5d1a44c0d3632a98987e5c771cf251
      
https://github.com/qemu/qemu/commit/52b28f76dd5d1a44c0d3632a98987e5c771cf251
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: make ps2_raise_irq() function static

This function is no longer used outside of ps2.c and so can be declared static.

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-32-mark.cave-ayland@ilande.co.uk>


  Commit: 892e9bbe595e31e7e0a3734d25091c75f56fc9a9
      
https://github.com/qemu/qemu/commit/892e9bbe595e31e7e0a3734d25091c75f56fc9a9
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: use ps2_raise_irq() instead of calling update_irq() directly

This consolidates the logic of raising the PS2 IRQ into one single function.

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-33-mark.cave-ayland@ilande.co.uk>


  Commit: 5cb6e55622570cfc2284dfe4c95f64aee428e63c
      
https://github.com/qemu/qemu/commit/5cb6e55622570cfc2284dfe4c95f64aee428e63c
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: introduce ps2_lower_irq() instead of calling update_irq() directly

This consolidates the logic of lowering the PS2 IRQ into one single function.

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-34-mark.cave-ayland@ilande.co.uk>


  Commit: 6beb79e11a48b7876dfd63fcfb51d1a603936928
      
https://github.com/qemu/qemu/commit/6beb79e11a48b7876dfd63fcfb51d1a603936928
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: add gpio for output IRQ and optionally use it in ps2_raise_irq() and 
ps2_lower_irq()

Define the gpio for the PS2 output IRQ in ps2_init() and add logic to optionally
use it in ps2_raise_irq() and ps2_lower_irq() if the gpio is connected. If the
gpio is not connected then call the legacy update_irq() function as before.

This allows the incremental conversion of devices from the legacy update_irq()
function to use gpios instead.

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-35-mark.cave-ayland@ilande.co.uk>


  Commit: c2b1747973d1ff334787d9701cf8214e24fe0798
      
https://github.com/qemu/qemu/commit/c2b1747973d1ff334787d9701cf8214e24fe0798
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: replace irq_kbd and irq_mouse with qemu_irq array in KBDState

This allows both IRQs to be declared as a single qdev gpio array.

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-36-mark.cave-ayland@ilande.co.uk>


  Commit: 423bcb234b358a46c868f6baa0483c84870825c5
      
https://github.com/qemu/qemu/commit/423bcb234b358a46c868f6baa0483c84870825c5
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pl050.c

  Log Message:
  -----------
  pl050: switch over from update_irq() function to PS2 device gpio

Add a new pl050_init() function which initialises a qdev input gpio for handling
incoming PS2 IRQs, and then wire up the PS2 device to use it. At the same time
set update_irq() and update_arg to NULL in ps2_kbd_init() and ps2_mouse_init()
to ensure that any accidental attempt to use the legacy update_irq() function 
will
cause a NULL pointer dereference.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-37-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 1d9d4b072db7e1de406122a3012eced157939299
      
https://github.com/qemu/qemu/commit/1d9d4b072db7e1de406122a3012eced157939299
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pl050.c

  Log Message:
  -----------
  pl050: add QEMU interface comment

This describes the PL050 device interface implemented within QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624134109.881989-38-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 653b388c39ffa75c2935e30d49d24cbf4a5c12e4
      
https://github.com/qemu/qemu/commit/653b388c39ffa75c2935e30d49d24cbf4a5c12e4
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: QOMify LASIPS2State

Currently lasip2_init() creates a new LASIPS2State directly which is used by 
the HPPA
machine. Introduce a new LASIPS2 QOM type that will soon be used to allow the 
HPPA
machine to be wired up using standard qdev GPIOs.

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-39-mark.cave-ayland@ilande.co.uk>


  Commit: 07c68b501056fd45e52db0067fdb3ea0ea571961
      
https://github.com/qemu/qemu/commit/07c68b501056fd45e52db0067fdb3ea0ea571961
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c
    M include/hw/input/lasips2.h

  Log Message:
  -----------
  lasips2: move lasips2 QOM types from lasips2.c to lasips2.h

This allows the QOM types in lasips2.c to be used elsewhere by simply including
lasips2.h.

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-40-mark.cave-ayland@ilande.co.uk>


  Commit: 5cbf35d20f71f87ade944b3835db389c260f2c59
      
https://github.com/qemu/qemu/commit/5cbf35d20f71f87ade944b3835db389c260f2c59
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/hppa/machine.c
    M hw/input/lasips2.c
    M include/hw/input/lasips2.h

  Log Message:
  -----------
  lasips2: rename lasips2_init() to lasips2_initfn() and update it to return 
the LASIPS2 device

When QOMifying a device it is typical to use _init() as the suffix for an
instance_init function, however this name is already in use by the legacy 
LASIPS2
wrapper function. Eventually the wrapper function will be removed, but for now
rename it to lasips2_initfn() to avoid a naming collision.

At the same time update lasips2_initfn() return the LASIPS2 device so that it
can later be accessed using qdev APIs by the HPPA machine.

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-41-mark.cave-ayland@ilande.co.uk>


  Commit: 63195aa5a55a885a5c56b7103eb6e698abf2b95a
      
https://github.com/qemu/qemu/commit/63195aa5a55a885a5c56b7103eb6e698abf2b95a
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: implement lasips2_init() function

Move the initialisation of the keyboard and mouse memory regions to 
lasips2_init()
and expose them as SysBus memory regions.

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-42-mark.cave-ayland@ilande.co.uk>


  Commit: 6479296fe561cc3aacc3ee99adf02ca7d2120713
      
https://github.com/qemu/qemu/commit/6479296fe561cc3aacc3ee99adf02ca7d2120713
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/hppa/machine.c
    M hw/input/lasips2.c
    M include/hw/input/lasips2.h

  Log Message:
  -----------
  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>


  Commit: 02bb59a0e082a4eb88b797c715ab722bebb95ad4
      
https://github.com/qemu/qemu/commit/02bb59a0e082a4eb88b797c715ab722bebb95ad4
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: move initialisation of PS2 ports from lasi_initfn() to lasi_init()

This can be improved once the ps2_kbd_init() and ps2_mouse_init() functions have
been removed, but for now move the existing logic from lasi_initfn() to
lasi_init(). At the same time explicitly set keyboard port id to 0, even if it
isn't technically required.

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-44-mark.cave-ayland@ilande.co.uk>


  Commit: 42119fdb2e851b2a0a6cc09197c33ad943dcb6e9
      
https://github.com/qemu/qemu/commit/42119fdb2e851b2a0a6cc09197c33ad943dcb6e9
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c
    M include/hw/input/lasips2.h

  Log Message:
  -----------
  lasips2: add base property

This is in preparation for handling vmstate_register() within the device.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-45-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 1702627c3329e6f43b92addc6eb16fc420a4cf18
      
https://github.com/qemu/qemu/commit/1702627c3329e6f43b92addc6eb16fc420a4cf18
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: implement lasips2_realize()

Move ps2_kbd_init() and ps2_mouse_init() from lasips2_initfn() to 
lasips2_realize.

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-46-mark.cave-ayland@ilande.co.uk>


  Commit: 97bc05971bb26588e114dcb8a8e96c14a8a8a202
      
https://github.com/qemu/qemu/commit/97bc05971bb26588e114dcb8a8e96c14a8a8a202
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: use sysbus IRQ for output IRQ

This enables the IRQ to be wired up using sysbus_connect_irq() in
lasips2_initfn().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-47-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 0d1ac496a2587b59568bea16d88e4dadbf6dbe2c
      
https://github.com/qemu/qemu/commit/0d1ac496a2587b59568bea16d88e4dadbf6dbe2c
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c

  Log Message:
  -----------
  lasips2: switch over from update_irq() function to PS2 device gpio

Add a qdev gpio input in lasips2_init() by taking the existing 
lasips2_port_set_irq()
function, updating it accordingly and then renaming to lasips2_set_irq(). Use 
these
new qdev gpio inputs to wire up the PS2 keyboard and mouse devices.

At the same time set update_irq() and update_arg to NULL in ps2_kbd_init() and
ps2_mouse_init() to ensure that any accidental attempt to use the legacy 
update_irq()
function will cause a NULL pointer dereference.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-48-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 501f062e91ca97dfbeaa5148be59d6a27448c9d8
      
https://github.com/qemu/qemu/commit/501f062e91ca97dfbeaa5148be59d6a27448c9d8
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M include/hw/input/lasips2.h

  Log Message:
  -----------
  lasips2: add QEMU interface comment

This describes the LASI PS2 device interface implemented within QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624134109.881989-49-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: cb663a81c1a81adacd3c6201d6b236346c7ea911
      
https://github.com/qemu/qemu/commit/cb663a81c1a81adacd3c6201d6b236346c7ea911
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: switch I8042_MMIO device from update_irq() function to PS2 device gpio

Define a new qdev input gpio for handling incoming PS2 IRQs, and then wire up 
the
PS2 keyboard and mouse devices to use it. At the same time set update_irq() and
update_arg to NULL in ps2_kbd_init() and ps2_mouse_init() to ensure that any
accidental attempt to use the legacy update_irq() function will cause a NULL
pointer dereference.

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-50-mark.cave-ayland@ilande.co.uk>


  Commit: 57de3c1d35605f3f29c332585d9c4b49503d6639
      
https://github.com/qemu/qemu/commit/57de3c1d35605f3f29c332585d9c4b49503d6639
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: add QEMU interface comment for I8042_MMIO device

This describes the I8042_MMIO device interface implemented within QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624134109.881989-51-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 55870d6f27b2ae181d6f08a8e2c0e718178c72d8
      
https://github.com/qemu/qemu/commit/55870d6f27b2ae181d6f08a8e2c0e718178c72d8
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: add i8042_reset() function to I8042 device

This means that it is no longer necessary to call qemu_register_reset() manually
within i8042_realizefn().

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-52-mark.cave-ayland@ilande.co.uk>


  Commit: 6eb252d50cf08704adffed7c758a5b95b15c27e9
      
https://github.com/qemu/qemu/commit/6eb252d50cf08704adffed7c758a5b95b15c27e9
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/pckbd.c

  Log Message:
  -----------
  pckbd: switch I8042 device from update_irq() function to PS2 device gpio

Define a new qdev input gpio for handling incoming PS2 IRQs, and then wire up 
the
PS2 keyboard and mouse devices to use it. At the same time set update_irq() and
update_arg to NULL in ps2_kbd_init() and ps2_mouse_init() to ensure that any
accidental attempt to use the legacy update_irq() function will cause a NULL
pointer dereference.

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-53-mark.cave-ayland@ilande.co.uk>


  Commit: 38f426b8af844c8243b1cd5e6d883c176c527c3b
      
https://github.com/qemu/qemu/commit/38f426b8af844c8243b1cd5e6d883c176c527c3b
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M include/hw/input/i8042.h

  Log Message:
  -----------
  pckbd: add QEMU interface comment for I8042 device

This describes the I8042 device interface implemented within QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624134109.881989-54-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 7227de94adce761d9add78ad087a98697b2d82e9
      
https://github.com/qemu/qemu/commit/7227de94adce761d9add78ad087a98697b2d82e9
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/input/lasips2.c
    M hw/input/pckbd.c
    M hw/input/pl050.c
    M hw/input/ps2.c
    M include/hw/input/ps2.h

  Log Message:
  -----------
  ps2: remove update_irq() function and update_arg parameter

Now that all the PS2 devices have been converted to use GPIOs the update_irq()
callback function and the update_arg parameter can be removed.

This allows these arguments to be completely removed from ps2_kbd_init() and
ps2_mouse_init(), along with the transitional logic that was added to
ps2_raise_irq() and ps2_lower_irq().

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-55-mark.cave-ayland@ilande.co.uk>


  Commit: 39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c
      
https://github.com/qemu/qemu/commit/39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c
  Author: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  Date:   2022-06-26 (Sun, 26 Jun 2022)

  Changed paths:
    M hw/display/artist.c

  Log Message:
  -----------
  artist: set memory region owners for buffers to the artist device

This fixes the output of "info qom-tree" so that the buffers appear as children
of the artist device, rather than underneath the "unattached" container.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624160839.886649-1-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Helge Deller <deller@gmx.de>


  Commit: 097ccbbbaf2681df1e65542e5b7d2b2d0c66e2bc
      
https://github.com/qemu/qemu/commit/097ccbbbaf2681df1e65542e5b7d2b2d0c66e2bc
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M hw/display/artist.c
    M hw/hppa/machine.c
    M hw/input/lasips2.c
    M hw/input/pckbd.c
    M hw/input/pl050.c
    M hw/input/ps2.c
    M hw/mips/jazz.c
    M include/hw/input/i8042.h
    M include/hw/input/lasips2.h
    M include/hw/input/ps2.h

  Log Message:
  -----------
  Merge tag 'qemu-sparc-20220626' of https://github.com/mcayland/qemu into 
staging

qemu-sparc queue

# -----BEGIN PGP SIGNATURE-----
#
# iQFSBAABCgA8FiEEzGIauY6CIA2RXMnEW8LFb64PMh8FAmK4moUeHG1hcmsuY2F2
# ZS1heWxhbmRAaWxhbmRlLmNvLnVrAAoJEFvCxW+uDzIfaXsH/0+FT9TbHXCplB8h
# gvOETq9r5UscYMqUIbRPv7eFIhhZUfq4mCzpthZHYfMA6Tag0jMqaP5ymATm6Jm/
# GgS/7Fx+14uO54Cu4NwIFylRuDt39cESrBHrVjmXmYzOXx7a040+TPxtHHwSRXiQ
# Vvx5Oo0P8qQfADQe/Y9iray3JBdFMg4yejO37yrdfP58Nh2dzr9dNKw6apY8dwcv
# eTVTqVbYY5AAKOjStpxb0x8dFq/WXttclbeaiSZsK1wnuqhJdUtiMY3UaAfYdMEW
# kputMhTZqV/oopUY0mHmBEUK843s8bSQs2aoCSXLamGTWcrm27XNOsX0f4AYwf/y
# jWBcSvg=
# =0MrK
# -----END PGP SIGNATURE-----
# gpg: Signature made Sun 26 Jun 2022 11:12:29 PM +0530
# gpg:                using RSA key CC621AB98E82200D915CC9C45BC2C56FAE0F321F
# gpg:                issuer "mark.cave-ayland@ilande.co.uk"
# gpg: Good signature from "Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>" 
[undefined]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: CC62 1AB9 8E82 200D 915C  C9C4 5BC2 C56F AE0F 321F

* tag 'qemu-sparc-20220626' of https://github.com/mcayland/qemu: (55 commits)
  artist: set memory region owners for buffers to the artist device
  ps2: remove update_irq() function and update_arg parameter
  pckbd: add QEMU interface comment for I8042 device
  pckbd: switch I8042 device from update_irq() function to PS2 device gpio
  pckbd: add i8042_reset() function to I8042 device
  pckbd: add QEMU interface comment for I8042_MMIO device
  pckbd: switch I8042_MMIO device from update_irq() function to PS2 device gpio
  lasips2: add QEMU interface comment
  lasips2: switch over from update_irq() function to PS2 device gpio
  lasips2: use sysbus IRQ for output IRQ
  lasips2: implement lasips2_realize()
  lasips2: add base property
  lasips2: move initialisation of PS2 ports from lasi_initfn() to lasi_init()
  lasips2: move mapping of LASIPS2 registers to HPPA machine
  lasips2: implement lasips2_init() function
  lasips2: rename lasips2_init() to lasips2_initfn() and update it to return 
the LASIPS2 device
  lasips2: move lasips2 QOM types from lasips2.c to lasips2.h
  lasips2: QOMify LASIPS2State
  pl050: add QEMU interface comment
  pl050: switch over from update_irq() function to PS2 device gpio
  ...

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/40d522490714...097ccbbbaf26



reply via email to

[Prev in Thread] Current Thread [Next in Thread]