]>
Commit | Line | Data |
---|---|---|
eeb5cfe4 | 1 | --- linux-2.4.19/drivers/char/pc_keyb.c~ Sat Oct 19 17:06:29 2002 |
2 | +++ linux-2.4.19/drivers/char/pc_keyb.c Sat Oct 19 17:06:29 2002 | |
3 | @@ -228,7 +228,14 @@ | |
4 | #define E0_MSLW 125 | |
5 | #define E0_MSRW 126 | |
6 | #define E0_MSTM 127 | |
7 | - | |
8 | +/* | |
9 | + * Some keyboards have Power/Sleep/Wake buttons: | |
10 | + * e0 5e for Power, e0 5f for sleep, e0 63 for wake | |
11 | +*/ | |
12 | +#define E0_POWER 124 | |
13 | +#define E0_SLEEP 125 | |
14 | +#define E0_WAKE 126 | |
15 | + | |
16 | static unsigned char e0_keys[128] = { | |
17 | 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00-0x07 */ | |
18 | 0, 0, 0, 0, 0, 0, 0, 0, /* 0x08-0x0f */ | |
19 | @@ -241,8 +248,8 @@ | |
20 | E0_DO, E0_F17, 0, 0, 0, 0, E0_BREAK, E0_HOME, /* 0x40-0x47 */ | |
21 | E0_UP, E0_PGUP, 0, E0_LEFT, E0_OK, E0_RIGHT, E0_KPMINPLUS, E0_END,/* 0x48-0x4f */ | |
22 | E0_DOWN, E0_PGDN, E0_INS, E0_DEL, 0, 0, 0, 0, /* 0x50-0x57 */ | |
23 | - 0, 0, 0, E0_MSLW, E0_MSRW, E0_MSTM, 0, 0, /* 0x58-0x5f */ | |
24 | - 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60-0x67 */ | |
25 | + 0, 0, 0, E0_MSLW, E0_MSRW, E0_MSTM, E0_POWER, E0_SLEEP, /* 0x58-0x5f */ | |
26 | + 0, 0, 0, E0_WAKE, 0, 0, 0, 0, /* 0x60-0x67 */ | |
27 | 0, 0, 0, 0, 0, 0, 0, E0_MACRO, /* 0x68-0x6f */ | |
28 | 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70-0x77 */ | |
29 | 0, 0, 0, 0, 0, 0, 0, 0 /* 0x78-0x7f */ |