X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fio.h;h=03233c2ab82009c73bf1a30cf2858c2e01651a6a;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=479e976ed86c4bc2b58c97d714d46a4b9bee441c;hpb=433e2af4175021d339b067f6e7ee0a4e4c4f7e2d;p=linux-2.6.git diff --git a/include/asm-i386/io.h b/include/asm-i386/io.h index 479e976ed..03233c2ab 100644 --- a/include/asm-i386/io.h +++ b/include/asm-i386/io.h @@ -49,6 +49,17 @@ #include +/* + * Convert a physical pointer to a virtual kernel pointer for /dev/mem + * access + */ +#define xlate_dev_mem_ptr(p) __va(p) + +/* + * Convert a virtual cached pointer to an uncached pointer + */ +#define xlate_dev_kmem_ptr(p) p + /** * virt_to_phys - map virtual addresses to physical * @address: address to remap @@ -120,6 +131,11 @@ extern void iounmap(volatile void __iomem *addr); extern void *bt_ioremap(unsigned long offset, unsigned long size); extern void bt_iounmap(void *addr, unsigned long size); +/* Use early IO mappings for DMI because it's initialized early */ +#define dmi_ioremap bt_ioremap +#define dmi_iounmap bt_iounmap +#define dmi_alloc alloc_bootmem + /* * ISA I/O bus memory addresses are 1:1 with the physical address. */