Subject: Re: wscons fonts (80x50 mode)
To: Rick Byers <RickB@BigScaryChildren.net>
From: Mark White <mark.white@st-edmund-hall.oxford.ac.uk>
List: current-users
Date: 04/18/2001 16:25:38
Rick Byers writes:
> On Wed, 18 Apr 2001, Mark White wrote:
> > Are you using an ATI vid card of some sort?  There are some
> > known issues there (IIRC, NetBSD design and Rage chipset
> > flaws combine such that it's only currently possible to use
> > font slot 0).
> 
> Ah - Yes, both machines have ATI video cards (Rage IIc in one and 
> Rage 128 Pro in the other).  Is there any way to convince NetBSD to
> replace the font in font slot 0?  I wouldn't mind having ALL my screens
> use a 8x8 font.

Below is a patch from Bang Jun-Young (posted on port-i386 on
12 dec 2000).  It's against 1.5 source; I've used it fine on
a IIc card.

Mark <><

--- /usr/src/sys/dev/ic/vga_subr.c      Tue Jan 25 02:44:03 2000
+++ vga_subr.c  Tue Dec 12 21:17:37 2000
@@ -94,12 +94,20 @@
 {
        int offset, i, j, s;

+#if 0
        /* fontset number swizzle done in vga_setfontset() */
        offset = (fontset << 13) | (first << 5);
+#else
+       offset = 0;
+#endif

        s = splhigh();
        fontram(vh);

+       for (i = 0; i < 8192; i++)
+               bus_space_write_1(vh->vh_memt, vh->vh_allmemh,
+                                 offset + i, 0);
+
        for (i = 0; i < num; i++)
                for (j = 0; j < lpc; j++)
                        bus_space_write_1(vh->vh_memt, vh->vh_allmemh,