more changes on original files
[linux-2.4.git] / arch / i386 / lib / iodebug.c
1 #include <asm/io.h>
2
3 void * __io_virt_debug(unsigned long x, const char *file, int line)
4 {
5         if (x < PAGE_OFFSET) {
6                 printk("io mapaddr 0x%05lx not valid at %s:%d!\n", x, file, line);
7                 return __va(x);
8         }
9         return (void *)x;
10 }
11
12 unsigned long __io_phys_debug(unsigned long x, const char *file, int line)
13 {
14         if (x < PAGE_OFFSET) {
15                 printk("io mapaddr 0x%05lx not valid at %s:%d!\n", x, file, line);
16                 return x;
17         }
18         return __pa(x);
19 }