aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.21-pre4-sparse/arch/xeno/lib/iodebug.c
blob: 701a07fe72292d734c800e3c71bec8d316c332b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <asm/io.h>

void * __io_virt_debug(unsigned long x, const char *file, int line)
{
	if (x < PAGE_OFFSET) {
		printk("io mapaddr 0x%05lx not valid at %s:%d!\n", x, file, line);
		return __va(x);
	}
	return (void *)x;
}

unsigned long __io_phys_debug(unsigned long x, const char *file, int line)
{
	if (x < PAGE_OFFSET) {
		printk("io mapaddr 0x%05lx not valid at %s:%d!\n", x, file, line);
		return x;
	}
	return __pa(x);
}