diff options
| author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-06-24 14:40:23 +0100 |
|---|---|---|
| committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-06-26 18:40:11 +0100 |
| commit | 108cb22e4837a36bc22959a612f8bb50471139f6 (patch) | |
| tree | 52332e995f93cd915d043b1e5c1164a6244feac9 /include/hw/input/ps2.h | |
| parent | 494145b28644dee66c1125c33ba55a02d5585db7 (diff) | |
| download | focaccia-qemu-108cb22e4837a36bc22959a612f8bb50471139f6.tar.gz focaccia-qemu-108cb22e4837a36bc22959a612f8bb50471139f6.zip | |
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>
Diffstat (limited to 'include/hw/input/ps2.h')
| -rw-r--r-- | include/hw/input/ps2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/ps2.h b/include/hw/input/ps2.h index aef892b5e6..4be27de316 100644 --- a/include/hw/input/ps2.h +++ b/include/hw/input/ps2.h @@ -35,6 +35,8 @@ struct PS2DeviceClass { SysBusDeviceClass parent_class; + + DeviceReset parent_reset; }; /* |