mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
66b7f8a304
Resend 2 with changes per Bjorn Helgaas comments. Changes from original: + Change globals to vga_console_iobase/vga_console_membase and make them unconditional. + Address style-related comments. Patch to extend the PCDP vga setup code to support PCI io/mem translations for the legacy vga ioport and ram spaces on architectures (e.g. altix) which need them. Summary of the changes: drivers/firmware/pcdp.c drivers/firmware/pcdp.h ----------------------- + add declaration for the spec-defined PCI interface struct (pcdp_if_pci) as well as support macros. + extend setup_vga_console() to know about pcdp_if_pci and add a couple of globals to hold the io and mem translation offsets if present. arch/ia64/kernel/setup.c ------------------------ + tweek early_console_setup() to allow multiple early console setup routines to be called. include/asm-ia64/vga.h ---------------------- + make VGA_MAP_MEM vga_console_membase aware Signed-off-by: Mark Maule <maule@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
26 lines
608 B
C
26 lines
608 B
C
/*
|
|
* Access to VGA videoram
|
|
*
|
|
* (c) 1998 Martin Mares <mj@ucw.cz>
|
|
* (c) 1999 Asit Mallick <asit.k.mallick@intel.com>
|
|
* (c) 1999 Don Dugger <don.dugger@intel.com>
|
|
*/
|
|
|
|
#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(vga_console_membase + (x), 0))
|
|
|
|
#define vga_readb(x) (*(x))
|
|
#define vga_writeb(x,y) (*(y) = (x))
|
|
|
|
#endif /* __ASM_IA64_VGA_H_ */
|