From owner-freebsd-questions@FreeBSD.ORG Mon Mar 24 20:49:37 2008 Return-Path: Delivered-To: FreeBSD-Questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9819106566C for ; Mon, 24 Mar 2008 20:49:37 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 86E9D8FC25 for ; Mon, 24 Mar 2008 20:49:37 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay12.apple.com (relay12.apple.com [17.128.113.53]) by mail-out3.apple.com (Postfix) with ESMTP id 886BA25BA598 for ; Mon, 24 Mar 2008 13:49:37 -0700 (PDT) Received: from relay12.apple.com (unknown [127.0.0.1]) by relay12.apple.com (Symantec Mail Security) with ESMTP id 709A2464004 for ; Mon, 24 Mar 2008 13:49:37 -0700 (PDT) X-AuditID: 11807135-ac07fbb0000073ca-64-47e813e1254c Received: from cswiger1.apple.com (cswiger1.apple.com [17.214.13.96]) by relay12.apple.com (Apple SCV relay) with ESMTP id 533A2420004 for ; Mon, 24 Mar 2008 13:49:37 -0700 (PDT) Message-Id: <130DF471-F5ED-4E42-8678-1C2FB954F9B1@mac.com> From: Chuck Swiger To: FreeBSD-Questions@FreeBSD.org In-Reply-To: <20080324201908.GA17432@Grumpy.DynDNS.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 24 Mar 2008 13:49:37 -0700 References: <1206332783.6973.95.camel@laptop2.herveybayaustralia.com.au> <20080324201908.GA17432@Grumpy.DynDNS.org> X-Mailer: Apple Mail (2.919.2) X-Brightmail-Tracker: AAAAAA== Cc: Subject: Re: Mac osX drivers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2008 20:49:37 -0000 On Mar 24, 2008, at 1:19 PM, David Kelly wrote: > On Mon, Mar 24, 2008 at 02:26:23PM +1000, Da Rock wrote: >> I know I keep asking about drivers, but what about Mac drivers? I >> understand that Mac osX is based fairly well on BSD, so would the >> drivers be portable? > > Drivers for doing what? > >> This is all on a current project I'm working on... > > Go study the available Darwin code from > http://www.opensource.apple.com/darwinsource/ This is good advice, but if you check this link and actually look at the OSX drivers under there, you'll discover that they are generally written in C++ using something called the I/O Kit, documented here: http://developer.apple.com/reference/HardwareDrivers/ http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundamentals > I believe you will discover many of the drivers in MacOS X came from > FreeBSD. Not really, no. The OS X drivers originated from the Mach project at CMU and NeXT Computer back in the early 90's [1], with a significant rewrite by Apple after they acquired NeXT circa 1998 to add numerous drivers to support Apple's hardware in particular. -- -Chuck [1]: NeXT started in the late 80's (1987 or so), but the driver source code actually in use in OSX now had some origins back to 1994 or so, and almost all of it was updated significantly around 1998-2000 (aka Rhapsody through 10.1 or so timeframe), with smaller changes being made since...