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
2a5ae84e
Commit
2a5ae84e
authored
Feb 12, 2003
by
Vojtech Pavlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Give preferential treatment to gameport at 0x201, and use
the odd addresses for access.
parent
9b3eaaa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/input/gameport/ns558.c
drivers/input/gameport/ns558.c
+4
-4
No files found.
drivers/input/gameport/ns558.c
View file @
2a5ae84e
...
...
@@ -46,7 +46,7 @@ MODULE_LICENSE("GPL");
#define NS558_ISA 1
#define NS558_PNP 2
static
int
ns558_isa_portlist
[]
=
{
0x20
0
,
0x201
,
0x202
,
0x203
,
0x204
,
0x205
,
0x207
,
0x209
,
static
int
ns558_isa_portlist
[]
=
{
0x20
1
,
0x200
,
0x202
,
0x203
,
0x204
,
0x205
,
0x207
,
0x209
,
0x20b
,
0x20c
,
0x20e
,
0x20f
,
0x211
,
0x219
,
0x101
,
0
};
struct
ns558
{
...
...
@@ -140,7 +140,7 @@ static void ns558_isa_probe(int io)
port
->
type
=
NS558_ISA
;
port
->
size
=
(
1
<<
i
);
port
->
gameport
.
io
=
io
&
(
-
1
<<
i
)
;
port
->
gameport
.
io
=
io
;
port
->
gameport
.
phys
=
port
->
phys
;
port
->
gameport
.
name
=
port
->
name
;
port
->
gameport
.
id
.
bustype
=
BUS_ISA
;
...
...
@@ -148,7 +148,7 @@ static void ns558_isa_probe(int io)
sprintf
(
port
->
phys
,
"isa%04x/gameport0"
,
io
&
(
-
1
<<
i
));
sprintf
(
port
->
name
,
"NS558 ISA"
);
request_region
(
port
->
gameport
.
io
,
(
1
<<
i
),
"ns558-isa"
);
request_region
(
io
&
(
-
1
<<
i
)
,
(
1
<<
i
),
"ns558-isa"
);
gameport_register_port
(
&
port
->
gameport
);
...
...
@@ -275,7 +275,7 @@ void __exit ns558_exit(void)
/* fall through */
#endif
case
NS558_ISA
:
release_region
(
port
->
gameport
.
io
,
port
->
size
);
release_region
(
port
->
gameport
.
io
&
~
(
port
->
size
-
1
)
,
port
->
size
);
break
;
default:
...
...
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