From owner-freebsd-hackers Sun May 10 01:58:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA03982 for freebsd-hackers-outgoing; Sun, 10 May 1998 01:58:08 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from DNS.Lamb.net (root@DNS.Lamb.net [207.90.181.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA03975 for ; Sun, 10 May 1998 01:58:05 -0700 (PDT) (envelope-from ulf@Gatekeeper.Alameda.net) Received: (from uucp@localhost) by DNS.Lamb.net (8.8.6/8.8.6) id BAA10516; Sun, 10 May 1998 01:58:18 -0700 (PDT) Received: from gatekeeper.Alameda.net(207.90.181.2) via SMTP by DNS.Lamb.net, id smtpd010514; Sun May 10 01:58:15 1998 Received: (from ulf@localhost) by Gatekeeper.Alameda.net (8.8.6/8.7.6) id BAA07239; Sun, 10 May 1998 01:58:06 -0700 (PDT) From: Ulf Zimmermann Message-Id: <199805100858.BAA07239@Gatekeeper.Alameda.net> Subject: Re: I am ready to give: How do I tell the kernel I have devices ? In-Reply-To: from Julian Elischer at "May 9, 98 02:27:50 am" To: julian@whistle.com (Julian Elischer) Date: Sun, 10 May 1998 01:58:06 -0700 (PDT) Cc: ulf@Alameda.net, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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