maximum scrollback on VGA

Brian K. White (linut@squonk.net)
Thu, 03 Sep 1998 20:11:38 -0400


Anyone else want the maximum VGA scrollback thing to be a config option?

Patch enclosed, for i386 2.1.119.

I don't have the other arches in my tree, so I couldn't check who else
can use vga consoles. It's trivial anyways to just copy the single line
from arch/i386/config.in to arch/whatever/config.in

--- Documentation/Configure.help.orig Wed Aug 19 17:37:58 1998
+++ Documentation/Configure.help Wed Sep 2 01:48:00 1998
@@ -1482,6 +1482,13 @@
display that complies with the generic VGA standard. Virtually
everyone wants that. Say Y.

+VGA can do 64KB (aka: Maximum VGA Scrollback)
+CONFIG_VGA_GET_64KB
+ Get 64K rather than 32K of video RAM. This doesn't actually work
+ on all "VGA" controllers. If your vga card can do it, then you
+ can say Y here to get more scrollback buffer (shift-pgup) on VGA
+ consoles.
+
Video mode selection support
CONFIG_VIDEO_SELECT
This enables support for text mode selection on kernel startup. If
--- arch/i386/config.in.orig Sun Aug 30 16:14:00 1998
+++ arch/i386/config.in Sun Aug 30 16:14:18 1998
@@ -125,6 +125,7 @@
mainmenu_option next_comment
comment 'Console drivers'
bool 'VGA text console' CONFIG_VGA_CONSOLE
+ bool 'VGA can do 64KB (aka: Maximum VGA Scrollback)' CONFIG_VGA_GET_64KB
if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
bool 'Video mode selection support' CONFIG_VIDEO_SELECT
bool 'Support for frame buffer devices (EXPERIMENTAL)' CONFIG_FB
--- drivers/video/vgacon.c.orig Sun Aug 9 15:06:00 1998
+++ drivers/video/vgacon.c Sun Aug 30 16:01:28 1998
@@ -64,8 +64,6 @@
*/
#undef TRIDENT_GLITCH

-#undef VGA_CAN_DO_64KB
-
#define dac_reg 0x3c8
#define dac_val 0x3c9
#define attrib_port 0x3c0
@@ -214,7 +212,7 @@
display_desc = "VGA+";
request_region(0x3c0,32,"vga+");

-#ifdef VGA_CAN_DO_64KB
+#ifdef CONFIG_VGA_GET_64KB
/*
* get 64K rather than 32K of video RAM.
* This doesn't actually work on all "VGA"
@@ -684,7 +682,7 @@
if (vga_video_type != VIDEO_TYPE_EGAM) {
charmap = (char *)VGA_MAP_MEM(colourmap);
beg = 0x0e;
-#ifdef VGA_CAN_DO_64KB
+#ifdef CONFIG_VGA_GET_64KB
if (vga_video_type == VIDEO_TYPE_VGAC)
beg = 0x06;
#endif
--- drivers/video/vgafb.c.orig Sun Aug 30 16:01:19 1998
+++ drivers/video/vgafb.c Sun Aug 30 16:02:46 1998
@@ -465,7 +465,7 @@
strcpy(fb_fix.id, "VGA+");
request_region(0x3c0, 32, "vga+");

-#ifdef VGA_CAN_DO_64KB
+#ifdef CONFIG_VGA_GET_64KB
/*
* get 64K rather than 32K of video RAM.
* This doesn't actually work on all "VGA"

-- 

Brian~

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html