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
15e51b0a
Commit
15e51b0a
authored
Feb 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Feb 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] eliminate use of ide_ioreg_t on ARM
parent
7d52ede7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/ide/arm/icside.c
drivers/ide/arm/icside.c
+4
-4
drivers/ide/arm/rapide.c
drivers/ide/arm/rapide.c
+2
-2
No files found.
drivers/ide/arm/icside.c
View file @
15e51b0a
/*
* linux/drivers/ide/icside.c
* linux/drivers/ide/
arm/
icside.c
*
* Copyright (c) 1996-2002 Russell King.
*
...
...
@@ -813,7 +813,7 @@ static ide_hwif_t *icside_find_hwif(unsigned long dataport)
for
(
index
=
0
;
index
<
MAX_HWIFS
;
++
index
)
{
hwif
=
&
ide_hwifs
[
index
];
if
(
hwif
->
io_ports
[
IDE_DATA_OFFSET
]
==
(
ide_ioreg_t
)
dataport
)
if
(
hwif
->
io_ports
[
IDE_DATA_OFFSET
]
==
dataport
)
goto
found
;
}
...
...
@@ -841,8 +841,8 @@ icside_setup(unsigned long base, struct cardinfo *info, int irq)
memset
(
&
hwif
->
hw
,
0
,
sizeof
(
hw_regs_t
));
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
hwif
->
hw
.
io_ports
[
i
]
=
(
ide_ioreg_t
)
port
;
hwif
->
io_ports
[
i
]
=
(
ide_ioreg_t
)
port
;
hwif
->
hw
.
io_ports
[
i
]
=
port
;
hwif
->
io_ports
[
i
]
=
port
;
port
+=
1
<<
info
->
stepping
;
}
hwif
->
hw
.
io_ports
[
IDE_CONTROL_OFFSET
]
=
base
+
info
->
ctrloffset
;
...
...
drivers/ide/arm/rapide.c
View file @
15e51b0a
/*
* linux/drivers/ide/rapide.c
* linux/drivers/ide/
arm/
rapide.c
*
* Copyright (c) 1996-2002 Russell King.
*/
...
...
@@ -25,7 +25,7 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
memset
(
&
hw
,
0
,
sizeof
(
hw
));
for
(
i
=
IDE_DATA_OFFSET
;
i
<=
IDE_STATUS_OFFSET
;
i
++
)
{
hw
.
io_ports
[
i
]
=
(
ide_ioreg_t
)
port
;
hw
.
io_ports
[
i
]
=
port
;
port
+=
1
<<
4
;
}
hw
.
io_ports
[
IDE_CONTROL_OFFSET
]
=
port
+
0x206
;
...
...
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