Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
20c49e92
Commit
20c49e92
authored
Oct 07, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix LAlt-RAlt combination on AT keyboards (generated "unknown scancode" message).
parent
c540dd93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+4
-4
No files found.
drivers/input/serio/i8042.c
View file @
20c49e92
...
...
@@ -63,7 +63,7 @@ struct timer_list i8042_timer;
extern
struct
pt_regs
*
kbd_pt_regs
;
static
unsigned
long
i8042_unxlate_seen
[
128
/
BITS_PER_LONG
];
static
unsigned
long
i8042_unxlate_seen
[
256
/
BITS_PER_LONG
];
static
unsigned
char
i8042_unxlate_table
[
128
]
=
{
0
,
118
,
22
,
30
,
38
,
37
,
46
,
54
,
61
,
62
,
70
,
69
,
78
,
85
,
102
,
13
,
21
,
29
,
36
,
45
,
44
,
53
,
60
,
67
,
68
,
77
,
84
,
91
,
90
,
20
,
28
,
27
,
...
...
@@ -407,14 +407,14 @@ static void i8042_interrupt(int irq, void *dev_id, struct pt_regs *regs)
}
if
(
data
>
0x7f
)
{
if
(
test_and_clear_bit
(
data
&
0x7f
,
i8042_unxlate_seen
))
{
if
(
test_and_clear_bit
(
(
data
&
0x7f
)
|
(
i8042_last_e0
<<
7
)
,
i8042_unxlate_seen
))
{
serio_interrupt
(
&
i8042_kbd_port
,
0xf0
,
dfl
);
if
(
i8042_last_e0
&&
(
data
==
0xaa
||
data
==
0xb6
))
set_bit
(
data
&
0x7f
,
i8042_unxlate_seen
);
set_bit
(
(
data
&
0x7f
)
|
(
i8042_last_e0
<<
7
)
,
i8042_unxlate_seen
);
data
=
i8042_unxlate_table
[
data
&
0x7f
];
}
}
else
{
set_bit
(
data
,
i8042_unxlate_seen
);
set_bit
(
data
|
(
i8042_last_e0
<<
7
)
,
i8042_unxlate_seen
);
data
=
i8042_unxlate_table
[
data
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment