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
fe639218
Commit
fe639218
authored
Sep 16, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Make IDE ops take __iomem pointers.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
457eaa8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
include/asm-sparc64/ide.h
include/asm-sparc64/ide.h
+4
-8
No files found.
include/asm-sparc64/ide.h
View file @
fe639218
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
#define __ide_mm_outsw __ide_outsw
#define __ide_mm_outsw __ide_outsw
#define __ide_mm_outsl __ide_outsl
#define __ide_mm_outsl __ide_outsl
static
__inline__
unsigned
int
inw_be
(
unsigned
long
addr
)
static
inline
unsigned
int
inw_be
(
void
__iomem
*
addr
)
{
{
unsigned
int
ret
;
unsigned
int
ret
;
...
@@ -49,9 +49,7 @@ static __inline__ unsigned int inw_be(unsigned long addr)
...
@@ -49,9 +49,7 @@ static __inline__ unsigned int inw_be(unsigned long addr)
return
ret
;
return
ret
;
}
}
static
__inline__
void
__ide_insw
(
unsigned
long
port
,
static
inline
void
__ide_insw
(
void
__iomem
*
port
,
void
*
dst
,
u32
count
)
void
*
dst
,
u32
count
)
{
{
#if (L1DCACHE_SIZE > PAGE_SIZE)
/* is there D$ aliasing problem */
#if (L1DCACHE_SIZE > PAGE_SIZE)
/* is there D$ aliasing problem */
unsigned
long
end
=
(
unsigned
long
)
dst
+
(
count
<<
1
);
unsigned
long
end
=
(
unsigned
long
)
dst
+
(
count
<<
1
);
...
@@ -81,16 +79,14 @@ static __inline__ void __ide_insw(unsigned long port,
...
@@ -81,16 +79,14 @@ static __inline__ void __ide_insw(unsigned long port,
#endif
#endif
}
}
static
__inline__
void
outw_be
(
unsigned
short
w
,
unsigned
long
addr
)
static
inline
void
outw_be
(
unsigned
short
w
,
void
__iomem
*
addr
)
{
{
__asm__
__volatile__
(
"stha %0, [%1] %2"
__asm__
__volatile__
(
"stha %0, [%1] %2"
:
/* no outputs */
:
/* no outputs */
:
"r"
(
w
),
"r"
(
addr
),
"i"
(
ASI_PHYS_BYPASS_EC_E
));
:
"r"
(
w
),
"r"
(
addr
),
"i"
(
ASI_PHYS_BYPASS_EC_E
));
}
}
static
__inline__
void
__ide_outsw
(
unsigned
long
port
,
static
inline
void
__ide_outsw
(
void
__iomem
*
port
,
void
*
src
,
u32
count
)
void
*
src
,
u32
count
)
{
{
#if (L1DCACHE_SIZE > PAGE_SIZE)
/* is there D$ aliasing problem */
#if (L1DCACHE_SIZE > PAGE_SIZE)
/* is there D$ aliasing problem */
unsigned
long
end
=
(
unsigned
long
)
src
+
(
count
<<
1
);
unsigned
long
end
=
(
unsigned
long
)
src
+
(
count
<<
1
);
...
...
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