vga.h 396 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6
/*
 *	Access to VGA videoram
 *
 *	(c) 1998 Martin Mares <mj@ucw.cz>
 */

H
H. Peter Anvin 已提交
7 8
#ifndef _ASM_X86_VGA_H
#define _ASM_X86_VGA_H
L
Linus Torvalds 已提交
9 10 11 12 13 14

/*
 *	On the PC, we can just recalculate addresses and then
 *	access the videoram directly without any black magic.
 */

15
#define VGA_MAP_MEM(x, s) (unsigned long)phys_to_virt(x)
L
Linus Torvalds 已提交
16 17

#define vga_readb(x) (*(x))
18
#define vga_writeb(x, y) (*(y) = (x))
L
Linus Torvalds 已提交
19

H
H. Peter Anvin 已提交
20
#endif /* _ASM_X86_VGA_H */