diff options
author | Mark Cave-Ayland | 2022-07-12 23:52:18 +0200 |
---|---|---|
committer | Mark Cave-Ayland | 2022-07-18 20:28:45 +0200 |
commit | 475a4d463b20ba64cf2d87ac75c6a536b018cfa3 (patch) | |
tree | 5caad855e861598c811c3ab9167eef88aa0c8461 /include/hw/input/pl050.h | |
parent | pl050: move logic from pl050_realize() to pl050_init() (diff) | |
download | qemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.tar.gz qemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.tar.xz qemu-475a4d463b20ba64cf2d87ac75c6a536b018cfa3.zip |
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 'include/hw/input/pl050.h')
-rw-r--r-- | include/hw/input/pl050.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hw/input/pl050.h b/include/hw/input/pl050.h index bb0e87ff45..203f03a194 100644 --- a/include/hw/input/pl050.h +++ b/include/hw/input/pl050.h @@ -16,8 +16,14 @@ #include "hw/input/ps2.h" #include "hw/irq.h" +struct PL050DeviceClass { + SysBusDeviceClass parent_class; + + DeviceRealize parent_realize; +}; + #define TYPE_PL050 "pl050" -OBJECT_DECLARE_SIMPLE_TYPE(PL050State, PL050) +OBJECT_DECLARE_TYPE(PL050State, PL050DeviceClass, PL050) struct PL050State { SysBusDevice parent_obj; |