xref: /qemu/include/hw/input/i8042.h (revision e3a6e0da)
1 /*
2  * QEMU PS/2 Controller
3  *
4  * Copyright (c) 2003 Fabrice Bellard
5  *
6  * SPDX-License-Identifier: MIT
7  */
8 #ifndef HW_INPUT_I8042_H
9 #define HW_INPUT_I8042_H
10 
11 #include "hw/isa/isa.h"
12 #include "qom/object.h"
13 
14 #define TYPE_I8042 "i8042"
15 typedef struct ISAKBDState ISAKBDState;
16 DECLARE_INSTANCE_CHECKER(ISAKBDState, I8042,
17                          TYPE_I8042)
18 
19 #define I8042_A20_LINE "a20"
20 
21 
22 void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
23                    MemoryRegion *region, ram_addr_t size,
24                    hwaddr mask);
25 void i8042_isa_mouse_fake_event(ISAKBDState *isa);
26 void i8042_setup_a20_line(ISADevice *dev, qemu_irq a20_out);
27 
28 #endif /* HW_INPUT_I8042_H */
29