Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 1996 01:04:33 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        macgyver@infinet.com (Wilson MacGyver)
Subject:   Re: direct access to video card
Message-ID:  <199603080004.BAA18086@uriah.heep.sax.de>
In-Reply-To: <313F18A8.3DBFAAF4@cylatech.com> from "Wilson MacGyver" at Mar 7, 96 12:11:04 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603080004.BAA18086>