summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-07-12 23:52:36 +0200
committerMark Cave-Ayland2022-07-18 20:28:46 +0200
commit62201e4336f4accd810c6aff0ee6e921f964192c (patch)
treeb2ee1d332d830885697d3f4a64d68f1582500555 /hw
parentlasips2: introduce port IRQ and new lasips2_port_init() function (diff)
downloadqemu-62201e4336f4accd810c6aff0ee6e921f964192c.tar.gz
qemu-62201e4336f4accd810c6aff0ee6e921f964192c.tar.xz
qemu-62201e4336f4accd810c6aff0ee6e921f964192c.zip
lasips2: introduce LASIPS2PortDeviceClass for the LASIPS2_PORT device
This will soon be used to store the reference to the LASIPS2_PORT parent device for LASIPS2_KBD_PORT and LASIPS2_MOUSE_PORT. 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-26-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/input/lasips2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index 6b53153838..10494a2322 100644
--- a/hw/input/lasips2.c
+++ b/hw/input/lasips2.c
@@ -334,6 +334,8 @@ static const TypeInfo lasips2_port_info = {
.parent = TYPE_DEVICE,
.instance_init = lasips2_port_init,
.instance_size = sizeof(LASIPS2Port),
+ .class_init = lasips2_port_class_init,
+ .class_size = sizeof(LASIPS2PortDeviceClass),
.abstract = true,
};