Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 1996 01:12:35 +0000 (WET)
From:      Alexey Pialkin  <root@VexedVox.stud.pu.ru>
To:        infinet.com!macgyver@VexedVox.stud.pu.ru (Wilson MacGyver)
Cc:        freebsd.org!hackers@VexedVox.stud.pu.ru, uriah.heep.sax.de!joerg_wunsch@VexedVox.stud.pu.ru
Subject:   Re: direct access to video card
Message-ID:  <199603072212.BAA10146@localhost>
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
> 
> J Wunsch wrote:
> > You can mmap() the frame buffer, but have a look at the ten thousands
> > lines of code in the XFree86 Xserver that deal with every and each
> > hardware idiosyncrasy of the various not-really-compatible graphics
> > cards.  I'm sure, you'll immediately give up your idea.
> > 
> > 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. The 
> company I work for is working on a game (for DOS). As the 
> developementing is progressing, I want to be able to first port
> what we've done to FreeBSD, and possbilly do my part of development
> on FreeBSD. The way I see it, first I'd have to implment a library
> to handle direct video access, much like the svgalib on Linux. 
> And frankly, I'm lost as to where to start.        
> 
> 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.

BTW, i am interesting in this too. I would like to use FreeBSD for some
experiments in graphics and i _really_ don't whant to use 'X'..
'X' are really slow on my 486/8...

Now i know how to setup some video mode :
ioctl(0,SW_VGA13,(char*)0);

but ^^^^^^^^^^^^^^^^^^^^ doesn't solve some problems :((( After such mode switch
doesn't work Alt+Fx switching - and so i can't debug program :(((((
and the second - does anybody work on VESA(2.x will be great !) support ? 
i think it will be great ...

-- 

Alexey Pialkin



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