| #include "chardev/char-fe.h" |
| #include "chardev/char-serial.h" |
| #define ESCC(obj) OBJECT_CHECK(ESCCState, (obj), TYPE_ESCC) |
| escc_serial, escc_kbd, escc_mouse, |
| #define ESCC_SERIO_QUEUE_SIZE 256 |
| uint8_t data[ESCC_SERIO_QUEUE_SIZE]; |
| #define ESCC_SERIAL_REGS 16 |
| typedef struct ESCCChannelState { |
| uint32_t rxint, txint, rxint_under_svc, txint_under_svc; |
| struct ESCCChannelState *otherchn; |
| uint8_t wregs[ESCC_SERIAL_REGS], rregs[ESCC_SERIAL_REGS]; |
| int e0_mode, led_mode, caps_lock_mode, num_lock_mode; |
| ESCCChnID chn; /* this channel, A (base+4) or B (base+0) */ |
| QemuInputHandlerState *hs; |
| typedef struct ESCCState { |
| struct ESCCChannelState chn[2]; |