From owner-freebsd-hackers Wed Dec 27 20:36:16 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA12340 for hackers-outgoing; Wed, 27 Dec 1995 20:36:16 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA12332 for ; Wed, 27 Dec 1995 20:36:07 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id PAA01069; Thu, 28 Dec 1995 15:11:03 +1030 From: Michael Smith Message-Id: <199512280441.PAA01069@genesis.atrad.adelaide.edu.au> Subject: Re: syscons driver To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Thu, 28 Dec 1995 15:11:03 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, jdli@linux.csie.nctu.edu.tw, freebsd-hackers@freebsd.org In-Reply-To: <277.820123198@time.cdrom.com> from "Jordan K. Hubbard" at Dec 27, 95 07:59:58 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk Jordan K. Hubbard stands accused of saying: > From the achievement standpoint, it's not been that bad. The major > criticism of it seems rather to be that it's insufficiently general - > you need a low level shim written for each type of gfx card chipset. Agreed, although I suspect that you can tell it to assume a 'generic' VGA interface. > Given the speed at which new video cards are appearing on the market, > I can easily see serious disadvanges to this and would much prefer an > API that let me talk to *any* "Generic VGA" card at 640x480 > resolution. I'm not sure if that's possible with syscons, but it'd > certainly be the goal to shoot for. Anything else is just signing > up for a long-term pain in the butt. You certainly can kick syscons into any of the majorish video modes : (from ) #define M_VGA11 26 /* vga 640x480 2 colors */ #define M_BG640x480 26 #define M_VGA12 27 /* vga 640x480 16 colors */ #define M_CG640x480 27 #define M_VGA13 28 /* vga 640x200 256 colors */ #define M_VGA_CG320 28 ... #define SW_VGA11 _IO('S', M_VGA11) #define SW_BG640x480 _IO('S', M_VGA11) #define SW_VGA12 _IO('S', M_VGA12) I would presume that there's some way of mapping the console video memory into the process's address space, or alternatively it would be neccessary to implement an ioctl to copy regions back and forth (yucky). > Jordan -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[