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
8c244800
Commit
8c244800
authored
Jul 25, 2002
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Osamu Tomita <tomita@cinet.co.jp>:
2.5.26-27 Logitech Busmouse driver doesn't work. This patch fix it.
parent
90ced6f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/input/mouse/logibm.c
drivers/input/mouse/logibm.c
+7
-6
No files found.
drivers/input/mouse/logibm.c
View file @
8c244800
...
@@ -121,13 +121,14 @@ static void logibm_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -121,13 +121,14 @@ static void logibm_interrupt(int irq, void *dev_id, struct pt_regs *regs)
outb
(
LOGIBM_READ_Y_HIGH
,
LOGIBM_CONTROL_PORT
);
outb
(
LOGIBM_READ_Y_HIGH
,
LOGIBM_CONTROL_PORT
);
buttons
=
inb
(
LOGIBM_DATA_PORT
);
buttons
=
inb
(
LOGIBM_DATA_PORT
);
dy
|=
(
buttons
&
0xf
)
<<
4
;
dy
|=
(
buttons
&
0xf
)
<<
4
;
buttons
=
~
buttons
;
buttons
=
~
buttons
>>
5
;
input_report_rel
(
&
logibm_dev
,
REL_X
,
dx
);
input_report_rel
(
&
logibm_dev
,
REL_X
,
dx
);
input_report_rel
(
&
logibm_dev
,
REL_Y
,
255
-
dy
);
input_report_rel
(
&
logibm_dev
,
REL_Y
,
dy
);
input_report_key
(
&
logibm_dev
,
BTN_MIDDLE
,
buttons
&
1
);
input_report_key
(
&
logibm_dev
,
BTN_RIGHT
,
buttons
&
1
);
input_report_key
(
&
logibm_dev
,
BTN_LEFT
,
buttons
&
2
);
input_report_key
(
&
logibm_dev
,
BTN_MIDDLE
,
buttons
&
2
);
input_report_key
(
&
logibm_dev
,
BTN_RIGHT
,
buttons
&
4
);
input_report_key
(
&
logibm_dev
,
BTN_LEFT
,
buttons
&
4
);
outb
(
LOGIBM_ENABLE_IRQ
,
LOGIBM_CONTROL_PORT
);
}
}
#ifndef MODULE
#ifndef MODULE
...
@@ -143,7 +144,7 @@ __setup("logibm_irq=", logibm_setup);
...
@@ -143,7 +144,7 @@ __setup("logibm_irq=", logibm_setup);
static
int
__init
logibm_init
(
void
)
static
int
__init
logibm_init
(
void
)
{
{
if
(
request_region
(
LOGIBM_BASE
,
LOGIBM_EXTENT
,
"logibm"
))
{
if
(
!
request_region
(
LOGIBM_BASE
,
LOGIBM_EXTENT
,
"logibm"
))
{
printk
(
KERN_ERR
"logibm.c: Can't allocate ports at %#x
\n
"
,
LOGIBM_BASE
);
printk
(
KERN_ERR
"logibm.c: Can't allocate ports at %#x
\n
"
,
LOGIBM_BASE
);
return
-
EBUSY
;
return
-
EBUSY
;
}
}
...
...
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