2018-03-09 01:39:24 +03:00
|
|
|
/*
|
|
|
|
* QEMU PS/2 Controller
|
|
|
|
*
|
|
|
|
* Copyright (c) 2003 Fabrice Bellard
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
#ifndef HW_INPUT_I8042_H
|
|
|
|
#define HW_INPUT_I8042_H
|
|
|
|
|
|
|
|
#include "hw/isa/isa.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2018-03-09 01:39:24 +03:00
|
|
|
|
|
|
|
#define TYPE_I8042 "i8042"
|
2020-09-16 21:25:19 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(ISAKBDState, I8042)
|
2018-03-09 01:39:24 +03:00
|
|
|
|
|
|
|
#define I8042_A20_LINE "a20"
|
|
|
|
|
2019-10-17 18:06:05 +03:00
|
|
|
|
2018-03-09 01:39:24 +03:00
|
|
|
void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
|
|
|
|
MemoryRegion *region, ram_addr_t size,
|
|
|
|
hwaddr mask);
|
2019-10-17 18:06:05 +03:00
|
|
|
void i8042_isa_mouse_fake_event(ISAKBDState *isa);
|
2018-03-09 01:39:24 +03:00
|
|
|
void i8042_setup_a20_line(ISADevice *dev, qemu_irq a20_out);
|
|
|
|
|
|
|
|
#endif /* HW_INPUT_I8042_H */
|