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
40989d8d
Commit
40989d8d
authored
Jan 03, 2005
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix some pointer/integer conversion warnings for RiscPC.
Signed-off-by:
Russell King
<
rmk@arm.linux.org.uk
>
parent
9f4da76b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
include/asm-arm/arch-rpc/io.h
include/asm-arm/arch-rpc/io.h
+11
-9
No files found.
include/asm-arm/arch-rpc/io.h
View file @
40989d8d
...
...
@@ -124,12 +124,14 @@ static inline unsigned sz __in##fnsuffix (unsigned int port) \
return (unsigned sz)value; \
}
static
inline
unsigned
int
__ioaddr
(
unsigned
int
port
)
\
{
\
if
(
__PORT_PCIO
(
port
))
\
return
(
unsigned
int
)(
PCIO_BASE
+
(
port
<<
2
));
\
else
\
return
(
unsigned
int
)(
IO_BASE
+
(
port
<<
2
));
\
static
inline
void
__iomem
*
__ioaddr
(
unsigned
int
port
)
{
void
__iomem
*
ret
;
if
(
__PORT_PCIO
(
port
))
ret
=
(
void
__iomem
*
)
PCIO_BASE
;
else
ret
=
(
void
__iomem
*
)
IO_BASE
;
return
ret
+
(
port
<<
2
);
}
#define DECLARE_IO(sz,fnsuffix,instr) \
...
...
@@ -229,7 +231,7 @@ DECLARE_IO(int,l,"")
})
#define __ioaddrc(port) \
(
__PORT_PCIO((port)) ? PCIO_BASE + ((port) << 2) : IO_BASE
+ ((port) << 2))
(
(void __iomem *)(__PORT_PCIO((port)) ? PCIO_BASE : IO_BASE)
+ ((port) << 2))
#define inb(p) (__builtin_constant_p((p)) ? __inbc(p) : __inb(p))
#define inw(p) (__builtin_constant_p((p)) ? __inwc(p) : __inw(p))
...
...
@@ -239,7 +241,7 @@ DECLARE_IO(int,l,"")
#define outl(v,p) (__builtin_constant_p((p)) ? __outlc(v,p) : __outl(v,p))
#define __ioaddr(p) (__builtin_constant_p((p)) ? __ioaddr(p) : __ioaddrc(p))
/* the following macro is deprecated */
#define ioaddr(port)
__ioaddr((port
))
#define ioaddr(port)
((unsigned long)__ioaddr((port)
))
#define insb(p,d,l) __raw_readsb(__ioaddr(p),d,l)
#define insw(p,d,l) __raw_readsw(__ioaddr(p),d,l)
...
...
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