mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
EFI on some machines, e.g., Intel Tiger, reports that the VGA framebuffer supports WB access. ioremap() prefers WB when possible, so it can work when mapping main memory. But it doesn't make sense to map a framebuffer WB, because the driver doesn't flush explicitly, so updates won't make it to the device immediately. This is due to Zou Nan hai <[email protected]>. More extensive fix that adds a "size" argument coming soon. Signed-off-by: Bjorn Helgaas <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Cc: "Luck, Tony" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Tony Luck <[email protected]>
26 lines
616 B
C
26 lines
616 B
C
/*
|
|
* Access to VGA videoram
|
|
*
|
|
* (c) 1998 Martin Mares <[email protected]>
|
|
* (c) 1999 Asit Mallick <[email protected]>
|
|
* (c) 1999 Don Dugger <[email protected]>
|
|
*/
|
|
|
|
#ifndef __ASM_IA64_VGA_H_
|
|
#define __ASM_IA64_VGA_H_
|
|
|
|
/*
|
|
* On the PC, we can just recalculate addresses and then access the
|
|
* videoram directly without any black magic.
|
|
*/
|
|
|
|
extern unsigned long vga_console_iobase;
|
|
extern unsigned long vga_console_membase;
|
|
|
|
#define VGA_MAP_MEM(x) ((unsigned long) ioremap_nocache(vga_console_membase + (x), 0))
|
|
|
|
#define vga_readb(x) (*(x))
|
|
#define vga_writeb(x,y) (*(y) = (x))
|
|
|
|
#endif /* __ASM_IA64_VGA_H_ */
|