From 03907beb680ee39bee212bb3cb170cb295238cda Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Wed, 9 Jun 2004 16:36:08 +0000 Subject: bitkeeper revision 1.946 (40c73c7805slPvnfEohXfQoiriAESg) Rename Linux directories and upgrade build system. --- linux-2.4.26-xen-sparse/include/asm-xen/vga.h | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 linux-2.4.26-xen-sparse/include/asm-xen/vga.h (limited to 'linux-2.4.26-xen-sparse/include/asm-xen/vga.h') diff --git a/linux-2.4.26-xen-sparse/include/asm-xen/vga.h b/linux-2.4.26-xen-sparse/include/asm-xen/vga.h new file mode 100644 index 0000000000..d0624cf480 --- /dev/null +++ b/linux-2.4.26-xen-sparse/include/asm-xen/vga.h @@ -0,0 +1,42 @@ +/* + * Access to VGA videoram + * + * (c) 1998 Martin Mares + */ + +#ifndef _LINUX_ASM_VGA_H_ +#define _LINUX_ASM_VGA_H_ + +#include + +extern unsigned char *vgacon_mmap; + +static unsigned long VGA_MAP_MEM(unsigned long x) +{ + if( vgacon_mmap == NULL ) + { + /* This is our first time in this function. This whole thing + is a rather grim hack. We know we're going to get asked + to map a 32KB region between 0xb0000 and 0xb8000 because + that's what VGAs are. We used the boot time permanent + fixed map region, and map it to machine pages. + */ + if( x != 0xb8000 ) + panic("Argghh! VGA Console is weird. 1:%08lx\n",x); + + vgacon_mmap = (unsigned char*) bt_ioremap( 0xa0000, 128*1024 ); + return (unsigned long) (vgacon_mmap+x-0xa0000); + } + else + { + if( x != 0xc0000 && x != 0xa0000 ) /* vidmem_end or charmap fonts */ + panic("Argghh! VGA Console is weird. 2:%08lx\n",x); + return (unsigned long) (vgacon_mmap+x-0xa0000); + } + return 0; +} + +static inline unsigned char vga_readb(unsigned char * x) { return (*(x)); } +static inline void vga_writeb(unsigned char x, unsigned char *y) { *(y) = (x); } + +#endif -- cgit v1.2.3