Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Dec 1998 13:31:33 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        Bill Loraine <wjlora@ftw.rsc.raytheon.com>, FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   RE: Writing device drivers for FreeBSD
Message-ID:  <Pine.BSF.3.95.981220132642.8357D-100000@current1.whistle.com>
In-Reply-To: <XFMail.981220171807.asmodai@wxs.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
conf.c no longer exists.
Every driver used to have to have an entry in it.
Now each driver adds it's own entry dynamically using a function in 
kern_conf.c

julian
p.s. if it's an ISA device try running the script
/usr/share/examples/drivers/make_device_driver.sh
or
/usr/share/examples/drivers/make_pseudo_driver.sh

(depending on whether you have actual hardware to inteface with ot if you
are using a device driver to present some 'pretend' device).

the scripts need a little updating. but they will do 90% of what you need
(You need to add code to register the interrupt vector in the first and
remove it from 
the config line it generates.



On Sun, 20 Dec 1998, Jeroen Ruigrok/Asmodai wrote:

> [cc:-ed to hackers, removed from doc]
> 
> On 17-Dec-98 Bill Loraine wrote:
> > In the Tutorial "Writing device drivers for FreeBSD" on the Standard
> > Model steps required for adding a driver, step 2 Make room in conf.c -
> > Which the tutorial says is located in "/usr/src/sys/i386/i386/conf.c" on
> > my operating system files(my hard drive with FreeBSD installed) I don't
> > have a conf.c file at all much less in that location. 
> 
> I think conf.c needs to be renamed to autoconf.c. Then again, I might be wrong.
> Someone care to update/verify my assumption?
> 
> ---
> Jeroen Ruigrok van der Werven            Life is the only Pain 
> asmodai(at)wxs.nl                              we endeavour...
> Network/Security Specialist      <http://home.wxs.nl/~asmodai>;
> BSD & picoBSD: The Power to Serve     <http://www.freebsd.org>;
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 


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?Pine.BSF.3.95.981220132642.8357D-100000>