From owner-freebsd-hackers Thu Mar 7 17:21:32 1996 Return-Path: owner-hackers 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 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. ;-)