linux-old/arch/x86_64/lib/iodebug.c
<<
>>
Prefs
   1#include <asm/io.h>
   2
   3void * __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
  12unsigned 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}
  20
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.