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
nexedi
linux
Commits
174beef5
Commit
174beef5
authored
Aug 26, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/char/keyboard.c: Add sparc{32,64} emulate_raw support.
parent
1a1b6441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
drivers/char/keyboard.c
drivers/char/keyboard.c
+18
-1
No files found.
drivers/char/keyboard.c
View file @
174beef5
...
...
@@ -859,7 +859,7 @@ static void kbd_bh(unsigned long dummy)
DECLARE_TASKLET_DISABLED
(
keyboard_tasklet
,
kbd_bh
,
0
);
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) || defined(CONFIG_MIPS) || defined(CONFIG_PPC)
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) || defined(CONFIG_MIPS) || defined(CONFIG_PPC)
|| defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
static
int
x86_sysrq_alt
=
0
;
...
...
@@ -884,6 +884,11 @@ static unsigned short x86_keycodes[256] =
extern
int
mac_hid_mouse_emulate_buttons
(
int
,
int
,
int
);
#endif
/* CONFIG_MAC_EMUMOUSEBTN */
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
static
int
sparc_l1_a_state
=
0
;
extern
void
sun_do_break
(
void
);
#endif
static
int
emulate_raw
(
struct
vc_data
*
vc
,
unsigned
int
keycode
,
unsigned
char
up_flag
)
{
...
...
@@ -907,6 +912,13 @@ static int emulate_raw(struct vc_data *vc, unsigned int keycode,
return
0
;
}
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
if
(
keycode
==
KEY_A
&&
sparc_l1_a_state
)
{
sparc_l1_a_state
=
0
;
sun_do_break
();
}
#endif
if
(
x86_keycodes
[
keycode
]
&
0x100
)
put_queue
(
vc
,
0xe0
);
...
...
@@ -920,6 +932,11 @@ static int emulate_raw(struct vc_data *vc, unsigned int keycode,
if
(
keycode
==
KEY_LEFTALT
||
keycode
==
KEY_RIGHTALT
)
x86_sysrq_alt
=
!
up_flag
;
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
if
(
keycode
==
KEY_STOP
)
sparc_l1_a_state
=
!
up_flag
;
#endif
return
0
;
}
...
...
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