public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andries.Brouwer@cwi.nl
To: linux-kernel@vger.kernel.org
Subject: [PATCH] omission in video driver
Date: Mon, 1 Apr 2002 18:41:26 GMT	[thread overview]
Message-ID: <UTC200204011841.SAA486178.aeb@cwi.nl> (raw)

Documenting the video ioctls, I noticed to my dismay
that the ioctl to set the border color of the console
screen is lacking.

Here part of the fix for 2.4.19:

--- /linux/2.4/linux-2.4.19pre4/linux/drivers/video/vgacon.c	Fri Mar 29 01:02:00 2002
+++ ./vgacon.c	Tue Apr  1 20:14:14 2002
@@ -244,6 +244,14 @@
 				outb_p (6, 0x3ce) ;
 				outb_p (6, 0x3cf) ;
 #endif
+				/*
+				 * Load overscan register red.
+				 */
+				inb_p(0x3da);        /* clear flipflop */
+				outb_p(0x11, 0x3c0); /* index overscan color */
+				outb_p(0x0c, 0x3c0); /* load value */
+				outb_p(0x20, 0x3c0); /* allow display memory
+							to access palette */
 
 				/*
 				 * Normalise the palette registers, to point

Andries

[this is the nontrivial part; the rest is left as an exercise]

             reply	other threads:[~2002-04-01 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-01 18:41 Andries.Brouwer [this message]
2002-04-03 13:27 ` [PATCH] omission in video driver Paul Gortmaker
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03 22:51 Andries.Brouwer
2002-04-04 13:13 Andries.Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=UTC200204011841.SAA486178.aeb@cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox