From owner-freebsd-hackers Thu Mar 7 19:49:09 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA05783 for hackers-outgoing; Thu, 7 Mar 1996 19:49:09 -0800 (PST) Received: from ns.okbmei.msk.su (ns.okbmei.msk.su [194.190.170.40]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA05757 for ; Thu, 7 Mar 1996 19:49:02 -0800 (PST) Received: from kiae.UUCP by ns.okbmei.msk.su with UUCP id AA01926 (5.67c8/IDA-1.5); Fri, 8 Mar 1996 06:40:30 +0300 Received: from freefall.FreeBSD.ORG by sequent.kiae.su with SMTP id AA03073 (5.65.kiae-2 for ); Fri, 8 Mar 1996 06:10:07 +0300 Received: from localhost (daemon@localhost) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA23312 Thu, 7 Mar 1996 17:22:24 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA23172 for hackers-outgoing; Thu, 7 Mar 1996 17:21:32 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA23131 for ; Thu, 7 Mar 1996 17:21:12 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id CAA26170; Fri, 8 Mar 1996 02:20:19 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id CAA09302; Fri, 8 Mar 1996 02:20:18 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id BAA18086; Fri, 8 Mar 1996 01:04:33 +0100 (MET) From: J Wunsch Message-Id: <199603080004.BAA18086@uriah.heep.sax.de> Subject: Re: direct access to video card To: freebsd-hackers@FreeBSD.ORG (FreeBSD hackers) Date: Fri, 8 Mar 1996 01:04:33 +0100 (MET) Cc: macgyver@infinet.com (Wilson MacGyver) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <313F18A8.3DBFAAF4@cylatech.com> from "Wilson MacGyver" at Mar 7, 96 12:11:04 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Charset: KOI8-R X-Char-Esc: 29 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk As Wilson MacGyver wrote: > > Your best bet by the time the next release of XFree86/tm will be out > > is to use their ``DGA'' (direct graphics access ?) Xserver extension. > well, I'd really like to avoid using X if at all possible. > For example, what funication call would I make to say, set the > videocard to various mode? I suppose I could use inline asm > within GCC. Though I rather not do that. You will have to reinvent about this number of lines: j@uriah 99% pwd /usr/othersrc/XFree86/xc/programs/Xserver/hw/xfree86 j@uriah 100% find accel {bdm2,hga2,mono,vga256}/drivers -type f \ -name '*.[ch]' | xargs wc -l | \ awk '{count += $1;} END {printf "Total: %d lines.\n", count}' Total: 334924 lines. ... for getting the same amount of hardware supported as XFree86(tm) does support by now. Maybe i've forgotten something, but this should give you a rough estimation about the hardware-dependent code. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)