From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 12:03:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 95F9116A41F for ; Wed, 12 Oct 2005 12:03:41 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 461DA43D45 for ; Wed, 12 Oct 2005 12:03:41 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms170.mailsrvcs.net ([192.168.1.3]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IO80084KXI4VN60@vms044.mailsrvcs.net> for freebsd-hackers@freebsd.org; Wed, 12 Oct 2005 07:03:40 -0500 (CDT) Date: Wed, 12 Oct 2005 07:03:40 -0500 (CDT) From: Sergey Babkin To: Pete , freebsd-hackers@freebsd.org Message-id: <17200319.1129118620885.JavaMail.root@vms170.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Wed, 12 Oct 2005 12:12:28 +0000 Cc: Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 12:03:41 -0000 >From: Pete >Date: Tue Oct 11 11:47:28 CDT 2005 >To: freebsd-hackers@freebsd.org >Subject: Driver Development Books? >Hello, > I have what may seem to be a silly question, but I cannot find any >other decent resources on the web. >.< The problem that I am having >right now is >that I have a fairly nice graphics card which, for the moment is only >supported on Windows Operating systems, and old 2.4 Linux kernels. So >far there has >not been much positive outlook in porting the drivers to *BSD or any of >the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes. The video cards usually have nothing to do with the kernel itself. Their drivers are in the X Window system. Probably the easiest fix is to just install an older version (3.x probably) of XFree86 on your machine. >So I guess that makes my question fairly simple then; I know that driver >code is written in C (which I am learning currently) but thats about all Well, you usually need a bit more expertise than "learning currently" to write drivers. >I know. I'm probably >not far off when I say that I need more to go on. Yet, from looking at >Amazon.com I have not been able to find any books on writing driver >code, which is really >frustrating. Searching for "device driver" turns up a lot of books on Amazon. For the system-specific details look in the online FreeBSD Device Driver Writer's guide (part of the Handbook if I remember correctly). Anyway, for the graphical cards it's not what you need. The graphical drivers are running in user space as a part of X server. Writing them is a completely different story and I don't think there are any manuals. Just look at the code of the other drivers and do the same. -SB