mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
pckbd: move KBDState 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-20-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
32be01575d
commit
77adda52ef
2 changed files with 25 additions and 24 deletions
|
@ -11,6 +11,31 @@
|
|||
#include "hw/isa/isa.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
typedef struct KBDState {
|
||||
uint8_t write_cmd; /* if non zero, write data to port 60 is expected */
|
||||
uint8_t status;
|
||||
uint8_t mode;
|
||||
uint8_t outport;
|
||||
uint32_t migration_flags;
|
||||
uint32_t obsrc;
|
||||
bool outport_present;
|
||||
bool extended_state;
|
||||
bool extended_state_loaded;
|
||||
/* Bitmask of devices with data available. */
|
||||
uint8_t pending;
|
||||
uint8_t obdata;
|
||||
uint8_t cbdata;
|
||||
uint8_t pending_tmp;
|
||||
void *kbd;
|
||||
void *mouse;
|
||||
QEMUTimer *throttle_timer;
|
||||
|
||||
qemu_irq irq_kbd;
|
||||
qemu_irq irq_mouse;
|
||||
qemu_irq a20_out;
|
||||
hwaddr mask;
|
||||
} KBDState;
|
||||
|
||||
#define TYPE_I8042 "i8042"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ISAKBDState, I8042)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue