Date: Thu, 11 Jan 1996 07:28:38 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) To: charlie_conklin@il.us.swissbank.com Cc: questions@freebsd.org, doc@freebsd.org Subject: Re: lpt driver question Message-ID: <9601111428.AA04075@emu.fsl.noaa.gov> In-Reply-To: <9601111144.AA01349@ln1d279nwk> (message from Charlie Conklin on Thu, 11 Jan 96 11:44:15 GMT)
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Charlie" == Charlie Conklin <charlie_conklin@il.us.swissbank.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601111428.AA04075>