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
0490a31f
Commit
0490a31f
authored
Sep 13, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IOMAP]: Make ioport_map() take unsigned long port argument.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5c422c68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/asm-generic/iomap.h
include/asm-generic/iomap.h
+1
-1
lib/iomap.c
lib/iomap.c
+4
-4
No files found.
include/asm-generic/iomap.h
View file @
0490a31f
...
...
@@ -33,7 +33,7 @@ extern void fastcall iowrite16(u16, void __iomem *);
extern
void
fastcall
iowrite32
(
u32
,
void
__iomem
*
);
/* Create a virtual mapping cookie for an IO port range */
extern
void
__iomem
*
ioport_map
(
unsigned
int
port
,
unsigned
int
nr
);
extern
void
__iomem
*
ioport_map
(
unsigned
long
port
,
unsigned
int
nr
);
extern
void
ioport_unmap
(
void
__iomem
*
);
/* Create a virtual mapping cookie for a PCI BAR (memory or IO) */
...
...
lib/iomap.c
View file @
0490a31f
...
...
@@ -24,9 +24,9 @@
* we can do some sanity checks on the low bits, and don't
* need to just take things for granted.
*/
#define PIO_OFFSET 0x10000
#define PIO_MASK 0x0ffff
#define PIO_RESERVED 0x40000
#define PIO_OFFSET 0x10000
UL
#define PIO_MASK 0x0ffff
UL
#define PIO_RESERVED 0x40000
UL
/*
* Ugly macros are a way of life.
...
...
@@ -77,7 +77,7 @@ EXPORT_SYMBOL(iowrite16);
EXPORT_SYMBOL
(
iowrite32
);
/* Create a virtual mapping cookie for an IO port range */
void
__iomem
*
ioport_map
(
unsigned
int
port
,
unsigned
int
nr
)
void
__iomem
*
ioport_map
(
unsigned
long
port
,
unsigned
int
nr
)
{
if
(
port
>
PIO_MASK
)
return
NULL
;
...
...
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