Skip to content

Commit

Permalink
pckbd: add QEMU interface comment for I8042_MMIO device
Browse files Browse the repository at this point in the history
This describes the I8042_MMIO device interface implemented within QEMU.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220624134109.881989-51-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
mcayland committed Jun 26, 2022
1 parent cb663a8 commit 57de3c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/hw/input/i8042.h
Expand Up @@ -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)

Expand Down

0 comments on commit 57de3c1

Please sign in to comment.