1 #ifndef __LINUX_PS2MULT_H
2 #define __LINUX_PS2MULT_H
4 #define kbd_request_region() ps2mult_init()
5 #define kbd_request_irq(handler) ps2mult_request_irq(handler)
7 #define kbd_read_input() ps2mult_read_input()
8 #define kbd_read_status() ps2mult_read_status()
9 #define kbd_write_output(val) ps2mult_write_output(val)
10 #define kbd_write_command(val) ps2mult_write_command(val)
12 #define aux_request_irq(hand, dev_id) 0
13 #define aux_free_irq(dev_id)
15 #define PS2MULT_KB_SELECTOR 0xA0
16 #define PS2MULT_MS_SELECTOR 0xA1
17 #define PS2MULT_ESCAPE 0x7D
18 #define PS2MULT_BSYNC 0x7E
19 #define PS2MULT_SESSION_START 0x55
20 #define PS2MULT_SESSION_END 0x56
22 #define PS2BUF_SIZE 512 /* power of 2, please */
24 #ifndef CONFIG_PS2MULT_DELAY
25 #define CONFIG_PS2MULT_DELAY (CONFIG_SYS_HZ/2) /* Initial delay */
28 /* PS/2 controller interface (include/asm/keyboard.h)
30 extern int ps2mult_init (void);
31 extern int ps2mult_request_irq(void (*handler)(void *));
32 extern u_char ps2mult_read_input(void);
33 extern u_char ps2mult_read_status(void);
34 extern void ps2mult_write_output(u_char val);
35 extern void ps2mult_write_command(u_char val);
37 extern void ps2mult_early_init (void);
38 extern void ps2mult_callback (int in_cnt);
40 /* Simple serial interface
42 extern int ps2ser_init(void);
43 extern void ps2ser_putc(int chr);
44 extern int ps2ser_getc(void);
45 extern int ps2ser_check(void);
48 /* Serial related stuff
56 #endif /* __LINUX_PS2MULT_H */