Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28571
b: refs/heads/master
c: 4f1bcaf
h: refs/heads/master
i:
  28569: ab98958
  28567: ef85065
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Jun 22, 2006
1 parent 409d45e commit ff02fa4
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d702ccb342e49f7591df5a87c3857c698183b0fa
refs/heads/master: 4f1bcaf094ccc512c23e10104c05a6f8e5b7a9e4
2 changes: 1 addition & 1 deletion trunk/drivers/video/console/mdacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ static const char __init *mdacon_startup(void)
mda_num_columns = 80;
mda_num_lines = 25;

mda_vram_base = VGA_MAP_MEM(0xb0000);
mda_vram_len = 0x01000;
mda_vram_base = VGA_MAP_MEM(0xb0000, mda_vram_len);

mda_index_port = 0x3b4;
mda_value_port = 0x3b5;
Expand Down
19 changes: 9 additions & 10 deletions trunk/drivers/video/console/vgacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static const char __init *vgacon_startup(void)
static struct resource ega_console_resource =
{ "ega", 0x3B0, 0x3BF };
vga_video_type = VIDEO_TYPE_EGAM;
vga_vram_end = 0xb8000;
vga_vram_size = 0x8000;
display_desc = "EGA+";
request_resource(&ioport_resource,
&ega_console_resource);
Expand All @@ -401,7 +401,7 @@ static const char __init *vgacon_startup(void)
static struct resource mda2_console_resource =
{ "mda", 0x3BF, 0x3BF };
vga_video_type = VIDEO_TYPE_MDA;
vga_vram_end = 0xb2000;
vga_vram_size = 0x2000;
display_desc = "*MDA";
request_resource(&ioport_resource,
&mda1_console_resource);
Expand All @@ -418,7 +418,7 @@ static const char __init *vgacon_startup(void)
if ((ORIG_VIDEO_EGA_BX & 0xff) != 0x10) {
int i;

vga_vram_end = 0xc0000;
vga_vram_size = 0x8000;

if (!ORIG_VIDEO_ISVGA) {
static struct resource ega_console_resource
Expand All @@ -443,7 +443,7 @@ static const char __init *vgacon_startup(void)
* and COE=1 isn't necessarily a good idea)
*/
vga_vram_base = 0xa0000;
vga_vram_end = 0xb0000;
vga_vram_size = 0x10000;
outb_p(6, VGA_GFX_I);
outb_p(6, VGA_GFX_D);
#endif
Expand Down Expand Up @@ -475,17 +475,16 @@ static const char __init *vgacon_startup(void)
static struct resource cga_console_resource =
{ "cga", 0x3D4, 0x3D5 };
vga_video_type = VIDEO_TYPE_CGA;
vga_vram_end = 0xba000;
vga_vram_size = 0x2000;
display_desc = "*CGA";
request_resource(&ioport_resource,
&cga_console_resource);
vga_video_font_height = 8;
}
}

vga_vram_base = VGA_MAP_MEM(vga_vram_base);
vga_vram_end = VGA_MAP_MEM(vga_vram_end);
vga_vram_size = vga_vram_end - vga_vram_base;
vga_vram_base = VGA_MAP_MEM(vga_vram_base, vga_vram_size);
vga_vram_end = vga_vram_base + vga_vram_size;

/*
* Find out if there is a graphics card present.
Expand Down Expand Up @@ -1020,14 +1019,14 @@ static int vgacon_do_font_op(struct vgastate *state,char *arg,int set,int ch512)
char *charmap;

if (vga_video_type != VIDEO_TYPE_EGAM) {
charmap = (char *) VGA_MAP_MEM(colourmap);
charmap = (char *) VGA_MAP_MEM(colourmap, 0);
beg = 0x0e;
#ifdef VGA_CAN_DO_64KB
if (vga_video_type == VIDEO_TYPE_VGAC)
beg = 0x06;
#endif
} else {
charmap = (char *) VGA_MAP_MEM(blackwmap);
charmap = (char *) VGA_MAP_MEM(blackwmap, 0);
beg = 0x0a;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/vga16fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ static int __init vga16fb_probe(struct device *device)
}

/* XXX share VGA_FB_PHYS and I/O region with vgacon and others */
info->screen_base = (void __iomem *)VGA_MAP_MEM(VGA_FB_PHYS);
info->screen_base = (void __iomem *)VGA_MAP_MEM(VGA_FB_PHYS, 0);

if (!info->screen_base) {
printk(KERN_ERR "vga16fb: unable to map device\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-alpha/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ extern void scr_memcpyw(u16 *d, const u16 *s, unsigned int count);
#define vga_readb(a) readb((u8 __iomem *)(a))
#define vga_writeb(v,a) writeb(v, (u8 __iomem *)(a))

#define VGA_MAP_MEM(x) ((unsigned long) ioremap(x, 0))
#define VGA_MAP_MEM(x,s) ((unsigned long) ioremap(x, s))

#endif
2 changes: 1 addition & 1 deletion trunk/include/asm-arm/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <asm/hardware.h>
#include <asm/io.h>

#define VGA_MAP_MEM(x) (PCIMEM_BASE + (x))
#define VGA_MAP_MEM(x,s) (PCIMEM_BASE + (x))

#define vga_readb(x) (*((volatile unsigned char *)x))
#define vga_writeb(x,y) (*((volatile unsigned char *)y) = (x))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* access the videoram directly without any black magic.
*/

#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)

#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ia64/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
extern unsigned long vga_console_iobase;
extern unsigned long vga_console_membase;

#define VGA_MAP_MEM(x) ((unsigned long) ioremap_nocache(vga_console_membase + (x), 0))
#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))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-m32r/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* access the videoram directly without any black magic.
*/

#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)

#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-mips/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* access the videoram directly without any black magic.
*/

#define VGA_MAP_MEM(x) (0xb0000000L + (unsigned long)(x))
#define VGA_MAP_MEM(x,s) (0xb0000000L + (unsigned long)(x))

#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-powerpc/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ static inline u16 scr_readw(volatile const u16 *addr)
extern unsigned long vgacon_remap_base;

#ifdef __powerpc64__
#define VGA_MAP_MEM(x) ((unsigned long) ioremap((x), 0))
#define VGA_MAP_MEM(x,s) ((unsigned long) ioremap((x), s))
#else
#define VGA_MAP_MEM(x) (x + vgacon_remap_base)
#define VGA_MAP_MEM(x,s) (x + vgacon_remap_base)
#endif

#define vga_readb(x) (*(x))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-sparc64/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ static inline u16 scr_readw(const u16 *addr)
return *addr;
}

#define VGA_MAP_MEM(x) (x)
#define VGA_MAP_MEM(x,s) (x)

#endif
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* access the videoram directly without any black magic.
*/

#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)

#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-xtensa/vga.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef _XTENSA_VGA_H
#define _XTENSA_VGA_H

#define VGA_MAP_MEM(x) (unsigned long)phys_to_virt(x)
#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)

#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
Expand Down

0 comments on commit ff02fa4

Please sign in to comment.