From owner-freebsd-questions@FreeBSD.ORG Thu Jul 15 16:58:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3BF616A4CE for ; Thu, 15 Jul 2004 16:58:12 +0000 (GMT) Received: from mailhub.sweetdreamsracing.biz (mailhub.sweetdreamsracing.biz [66.92.171.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DC9D43D2F for ; Thu, 15 Jul 2004 16:58:12 +0000 (GMT) (envelope-from culverk@sweetdreamsracing.biz) Received: by mailhub.sweetdreamsracing.biz (Postfix, from userid 80) id AC6BC10A; Thu, 15 Jul 2004 13:13:22 -0400 (EDT) Received: from 141.156.69.109 ([141.156.69.109]) by www.sweetdreamsracing.biz (Horde) with HTTP for ; Thu, 15 Jul 2004 13:13:22 -0400 Message-ID: <20040715131322.oskcooccc40soswk@www.sweetdreamsracing.biz> Date: Thu, 15 Jul 2004 13:13:22 -0400 From: Kenneth Culver To: Henrik W Lund References: <40F66A82.9010502@celcom.net.my> <20040715100048.cccco80k4s0o4osw@www.sweetdreamsracing.biz> <40F73154.7080400@broadpark.no> In-Reply-To: <40F73154.7080400@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs cc: freebsd-questions@freebsd.org Subject: Re: Compiling Linux Driver under FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 16:58:12 -0000 Quoting Henrik W Lund : > Kenneth Culver wrote: > >> > > > > >> >> What you want to do can't be done. The best you can do really is port the >> driver. The kernel internals/driver apis are totally different between linux >> and FreeBSD. >> >> Ken > > Greetings! > > Speaking of driver APIs, do you know of any good resources on that one? > I've tried the developer's handbook on the website, but this seems more > of a general introduction to programming with a little twist of FreeBSD > sprinkled lightly. Are there any secret manpages, like code(9) and > style(9) that are any good? I'm definitely getting "The design and > implementation of the FreeBSD operating system" when it comes out, but > that's this fall. > > The reason I'm asking, is that I'm kinda toying with the idea of porting > nvidia-driver to amd64, but I've browsed the source, and it's a tad too > much to really get an understanding good enough to do any porting (or > even modifying, for that sake). I realize that there's also the whole > problem of nvidia-driver depending on Linux-compat, which isn't entirely > completed on amd64, but that's being worked on, as far as I know. > Besides, I won't be porting anything unless I learn the required APIs. > > Must....learn....APIs.... Need....APIs.... ;-) > For porting the nvidia driver, you most likely can't, because nVidia has a binary-only part of that module that they would have to recompile in order for it to work on amd64. The driver-writing documentation is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics.html although I'm not sure how up-to-date this stuff is. Ken