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
29bb651a
Commit
29bb651a
authored
Jul 03, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle slowly responding PS/2 mice.
parent
0d244d10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/input/mouse/psmouse.c
drivers/input/mouse/psmouse.c
+4
-5
No files found.
drivers/input/mouse/psmouse.c
View file @
29bb651a
/*
* $Id: psmouse.c,v 1.1
6 2002/01/26 19:20:36
vojtech Exp $
* $Id: psmouse.c,v 1.1
8 2002/03/13 10:03:43
vojtech Exp $
*
* Copyright (c) 1999-2001 Vojtech Pavlik
*/
...
...
@@ -31,7 +31,6 @@
#include <linux/input.h>
#include <linux/serio.h>
#include <linux/init.h>
#include <linux/tqueue.h>
MODULE_AUTHOR
(
"Vojtech Pavlik <vojtech@ucw.cz>"
);
MODULE_DESCRIPTION
(
"PS/2 mouse driver"
);
...
...
@@ -201,7 +200,7 @@ static void psmouse_interrupt(struct serio *serio, unsigned char data, unsigned
return
;
}
if
(
psmouse
->
pktcnt
&&
jiffies
-
psmouse
->
last
>
2
)
{
if
(
psmouse
->
pktcnt
&&
time_after
(
jiffies
,
psmouse
->
last
+
HZ
/
20
)
)
{
printk
(
KERN_WARNING
"psmouse.c: Lost synchronization, throwing %d bytes away.
\n
"
,
psmouse
->
pktcnt
);
psmouse
->
pktcnt
=
0
;
}
...
...
@@ -230,7 +229,7 @@ static void psmouse_interrupt(struct serio *serio, unsigned char data, unsigned
static
int
psmouse_sendbyte
(
struct
psmouse
*
psmouse
,
unsigned
char
byte
)
{
int
timeout
=
1000
;
/* 1
0 msec */
int
timeout
=
1000
0
;
/* 10
0 msec */
psmouse
->
ack
=
0
;
psmouse
->
acking
=
1
;
...
...
@@ -247,7 +246,7 @@ static int psmouse_sendbyte(struct psmouse *psmouse, unsigned char byte)
static
int
psmouse_command
(
struct
psmouse
*
psmouse
,
unsigned
char
*
param
,
int
command
)
{
int
timeout
=
100000
;
/* 1
00 msec */
int
timeout
=
500000
;
/* 5
00 msec */
int
send
=
(
command
>>
12
)
&
0xf
;
int
receive
=
(
command
>>
8
)
&
0xf
;
int
i
;
...
...
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