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
621d644d
Commit
621d644d
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] forward port 2.4 isa handling
parent
6e14d3f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/char/sx.c
drivers/char/sx.c
+17
-0
No files found.
drivers/char/sx.c
View file @
621d644d
...
@@ -2198,6 +2198,23 @@ static int probe_si (struct sx_board *board)
...
@@ -2198,6 +2198,23 @@ static int probe_si (struct sx_board *board)
}
}
}
}
/* Now we're pretty much convinced that there is an SI board here,
but to prevent trouble, we'd better double check that we don't
have an SI1 board when we're probing for an SI2 board.... */
write_sx_byte
(
board
,
SI2_ISA_ID_BASE
,
0x10
);
if
(
IS_SI1_BOARD
(
board
))
{
/* This should be an SI1 board, which has this
location writable... */
if
(
read_sx_byte
(
board
,
SI2_ISA_ID_BASE
)
!=
0x10
)
return
0
;
}
else
{
/* This should be an SI2 board, which has the bottom
3 bits non-writable... */
if
(
read_sx_byte
(
board
,
SI2_ISA_ID_BASE
)
==
0x10
)
return
0
;
}
printheader
();
printheader
();
printk
(
KERN_DEBUG
"sx: Found an SI board at %lx
\n
"
,
board
->
hw_base
);
printk
(
KERN_DEBUG
"sx: Found an SI board at %lx
\n
"
,
board
->
hw_base
);
...
...
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