From owner-freebsd-hackers Sat Sep 21 0:49: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18D5A37B401 for ; Sat, 21 Sep 2002 00:49:07 -0700 (PDT) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A51743E4A for ; Sat, 21 Sep 2002 00:49:01 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp636.sa.padsl.internode.on.net [150.101.245.123]) by smtp0.adl1.internode.on.net (8.12.4/8.12.4) with ESMTP id g8L7mrp5029354; Sat, 21 Sep 2002 17:18:53 +0930 (CST) Received: from localhost (root@localhost [127.0.0.1]) by midget.dons.net.au (8.12.2/8.12.2) with ESMTP id g8L7nAxV012482; Sat, 21 Sep 2002 17:19:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: Direct video access From: "Daniel O'Connor" To: Sean Hamilton Cc: hackers@FreeBSD.ORG In-Reply-To: <001001c2613e$a2a7fca0$911de8d8@slugabed.org> References: <001001c2613e$a2a7fca0$911de8d8@slugabed.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 21 Sep 2002 17:18:49 +0930 Message-Id: <1032594530.893.2.camel@chowder.dons.net.au> Mime-Version: 1.0 X-Spam-Score: -3.4 () IN_REP_TO X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2002-09-21 at 16:44, Sean Hamilton wrote: > Which card would I be best off using? I currently have an nvidia geforce256, > but understand nvidia is fairly hush-hush about how their hardware works. I > know nvidia is about to release an xfree86 module, but I'm not too > interested in using xf86. I hear ATI is somewhat more open about the > technical details of their cards. 3d support for nVidia stuff is still 'in the works' :( ATI or Matrox are probably your best bet, though support for their latest cards lag behind. You could try looking at SDL which seems to be becoming the de-facto standard for doing multimedia/game type stuff. > For this card, where should I look to get details of the interface? I really > know nothing about talking directly to hardware, but am eager to learn. I am > assuming all cards have a standard set of commands to do things like set > video modes and possibly even things like hardware accelerated lines and > such, but I imagine things like matrix multiplications and transformations, > blitting, etc, are all proprietary. I know DOS uses a set of interrupts to > change video modes, and a static address for the framebuffer, but I'm > assuming this isn't the case with FreeBSD. If it *is* a static address, > would I then have to be running in kernel mode to access such an address? If I were you I'd look at the DRI etc. Skip all of that messy stuff for directly touching video hardware :) You can get a framebuffer mapping (DGA in X, or magic syscons calls) without having to talk to the video card directly. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message