Commit 3c51076f authored by David Mosberger's avatar David Mosberger

ia64: Fix I/O macros in asm-ia64/io.h. Based on patch by Andreas Schwab.

parent 4aa2ea8a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* over and over again with slight variations and possibly making a * over and over again with slight variations and possibly making a
* mistake somewhere. * mistake somewhere.
* *
* Copyright (C) 1998-2001 Hewlett-Packard Co * Copyright (C) 1998-2002 Hewlett-Packard Co
* David Mosberger-Tang <davidm@hpl.hp.com> * David Mosberger-Tang <davidm@hpl.hp.com>
* Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com> * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
* Copyright (C) 1999 Don Dugger <don.dugger@intel.com> * Copyright (C) 1999 Don Dugger <don.dugger@intel.com>
...@@ -277,9 +277,9 @@ __outsl (unsigned long port, void *src, unsigned long count) ...@@ -277,9 +277,9 @@ __outsl (unsigned long port, void *src, unsigned long count)
} }
/* /*
* Unfortunately, some platforms are broken and do not follow the * Unfortunately, some platforms are broken and do not follow the IA-64 architecture
* IA-64 architecture specification regarding legacy I/O support. * specification regarding legacy I/O support. Thus, we have to make these operations
* Thus, we have to make these operations platform dependent... * platform dependent...
*/ */
#define __inb platform_inb #define __inb platform_inb
#define __inw platform_inw #define __inw platform_inw
...@@ -289,19 +289,19 @@ __outsl (unsigned long port, void *src, unsigned long count) ...@@ -289,19 +289,19 @@ __outsl (unsigned long port, void *src, unsigned long count)
#define __outl platform_outl #define __outl platform_outl
#define __mmiob platform_mmiob #define __mmiob platform_mmiob
#define inb __inb #define inb(p) __inb(p)
#define inw __inw #define inw(p) __inw(p)
#define inl __inl #define inl(p) __inl(p)
#define insb __insb #define insb(p) __insb(p)
#define insw __insw #define insw(p) __insw(p)
#define insl __insl #define insl(p) __insl(p)
#define outb __outb #define outb(v,p) __outb(v,p)
#define outw __outw #define outw(v,p) __outw(v,p)
#define outl __outl #define outl(v,p) __outl(v,p)
#define outsb __outsb #define outsb(v,p) __outsb(v,p)
#define outsw __outsw #define outsw(v,p) __outsw(v,p)
#define outsl __outsl #define outsl(v,p) __outsl(v,p)
#define mmiob __mmiob #define mmiob() __mmiob()
/* /*
* The address passed to these functions are ioremap()ped already. * The address passed to these functions are ioremap()ped already.
......
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