summaryrefslogtreecommitdiffstats
path: root/include/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-07-12 23:52:37 +0200
committerMark Cave-Ayland2022-07-18 20:28:46 +0200
commitd0af5d6a400974ee508e9ca3da6b1784bea5322a (patch)
treede9a787652a598acf1a5f20475e39f235a8494fe /include/hw/input
parentlasips2: introduce LASIPS2PortDeviceClass for the LASIPS2_PORT device (diff)
downloadqemu-d0af5d6a400974ee508e9ca3da6b1784bea5322a.tar.gz
qemu-d0af5d6a400974ee508e9ca3da6b1784bea5322a.tar.xz
qemu-d0af5d6a400974ee508e9ca3da6b1784bea5322a.zip
lasips2: add named input gpio to port for downstream PS2 device IRQ
The named input gpio is to be connected to the IRQ output of the downstream PS2 device and used to drive the port IRQ. Initialise the named input gpio in lasips2_port_init() and add new lasips2_port_class_init() and lasips2_port_realize() functions to connect the PS2 device output gpio to the new named input gpio. Note that the reference to lasips2_port_realize() is stored in LASIPS2PortDeviceClass but not yet used. 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-27-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw/input')
-rw-r--r--include/hw/input/lasips2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h
index 426aa1371f..35e0aa26eb 100644
--- a/include/hw/input/lasips2.h
+++ b/include/hw/input/lasips2.h
@@ -30,6 +30,8 @@ OBJECT_DECLARE_TYPE(LASIPS2Port, LASIPS2PortDeviceClass, LASIPS2_PORT)
struct LASIPS2PortDeviceClass {
DeviceClass parent;
+
+ DeviceRealize parent_realize;
};
typedef struct LASIPS2State LASIPS2State;