summaryrefslogtreecommitdiffstats
path: root/include/hw/input/pl050.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-07-12 23:52:21 +0200
committerMark Cave-Ayland2022-07-18 20:28:45 +0200
commit6a05d0b3d1474ad5fd7ba1cc7040dffbc3c15a11 (patch)
tree4f49f6d33ebe2f20b0918f9b1cbf053600914e44 /include/hw/input/pl050.h
parentpl050: introduce pl050_mouse_class_init() and pl050_mouse_realize() (diff)
downloadqemu-6a05d0b3d1474ad5fd7ba1cc7040dffbc3c15a11.tar.gz
qemu-6a05d0b3d1474ad5fd7ba1cc7040dffbc3c15a11.tar.xz
qemu-6a05d0b3d1474ad5fd7ba1cc7040dffbc3c15a11.zip
pl050: don't use legacy ps2_kbd_init() function
Instantiate the PS2 keyboard device within PL050KbdState using object_initialize_child() in pl050_kbd_init() and realize it in pl050_kbd_realize() accordingly. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220712215251.7944-11-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw/input/pl050.h')
-rw-r--r--include/hw/input/pl050.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/pl050.h b/include/hw/input/pl050.h
index 203f03a194..28f6216dc3 100644
--- a/include/hw/input/pl050.h
+++ b/include/hw/input/pl050.h
@@ -43,6 +43,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(PL050KbdState, PL050_KBD_DEVICE)
struct PL050KbdState {
PL050State parent_obj;
+
+ PS2KbdState kbd;
};
#define TYPE_PL050_MOUSE_DEVICE "pl050_mouse"