Subject: Re: A new driver
To: Eric Delcamp <e.delcamp@wanadoo.fr>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: current-users
Date: 02/11/1999 18:19:06
On Feb 11, Eric Delcamp wrote
> Hi,
>
> I'm building a new driver for i386 port. I have written the probe and attach
> code, and I want to create a new entry in the kernel.
> How to do this (files to should be modified) ?
> I think I also need some number (major and minor) for testing.
> Any hints ? FreeBSD differ a lot from NetBSD to theses points.
>
You have to add an entry for your driver to
sys/arch/<your-arch>/<your-arch>/conf.c. bdevsw is the table for block
devices, cdevsw for character devices.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--