VESA FB & PIO_FONTX

Alexandr D. Kanevskiy (kad@mfua.lugansk.ua)
Sun, 2 Aug 1998 18:51:18 +0300 (EEST)


Hi All !

Loading fonts into VESA FB console not so good now...,I look at vt.c and found this code:

case PIO_FONTX:
if (!perm)
return -EPERM;
op.op = KD_FONT_OP_SET;
op.flags = 0;
op.width = 8;
op.height = cfdarg.charheight;
op.charcount = cfdarg.charcount;
op.data = cfdarg.chardata;
return con_font_op(fg_console, &op);

Is this correct ? Or this code must be something like this :

case PIO_FONTX:
if (!perm)
return -EPERM;
op.op = KD_FONT_OP_SET;
op.flags = 0;
op.width = 8;
op.height = cfdarg.charheight;
op.charcount = cfdarg.charcount;
op.data = cfdarg.chardata;
for ( i = 0 ; i < MAX_NR_CONSOLES ; i++ )
{
if (vc_cons_allocated(i))
{
rc = con_font_op(i,&op);
/* printk( "KAD: i=%d rc=%d\n",i,rc ); */
if ( rc < 0 ) break;
}
}
return rc;

I tested this variant but it also not fully correct. Who can correct this?

Boot time:
------------
AWE32-0.4.2c (RAM512k)
KAD: i=0 rc=0
Swansea University Computer Society IPX 0.38 for NET3.037
IPX Portions Copyright (c) 1995 Caldera, Inc.
------------

After start mingetty's, login and setfont koi8-8x16:
(I have tty1-tty8, tty12 opened for trafshow and tty10-tty11 for syslog)
------------
registered device ppp0
KAD: i=0 rc=0
KAD: i=1 rc=0
KAD: i=2 rc=0
KAD: i=3 rc=0
KAD: i=4 rc=0
KAD: i=5 rc=0
KAD: i=6 rc=0
KAD: i=7 rc=0
KAD: i=9 rc=0
KAD: i=10 rc=0
KAD: i=11 rc=0
PPP BSD Compression module registered
------------

PS. Sorry for my english... B-(

With best reggards, Alexandr. // MFUA // UCL //
InterNIC: AK2644 [Powered by RedHat]

-
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