Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 1998 01:58:06 -0700 (PDT)
From:      Ulf Zimmermann <ulf@Alameda.net>
To:        julian@whistle.com (Julian Elischer)
Cc:        ulf@Alameda.net, hackers@FreeBSD.ORG
Subject:   Re: I am ready to give: How do I tell the kernel I have devices ?
Message-ID:  <199805100858.BAA07239@Gatekeeper.Alameda.net>
In-Reply-To: <Pine.BSF.3.95.980509022607.2151B-100000@current1.whistle.com> from Julian Elischer at "May 9, 98 02:27:50 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> what kind of device?
> 
> try the SYSINIT macro you see in each driver,
> combined with the config file..

SYSINIT seems to be what I am missing. I added the SYSINIT line, pointing to
my driver init routine. Any other files I need to add things ?

> 
> what do you mean by: 
> "tell the kernel I have a device"?

Tell the kernel that my driver is responsible for /dev/myx*

> 
> that it has a devsw entry?
> that it should probe an address?
> that the PCI code should know about it?

I got all the PCI probe and attach routine, I think.

> 
> 
> On Sat, 9 May 1998, Ulf Zimmermann wrote:
> 
> > I have read through all kind of kernel source code, specific through
> > SCSI drivers, wd.c and sd.c. I do not see it. Could someone point me
> > at some document or write a little list of what steps are involved ?
> > 
> > Ulf.
> > 
> > ---------------------------------------------------------------------
> > Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936
> > Alameda Networks, Inc. | http://www.Alameda.net  | Fax#: 510-521-5073
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-hackers" in the body of the message
> > 
> 
> 

Ulf.

---------------------------------------------------------------------
Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936
Alameda Networks, Inc. | http://www.Alameda.net  | Fax#: 510-521-5073

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



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