From owner-freebsd-questions Thu Jan 11 06:28:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA25292 for questions-outgoing; Thu, 11 Jan 1996 06:28:47 -0800 (PST) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA25274 Thu, 11 Jan 1996 06:28:41 -0800 (PST) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA24140; Thu, 11 Jan 96 08:28:39 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA04075; Thu, 11 Jan 1996 07:28:38 -0700 Date: Thu, 11 Jan 1996 07:28:38 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9601111428.AA04075@emu.fsl.noaa.gov> To: charlie_conklin@il.us.swissbank.com Cc: questions@freebsd.org, doc@freebsd.org In-Reply-To: <9601111144.AA01349@ln1d279nwk> (message from Charlie Conklin on Thu, 11 Jan 96 11:44:15 GMT) Subject: Re: lpt driver question Sender: owner-questions@freebsd.org Precedence: bulk >>>>> "Charlie" == Charlie Conklin writes: Charlie> Hello all... I have a simple piece of hardware that sits Charlie> on the PC printer port. I also have some C source code Charlie> that compiles and works, and is used to talk to that Charlie> hardware. The code looks fairly simple, basically just Charlie> poking a few values at an io port. Charlie> I am now faced with the task of making the hardware work Charlie> under FreeBSD instead of windows, and I realize that I do Charlie> not have the foggiest notion of how to proceed! You might want to examine /sys/i386/isa/tw.c; that's a device driver that uses the parallel port to talk to an X-10 TW523 power controller. It'd be nicer if it were a loadable kernel module, which is probably what you want your driver to be. There's supposed to be a guide to writing device drivers as part of the FreeBSD handbook, but I just checked the web site and it wasn't there. Does anyone know the status of this document? -- Sean Kelly NOAA Forecast Systems Laboratory, Boulder Colorado USA Even though I was their captive, the Indians allowed me quite a bit of freedom. I could walk about freely, make my own meals, and even hurl large rocks at their heads. It was only later that I discovered they were not Indians at all, but dirty clothes hampers. -- Deep Thoughts, by Jack Handey