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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [x86_64/] [lib/] [iodebug.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#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
}

powered by: WebSVN 2.1.0

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