root / hw / ps2.h @ fa2ddcb4
History | View | Annotate | Download (1.6 kB)
1 | fd65f595 | Wanpeng Li | /*
|
---|---|---|---|
2 | fd65f595 | Wanpeng Li | * QEMU PS/2 keyboard/mouse emulation
|
3 | fd65f595 | Wanpeng Li | *
|
4 | fd65f595 | Wanpeng Li | * Copyright (C) 2003 Fabrice Bellard
|
5 | fd65f595 | Wanpeng Li | *
|
6 | fd65f595 | Wanpeng Li | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 | fd65f595 | Wanpeng Li | * of this software and associated documentation files (the "Software"), to deal
|
8 | fd65f595 | Wanpeng Li | * in the Software without restriction, including without limitation the rights
|
9 | fd65f595 | Wanpeng Li | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10 | fd65f595 | Wanpeng Li | * copies of the Software, and to permit persons to whom the Software is
|
11 | fd65f595 | Wanpeng Li | * furnished to do so, subject to the following conditions:
|
12 | fd65f595 | Wanpeng Li | *
|
13 | fd65f595 | Wanpeng Li | * The above copyright notice and this permission notice shall be included in
|
14 | fd65f595 | Wanpeng Li | * all copies or substantial portions of the Software.
|
15 | fd65f595 | Wanpeng Li | *
|
16 | fd65f595 | Wanpeng Li | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 | fd65f595 | Wanpeng Li | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 | fd65f595 | Wanpeng Li | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 | fd65f595 | Wanpeng Li | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 | fd65f595 | Wanpeng Li | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21 | fd65f595 | Wanpeng Li | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22 | fd65f595 | Wanpeng Li | * THE SOFTWARE.
|
23 | fd65f595 | Wanpeng Li | */
|
24 | fd65f595 | Wanpeng Li | |
25 | fd65f595 | Wanpeng Li | #ifndef HW_PS2_H
|
26 | fd65f595 | Wanpeng Li | #define HW_PS2_H
|
27 | fd65f595 | Wanpeng Li | |
28 | 87ecb68b | pbrook | /* ps2.c */
|
29 | 87ecb68b | pbrook | void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg); |
30 | 87ecb68b | pbrook | void *ps2_mouse_init(void (*update_irq)(void *, int), void *update_arg); |
31 | 87ecb68b | pbrook | void ps2_write_mouse(void *, int val); |
32 | 87ecb68b | pbrook | void ps2_write_keyboard(void *, int val); |
33 | 87ecb68b | pbrook | uint32_t ps2_read_data(void *);
|
34 | 87ecb68b | pbrook | void ps2_queue(void *, int b); |
35 | 87ecb68b | pbrook | void ps2_keyboard_set_translation(void *opaque, int mode); |
36 | 87ecb68b | pbrook | void ps2_mouse_fake_event(void *opaque); |
37 | fd65f595 | Wanpeng Li | |
38 | fd65f595 | Wanpeng Li | #endif /* !HW_PS2_H */ |