From owner-freebsd-hackers Fri Mar 8 07:45:51 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA24977 for hackers-outgoing; Fri, 8 Mar 1996 07:45:51 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA24923 for ; Fri, 8 Mar 1996 07:45:45 -0800 (PST) Received: from bacall.lodgenet.com ([205.138.147.242]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id HAA26217 for ; Fri, 8 Mar 1996 07:25:15 -0800 Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id JAA13272 for ; Fri, 8 Mar 1996 09:18:52 -0600 Received: from tserv.lodgenet.com(204.124.120.10) by bacall via smap (V1.3) id sma013270; Fri Mar 8 09:18:34 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [204.124.120.30]) by tserv.lodgenet.com (8.6.12/8.6.12) with ESMTP id IAA11631; Fri, 8 Mar 1996 08:20:03 -0600 Received: from localhost (localhost [127.0.0.1]) by jake.lodgenet.com (8.7.4/8.6.12) with SMTP id IAA24148; Fri, 8 Mar 1996 08:32:09 -0600 (CST) Message-Id: <199603081432.IAA24148@jake.lodgenet.com> X-Authentication-Warning: jake.lodgenet.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.2 7/18/95 To: Wilson MacGyver cc: hackers@freebsd.org, joerg_wunsch@uriah.heep.sax.de Subject: Re: direct access to video card In-reply-to: Your message of "Thu, 07 Mar 1996 12:11:04 EST." <313F18A8.3DBFAAF4@cylatech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 08 Mar 1996 08:32:09 -0600 From: "Eric L. Hernes" Sender: owner-hackers@freebsd.org X-Loop: owner-hackers@FreeBSD.ORG Precedence: bulk A while back I ported Linux' svga and graphics libraries. As I remember it was little more than an afternoon project. Sorry but I lost interest and need the disk space for something else :(. But it ain't too bad if you don't look at the code, just close your eyes and compile. That stuff is hideous. eric. > 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. > > > -- > Wilson MacGyver macgyver@cylatech.com > -------------------------------------- > Veni, Vidi, Concidi. > -- erich@lodgenet.com erich@rrnet.com