Subject: Re: Nee help configuring new device driver into conf.c for NetBSD 1.0
To: None <buhrow@lothlorien.nfbcal.org, kenh@cmf.nrl.navy.mil>
From: Chris Torek <torek@bsdi.com>
List: tech-kern
Date: 04/10/1996 16:20:32
Ugh, you mean you guys are still using a conf.c file and those
horrible *_decl macros? :-)

(a snippet from our /sys/i386/conf/ioconf.c.i386 appended ...)

Chris

	...
%CONFIG

extern struct devsw cnsw, cttysw, mmsw, swapsw, logsw, devfdsw;
extern struct devsw ptssw, ptcsw;
extern struct devsw pcsw, kbdsw;

%DECLSW

struct devsw *devsw[] = {
	&cnsw,			/* 0 = virtual console */
	&cttysw,		/* 1 = controlling terminal */
	&mmsw,			/* 2 = /dev/{null,mem,kmem,...} */
	%DEVSW(wd),		/* 3 = st506/rll/esdi/ide disk */
	&swapsw,		/* 4 = /dev/drum (swap pseudo-device) */
	%DEVSW(pty, &ptssw),	/* 5 = pseudo-tty slave */
	%DEVSW(pty, &ptcsw),	/* 6 = pseudo-tty master */
	&logsw,			/* 7 = /dev/klog */
	%DEVSW(com),		/* 8 = serial communications ports */
	%DEVSW(fd),		/* 9 = floppy disk */
	%DEVSW(wt),		/* 10 = QIC-02/36 cartridge tape */
	...