diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2004-10-27 18:21:08 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-27 18:21:08 -0700 |
commit | f912d92c85f28543b944f6ba662d51e577b2f9cc (patch) | |
tree | cc4bb70feed78a9e17d0cc21f9151db422cd7c36 /lib | |
parent | 0c8ed019df503d7f2405f9b56a3490caf2c6f45a (diff) | |
download | history-f912d92c85f28543b944f6ba662d51e577b2f9cc.tar.gz |
[PATCH] ia64 iomap implementation
This preserves the ioreadX() == inX() semantics (same as i386), since it's
not clear that the speedup of omitting the mf.a for port operations is
worth the risk of breaking drivers.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/iomap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/iomap.c b/lib/iomap.c index b3ac2d3d5a12c5..5e74390852b0df 100644 --- a/lib/iomap.c +++ b/lib/iomap.c @@ -19,7 +19,10 @@ * * Architectures for which this is not true can't use this generic * implementation and should do their own copy. - * + */ + +#ifndef HAVE_ARCH_PIO_SIZE +/* * We encode the physical PIO addresses (0-0xffff) into the * pointer by offsetting them with a constant (0x10000) and * assuming that all the low addresses are always PIO. That means @@ -29,6 +32,7 @@ #define PIO_OFFSET 0x10000UL #define PIO_MASK 0x0ffffUL #define PIO_RESERVED 0x40000UL +#endif /* * Ugly macros are a way of life. |