diff options
| author | Mark Cave-Ayland | 2022-06-24 15:40:35 +0200 |
|---|---|---|
| committer | Mark Cave-Ayland | 2022-06-26 19:40:11 +0200 |
| commit | c9849a71b997a3b96757b19642b5b9a56c2ccb75 (patch) | |
| tree | ef3bc7801c6ce430b2e7c8d5f5309ba13ccbc1dd /include/hw/input | |
| parent | pckbd: move KBDState from pckbd.c to i8042.h (diff) | |
| download | qemu-c9849a71b997a3b96757b19642b5b9a56c2ccb75.tar.gz qemu-c9849a71b997a3b96757b19642b5b9a56c2ccb75.tar.xz qemu-c9849a71b997a3b96757b19642b5b9a56c2ccb75.zip | |
pckbd: move ISAKBDState from pckbd.c to i8042.h
This allows the QOM types in pckbd.c to be used elsewhere by simply including
i8042.h.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220624134109.881989-21-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/input')
| -rw-r--r-- | include/hw/input/i8042.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hw/input/i8042.h b/include/hw/input/i8042.h index 84b5aa7f23..a246250d1f 100644 --- a/include/hw/input/i8042.h +++ b/include/hw/input/i8042.h @@ -39,6 +39,16 @@ typedef struct KBDState { #define TYPE_I8042 "i8042" OBJECT_DECLARE_SIMPLE_TYPE(ISAKBDState, I8042) +struct ISAKBDState { + ISADevice parent_obj; + + KBDState kbd; + bool kbd_throttle; + MemoryRegion io[2]; + uint8_t kbd_irq; + uint8_t mouse_irq; +}; + #define I8042_A20_LINE "a20" |
