[haiku-development] Re: Add new network driver from FreeBSD

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 29 Apr 2011 15:22:46 +0200 (MEST)

Fredrik Modèen<fredrik@xxxxxxxxx> wrote:
> Are there any Howto or similar to read on how one can add new devices
> (network) from FreeBSD?

No, but besides a verbatim copy of the driver sources, you'll need to fix the 
interrupt handling to match Haiku's (see the various glue.c files in the 
network driver's directories). For newer FreeBSD drivers, you don't have to do 
much there, though.

> I have looked at old code and figured that first i need to get the driver 
> (in this case e1000) to vendors list and then get that code in to right
> place in Haiku with some glue code? (thats a realy basic description) but
> are that how i supose to go about to do it? What directory do I need to
> use in vendors branch?

e1000 is already part of our repository as ipro1000.

Bye,
   Axel.


Other related posts: