Root/
1 | #ifndef _I8042_PPCIO_H |
2 | #define _I8042_PPCIO_H |
3 | |
4 | /* |
5 | * This program is free software; you can redistribute it and/or modify it |
6 | * under the terms of the GNU General Public License version 2 as published by |
7 | * the Free Software Foundation. |
8 | */ |
9 | |
10 | #if defined(CONFIG_WALNUT) |
11 | |
12 | #define I8042_KBD_IRQ 25 |
13 | #define I8042_AUX_IRQ 26 |
14 | |
15 | #define I8042_KBD_PHYS_DESC "walnutps2/serio0" |
16 | #define I8042_AUX_PHYS_DESC "walnutps2/serio1" |
17 | #define I8042_MUX_PHYS_DESC "walnutps2/serio%d" |
18 | |
19 | extern void *kb_cs; |
20 | extern void *kb_data; |
21 | |
22 | #define I8042_COMMAND_REG (*(int *)kb_cs) |
23 | #define I8042_DATA_REG (*(int *)kb_data) |
24 | |
25 | static inline int i8042_read_data(void) |
26 | { |
27 | return readb(kb_data); |
28 | } |
29 | |
30 | static inline int i8042_read_status(void) |
31 | { |
32 | return readb(kb_cs); |
33 | } |
34 | |
35 | static inline void i8042_write_data(int val) |
36 | { |
37 | writeb(val, kb_data); |
38 | } |
39 | |
40 | static inline void i8042_write_command(int val) |
41 | { |
42 | writeb(val, kb_cs); |
43 | } |
44 | |
45 | static inline int i8042_platform_init(void) |
46 | { |
47 | i8042_reset = 1; |
48 | return 0; |
49 | } |
50 | |
51 | static inline void i8042_platform_exit(void) |
52 | { |
53 | } |
54 | |
55 | #else |
56 | |
57 | #include "i8042-io.h" |
58 | |
59 | #endif |
60 | |
61 | #endif /* _I8042_PPCIO_H */ |
62 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9