aboutsummaryrefslogtreecommitdiff
path: root/include/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:40:23 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:11 +0100
commit108cb22e4837a36bc22959a612f8bb50471139f6 (patch)
tree52332e995f93cd915d043b1e5c1164a6244feac9 /include/hw/input
parent494145b28644dee66c1125c33ba55a02d5585db7 (diff)
downloadqemu-108cb22e4837a36bc22959a612f8bb50471139f6.zip
qemu-108cb22e4837a36bc22959a612f8bb50471139f6.tar.gz
qemu-108cb22e4837a36bc22959a612f8bb50471139f6.tar.bz2
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')
-rw-r--r--include/hw/input/ps2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/ps2.h b/include/hw/input/ps2.h
index aef892b..4be27de 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;
};
/*