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
75bfe560
Commit
75bfe560
authored
Mar 22, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add checks to pc9800 ide reserve
parent
88b6bfe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drivers/ide/legacy/pc9800.c
drivers/ide/legacy/pc9800.c
+7
-3
No files found.
drivers/ide/legacy/pc9800.c
View file @
75bfe560
...
@@ -64,9 +64,13 @@ void __init ide_probe_for_pc9800(void)
...
@@ -64,9 +64,13 @@ void __init ide_probe_for_pc9800(void)
/* Restore original value, just in case. */
/* Restore original value, just in case. */
outb
(
saved_bank
,
PC9800_IDE_BANKSELECT
);
outb
(
saved_bank
,
PC9800_IDE_BANKSELECT
);
/* These ports are probably used by IDE I/F. */
/* These ports are reseved by IDE I/F. */
request_region
(
0x430
,
1
,
"ide"
);
if
(
!
request_region
(
0x430
,
1
,
"ide"
)
||
request_region
(
0x435
,
1
,
"ide"
);
!
request_region
(
0x435
,
1
,
"ide"
))
{
printk
(
KERN_WARNING
"ide: IO port 0x430 and 0x435 are reserved for IDE"
" the card using these ports may not work
\n
"
);
}
if
(
ide_hwifs
[
0
].
io_ports
[
IDE_DATA_OFFSET
]
==
HD_DATA
&&
if
(
ide_hwifs
[
0
].
io_ports
[
IDE_DATA_OFFSET
]
==
HD_DATA
&&
ide_hwifs
[
1
].
io_ports
[
IDE_DATA_OFFSET
]
==
HD_DATA
)
{
ide_hwifs
[
1
].
io_ports
[
IDE_DATA_OFFSET
]
==
HD_DATA
)
{
...
...
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