[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 50/54] pckbd: add QEMU interface comment for I8042_MMIO device
From: |
Mark Cave-Ayland |
Subject: |
[PATCH v2 50/54] pckbd: add QEMU interface comment for I8042_MMIO device |
Date: |
Fri, 24 Jun 2022 14:41:05 +0100 |
This describes the I8042_MMIO device interface implemented within QEMU.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
include/hw/input/i8042.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/hw/input/i8042.h b/include/hw/input/i8042.h
index 4ba2664377..d4747b62b8 100644
--- a/include/hw/input/i8042.h
+++ b/include/hw/input/i8042.h
@@ -52,6 +52,17 @@ struct ISAKBDState {
uint8_t mouse_irq;
};
+/*
+ * QEMU interface:
+ * + sysbus MMIO region 0: MemoryRegion defining the command/status/data
+ * registers (access determined by mask property and access type)
+ * + 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
+ * + Unnamed GPIO output 0-1: i8042 output irqs for keyboard (0) or mouse (1)
+ */
+
#define TYPE_I8042_MMIO "i8042-mmio"
OBJECT_DECLARE_SIMPLE_TYPE(MMIOKBDState, I8042_MMIO)
--
2.30.2
- [PATCH v2 46/54] lasips2: use sysbus IRQ for output IRQ, (continued)
- [PATCH v2 46/54] lasips2: use sysbus IRQ for output IRQ, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 47/54] lasips2: switch over from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 48/54] lasips2: add QEMU interface comment, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 49/54] pckbd: switch I8042_MMIO device from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 44/54] lasips2: add base property, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 50/54] pckbd: add QEMU interface comment for I8042_MMIO device,
Mark Cave-Ayland <=
- [PATCH v2 51/54] pckbd: add i8042_reset() function to I8042 device, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 52/54] pckbd: switch I8042 device from update_irq() function to PS2 device gpio, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 53/54] pckbd: add QEMU interface comment for I8042 device, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 54/54] ps2: remove update_irq() function and update_arg parameter, Mark Cave-Ayland, 2022/06/24