Skip to content
Snippets Groups Projects
Commit cb5827ce authored by Mark Cave-Ayland's avatar Mark Cave-Ayland
Browse files

lasips2: introduce new LASIPS2_MOUSE_PORT QOM type


This will be soon be used to hold the underlying PS2_MOUSE_DEVICE object.

Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: default avatarHelge Deller <deller@gmx.de>
Acked-by: default avatarHelge Deller <deller@gmx.de>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Message-Id: <20220712215251.7944-19-mark.cave-ayland@ilande.co.uk>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
parent ef90a06f
No related branches found
No related tags found
No related merge requests found
......@@ -324,11 +324,18 @@ static const TypeInfo lasips2_kbd_port_info = {
.instance_size = sizeof(LASIPS2KbdPort),
};
static const TypeInfo lasips2_mouse_port_info = {
.name = TYPE_LASIPS2_MOUSE_PORT,
.parent = TYPE_LASIPS2_PORT,
.instance_size = sizeof(LASIPS2MousePort),
};
static void lasips2_register_types(void)
{
type_register_static(&lasips2_info);
type_register_static(&lasips2_port_info);
type_register_static(&lasips2_kbd_port_info);
type_register_static(&lasips2_mouse_port_info);
}
type_init(lasips2_register_types)
......@@ -50,6 +50,13 @@ struct LASIPS2KbdPort {
LASIPS2Port parent_obj;
};
#define TYPE_LASIPS2_MOUSE_PORT "lasips2-mouse-port"
OBJECT_DECLARE_SIMPLE_TYPE(LASIPS2MousePort, LASIPS2_MOUSE_PORT)
struct LASIPS2MousePort {
LASIPS2Port parent_obj;
};
struct LASIPS2State {
SysBusDevice parent_obj;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment