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
7f8b59ef
Commit
7f8b59ef
authored
Apr 03, 2002
by
Jean Tourrilhes
Committed by
Linus Torvalds
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IrDA: handle new NSC chip variant
parent
af904a02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
drivers/net/irda/nsc-ircc.c
drivers/net/irda/nsc-ircc.c
+7
-0
No files found.
drivers/net/irda/nsc-ircc.c
View file @
7f8b59ef
...
...
@@ -88,10 +88,14 @@ static int nsc_ircc_init_338(nsc_chip_t *chip, chipio_t *info);
/* These are the known NSC chips */
static
nsc_chip_t
chips
[]
=
{
/* Name, {cfg registers}, chip id index reg, chip id expected value, revision mask */
{
"PC87108"
,
{
0x150
,
0x398
,
0xea
},
0x05
,
0x10
,
0xf0
,
nsc_ircc_probe_108
,
nsc_ircc_init_108
},
{
"PC87338"
,
{
0x398
,
0x15c
,
0x2e
},
0x08
,
0xb0
,
0xf8
,
nsc_ircc_probe_338
,
nsc_ircc_init_338
},
/* Contributed by Kevin Thayer - OmniBook 6100 */
{
"PC87338?"
,
{
0x2e
,
0x15c
,
0x398
},
0x08
,
0x00
,
0xf8
,
nsc_ircc_probe_338
,
nsc_ircc_init_338
},
{
NULL
}
};
...
...
@@ -698,6 +702,9 @@ static int nsc_ircc_setup(chipio_t *info)
switch_bank
(
iobase
,
BANK3
);
version
=
inb
(
iobase
+
MID
);
IRDA_DEBUG
(
2
,
__FUNCTION__
"() Driver %s Found chip version %02x
\n
"
,
driver_name
,
version
);
/* Should be 0x2? */
if
(
0x20
!=
(
version
&
0xf0
))
{
ERROR
(
"%s, Wrong chip version %02x
\n
"
,
driver_name
,
version
);
...
...
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