ia64/xen-unstable

view old/xenolinux-2.4.16-sparse/arch/xeno/lib/iodebug.c @ 235:d7d0a23b2e07

bitkeeper revision 1.93 (3e5a4e6bkPheUp3x1uufN2MS3LAB7A)

Latest and Greatest version of XenoLinux based on the Linux-2.4.21-pre4
kernel.
author iap10@labyrinth.cl.cam.ac.uk
date Mon Feb 24 16:55:07 2003 +0000 (2003-02-24)
parents
children
line source
1 #include <asm/io.h>
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 }
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 }