Commit 0490a31f authored by David S. Miller's avatar David S. Miller

[IOMAP]: Make ioport_map() take unsigned long port argument.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c422c68
......@@ -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) */
......
......@@ -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 0x10000UL
#define PIO_MASK 0x0ffffUL
#define PIO_RESERVED 0x40000UL
/*
* 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment