Subject: Re: Compiling and configuring the kernel for a device driver
To: David Brownlee <abs@anim.dreamworks.com>
From: Sera <esha@sharada.ncore.soft.net>
List: tech-pkg
Date: 11/04/1998 15:13:23
--------------4C2FEF7E6A4ED1902DE40600
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
David Brownlee wrote:
> I'd love to help but I don't know what those files do under
> linux
> - could you give more details?
>
> David/absolute
>
I have netbsd/i386 and i'm beginning to write a device driver for a
JPEG card on PCI bus. I picked up a doc from FreeBSD which gives a
brief description of 'Writing Free BSD Device Drivers' . But even
though I could find the files he specifies, the entries in those files
(ex : files.i386) are different. So I want to know the actual procedure
NedBSD follows, the files related to that, the syntax of the entries in
the files.
FreeBSD says :
(one of the links from which I picked up :-
winwww.ts.kiev.ua/tech/free/tutorials/ddwg/ddwg.html )
1.Adding to the driver list - uses the file files.i386
2. Make room in conf.c - uses the file conf.c (declare your entry
points here)
3.Adding your device to the config file. (add a line describing your
device and on which bus it is)
4. config the Kernel (before building the Kernel makes a compile tree)
Is this procedure holds good for NetBSD also ? If so can you give me
some information or any doc or pointers to some sites ?
Please do help me
Sera
--------------4C2FEF7E6A4ED1902DE40600
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
David Brownlee wrote:
<BLOCKQUOTE TYPE=CITE> I'd love
to help but I don't know what those files do under linux
<BR> - could you give more details?
<P>
David/absolute
<BR> </BLOCKQUOTE>
<P> I have netbsd/i386 and i'm beginning to write a device driver
for a JPEG card on PCI bus. I picked up a doc from FreeBSD which
gives a brief description of 'Writing Free BSD Device Drivers' .
But even though I could find the files he specifies, the entries
in those files (ex : files.i386) are different. So I want to know
the actual procedure NedBSD follows, the files related to that, the syntax
of the entries in the files.
<P>FreeBSD says :
<BR>(one of the links from which I picked up :- <U><FONT COLOR="#3333FF">winwww.ts.kiev.ua/tech/free/tutorials/ddwg/ddwg.html
</FONT></U>)
<P>1.Adding to the driver list - uses the file files.i386
<BR>2. Make room in conf.c - uses the file conf.c (declare your entry
points here)
<BR>3.Adding your device to the config file. (add a line describing your
device and on which bus it is)
<BR>4. config the Kernel (before building the Kernel makes a compile tree)
<P>Is this procedure holds good for NetBSD also ? If so can you give
me some information or any doc or pointers to some sites ?
<BR>
<P>Please do help me
<BR>Sera
<BR>
<BR>
<BR>
<BR>
<BR>
<BR> </HTML>
--------------4C2FEF7E6A4ED1902DE40600--