fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / asm-x86_64 / vga.h
index ef0c0e5..012ebd1 100644 (file)
  *     access the videoram directly without any black magic.
  */
 
-#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
+#ifdef CONFIG_XEN
+#define VGA_MAP_MEM(x,s) (unsigned long)isa_bus_to_virt(x)
+#else
+#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)
+#endif
 
 #define vga_readb(x) (*(x))
 #define vga_writeb(x,y) (*(y) = (x))