aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-12 22:52:18 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-18 19:28:45 +0100
commit475a4d463b20ba64cf2d87ac75c6a536b018cfa3 (patch)
tree5caad855e861598c811c3ab9167eef88aa0c8461 /hw
parent3d5e0995cef7722144e89f4623b7a513f92af068 (diff)
downloadqemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.zip
qemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.tar.gz
qemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.tar.bz2
pl050: introduce PL050DeviceClass for the PL050 device
This will soon be used to store the reference to the PL050 parent device for PL050_KBD_DEVICE and PL050_MOUSE_DEVICE. 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-8-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/input/pl050.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/input/pl050.c b/hw/input/pl050.c
index e32d860..d7796b7 100644
--- a/hw/input/pl050.c
+++ b/hw/input/pl050.c
@@ -216,6 +216,8 @@ static const TypeInfo pl050_type_info = {
.parent = TYPE_SYS_BUS_DEVICE,
.instance_init = pl050_init,
.instance_size = sizeof(PL050State),
+ .class_init = pl050_class_init,
+ .class_size = sizeof(PL050DeviceClass),
.abstract = true,
.class_init = pl050_class_init,
};