OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [x86_64/] [lib/] [iodebug.c] - Rev 1765

Compare with Previous | Blame | View Log

#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);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.