From owner-freebsd-hackers Thu Mar 7 18:50:39 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA00299 for hackers-outgoing; Thu, 7 Mar 1996 18:50:39 -0800 (PST) Received: from gw.pu.ru (slip-0.pu.ru [193.124.85.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA00291 for ; Thu, 7 Mar 1996 18:50:35 -0800 (PST) Received: from VexedVox.stud.pu.ru (root@localhost) by gw.pu.ru (8.6.10/8.6.6) with UUCP id FAA02204 for freebsd.org!hackers; Fri, 8 Mar 1996 05:46:51 +0300 Received: from freefall.FreeBSD.ORG (uucp@localhost) by localhost (8.6.12/8.6.12) with UUCP id FAA21867; Fri, 8 Mar 1996 05:46:03 +0300 Received: from ns.okbmei.msk.su (ns.okbmei.msk.su [194.190.170.40]) by gw.pu.ru (8.6.10/8.6.6) with SMTP id FAA02143; Fri, 8 Mar 1996 05:36:41 +0300 Received: from kiae.UUCP by ns.okbmei.msk.su with UUCP id AA01138 (5.67c8/IDA-1.5); Fri, 8 Mar 1996 05:13:19 +0300 Received: from freefall.FreeBSD.ORG by sovcom.kiae.su with SMTP id AA21011 (5.65.kiae-1 for ); Fri, 8 Mar 1996 05:02:21 +0300 Received: from localhost (daemon@localhost) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA20519 Thu, 7 Mar 1996 14:21:17 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA20367 for hackers-outgoing; Thu, 7 Mar 1996 14:20:37 -0800 (PST) Received: from gw.pu.ru (slip-0.pu.ru [193.124.85.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA20332 for ; Thu, 7 Mar 1996 14:20:28 -0800 (PST) Received: from VexedVox.stud.pu.ru (root@localhost) by gw.pu.ru (8.6.10/8.6.6) with UUCP id BAA01956 for freebsd.org!hackers; Fri, 8 Mar 1996 01:19:27 +0300 Organization: SPb State University Received: (from root@localhost) by localhost (8.6.12/8.6.12) id BAA10146; Fri, 8 Mar 1996 01:12:37 +0300 From: Alexey Pialkin Message-Id: <199603072212.BAA10146@localhost> Subject: Re: direct access to video card To: infinet.com!macgyver@VexedVox.stud.pu.ru (Wilson MacGyver) Date: Fri, 8 Mar 1996 01:12:35 +0000 (WET) Cc: freebsd.org!hackers@VexedVox.stud.pu.ru, uriah.heep.sax.de!joerg_wunsch@VexedVox.stud.pu.ru In-Reply-To: <313F18A8.3DBFAAF4@cylatech.com> from "Wilson MacGyver" at Mar 7, 96 12:11:04 pm X-Mailer: ELM [version 2.4 PL20] Content-Type: text X-Charset: KOI8-R X-Char-Esc: 29 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > > 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