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>
This commit is contained in:
Mark Cave-Ayland 2022-07-12 22:52:18 +01:00
parent 3d5e0995ce
commit 475a4d463b
2 changed files with 9 additions and 1 deletions

View file

@ -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;