From ef90a06f9961239d90d5a84c59078e8417bde77c Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Tue, 12 Jul 2022 22:52:28 +0100 Subject: lasips2: introduce new LASIPS2_KBD_PORT QOM type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be soon be used to hold the underlying PS2_KBD_DEVICE object. Signed-off-by: Mark Cave-Ayland Tested-by: Helge Deller Acked-by: Helge Deller Reviewed-by: Peter Maydell Message-Id: <20220712215251.7944-18-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé --- include/hw/input/lasips2.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/hw/input') diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h index f451408..504e2c0 100644 --- a/include/hw/input/lasips2.h +++ b/include/hw/input/lasips2.h @@ -43,6 +43,13 @@ struct LASIPS2Port { bool irq; }; +#define TYPE_LASIPS2_KBD_PORT "lasips2-kbd-port" +OBJECT_DECLARE_SIMPLE_TYPE(LASIPS2KbdPort, LASIPS2_KBD_PORT) + +struct LASIPS2KbdPort { + LASIPS2Port parent_obj; +}; + struct LASIPS2State { SysBusDevice parent_obj; -- cgit v1.1