blob: 90ef3c7d4a6a701544fd195755e2b7c67996cf00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/**********************************************************************
8042 Keyboard Controller Emulation
This is the keyboard controller used in the IBM AT and further
models. It is a popular controller for PC style keyboards
**********************************************************************/
#ifndef KBDC8042_H
#define KBDC8042_H
enum kbdc8042_type_t
{
KBDC8042_STANDARD,
KBDC8042_PS2, /* another timing of integrated controller */
KBDC8042_AT386 /* hack for at386 driver */
};
struct kbdc8042_interface
{
kbdc8042_type_t type;
void (*set_gate_a20)(running_machine &machine, int a20);
void (*keyboard_interrupt)(running_machine &machine, int state);
void (*set_spkr)(running_machine &machine, int speaker);
int (*get_out2)(running_machine &machine);
};
void kbdc8042_init(running_machine &machine, const struct kbdc8042_interface *intf);
DECLARE_READ8_HANDLER(kbdc8042_8_r);
DECLARE_WRITE8_HANDLER(kbdc8042_8_w);
DECLARE_READ64_HANDLER(kbdc8042_64be_r);
DECLARE_WRITE64_HANDLER(kbdc8042_64be_w);
#endif /* KBDC8042_H */
|