aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:41:08 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:12 +0100
commit38f426b8af844c8243b1cd5e6d883c176c527c3b (patch)
tree75913facca686765a8e5baef49c0ef9a12c33ddb /include/hw
parent6eb252d50cf08704adffed7c758a5b95b15c27e9 (diff)
downloadqemu-38f426b8af844c8243b1cd5e6d883c176c527c3b.zip
qemu-38f426b8af844c8243b1cd5e6d883c176c527c3b.tar.gz
qemu-38f426b8af844c8243b1cd5e6d883c176c527c3b.tar.bz2
pckbd: add QEMU interface comment for I8042 device
This describes the I8042 device interface implemented within QEMU. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20220624134109.881989-54-mark.cave-ayland@ilande.co.uk> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/input/i8042.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hw/input/i8042.h b/include/hw/input/i8042.h
index d4747b6..ca933d8 100644
--- a/include/hw/input/i8042.h
+++ b/include/hw/input/i8042.h
@@ -39,6 +39,16 @@ typedef struct KBDState {
hwaddr mask;
} KBDState;
+/*
+ * QEMU interface:
+ * + Named GPIO input "ps2-kbd-input-irq": set to 1 if the downstream PS2
+ * keyboard device has asserted its irq
+ * + Named GPIO input "ps2-mouse-input-irq": set to 1 if the downstream PS2
+ * mouse device has asserted its irq
+ * + Named GPIO output "a20": A20 line for x86 PCs
+ * + Unnamed GPIO output 0-1: i8042 output irqs for keyboard (0) or mouse (1)
+ */
+
#define TYPE_I8042 "i8042"
OBJECT_DECLARE_SIMPLE_TYPE(ISAKBDState, I8042)