vga.h 570 字节
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

20 21 22 23 24 25
#ifdef CONFIG_FB_EFI
#define __ARCH_HAS_VGA_DEFAULT_DEVICE
extern struct pci_dev *vga_default_device(void);
extern void vga_set_default_device(struct pci_dev *pdev);
#endif

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