Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 1999 10:45:37 +0000
From:      Scott Mitchell <scott@dcs.qmw.ac.uk>
To:        Alan DuBoff <aland@SoftOrchestra.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: compatibility list
Message-ID:  <19990312104537.D28636@dcs.qmw.ac.uk>
In-Reply-To: <3.0.32.19990311214304.01f51ba0@blueneptune.com>; from Alan DuBoff on Thu, Mar 11, 1999 at 09:43:08PM -0800
References:  <3.0.32.19990311214304.01f51ba0@blueneptune.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 11, 1999 at 09:43:08PM -0800, Alan DuBoff wrote:
> At 04:26 PM 3/11/99 +0000, Scott Mitchell wrote:
> 
> >If you've got working code for Linux or whatever, then a 'port' amounts to
> >munging that into the BSD driver framework, which is a little different.
> 
> <sarcasim>
> No kidding??? 
> </sarcasim>
> 
> I figured that much, I was hoping you might be able to share with me what
> some of those differences are.

Oh, you want *details*.  It's really a case of 'different, but the same'.
I mean, the Linux driver will have an interrupt service routine that looks
like, well, an interrupt service routine.  And a routine to send packets.
And a big hairy bit of code to configure the card, etc.  Obviously the BSD
data structures for the top half of the driver are different -- ifnet(9) is
a reasonable intro to that stuff.  You'll also need to fix things to deal
with data in mbufs rather than whatever Linux uses.

Really though, I think you'll find that the BSD-specific part of the driver
ends up looking like all the others, and the card-specific bits look just
like they do in the Linux code.  The source really is your friend.

	Scott

-- 
===========================================================================
Scott Mitchell          | PGP Key ID |"If I can't have my coffee, I'm just 
<scott@dcs.qmw.ac.uk>   | 0x54B171B9 | like a dried up piece of roast goat"
QMW College, London, UK | 0xAA775B8B |     -- J. S. Bach.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990312104537.D28636>