X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fiomap.c;h=5e74390852b0dfc1d7d48ef42158160f7ea9a89c;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=d30ff1a8edee2737638e77ae32d2dc32f06d45c9;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/lib/iomap.c b/lib/iomap.c index d30ff1a8e..5e7439085 100644 --- a/lib/iomap.c +++ b/lib/iomap.c @@ -1,5 +1,7 @@ /* * Implement the default iomap interfaces + * + * (C) Copyright 2004 Linus Torvalds */ #include #include @@ -17,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 @@ -27,6 +32,7 @@ #define PIO_OFFSET 0x10000UL #define PIO_MASK 0x0ffffUL #define PIO_RESERVED 0x40000UL +#endif /* * Ugly macros are a way of life.