From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/ia64/include/asm/vga.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ANDROID_3.4.5/arch/ia64/include/asm/vga.h (limited to 'ANDROID_3.4.5/arch/ia64/include/asm/vga.h') diff --git a/ANDROID_3.4.5/arch/ia64/include/asm/vga.h b/ANDROID_3.4.5/arch/ia64/include/asm/vga.h new file mode 100644 index 00000000..02184ecd --- /dev/null +++ b/ANDROID_3.4.5/arch/ia64/include/asm/vga.h @@ -0,0 +1,25 @@ +/* + * Access to VGA videoram + * + * (c) 1998 Martin Mares + * (c) 1999 Asit Mallick + * (c) 1999 Don Dugger + */ + +#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,s) ((unsigned long) ioremap_nocache(vga_console_membase + (x), s)) + +#define vga_readb(x) (*(x)) +#define vga_writeb(x,y) (*(y) = (x)) + +#endif /* __ASM_IA64_VGA_H_ */ -- cgit