Date: Mon, 17 Feb 1997 09:47:27 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Cc: hackers@freebsd.org Subject: Re: Can I initialize lptx from user space? Message-ID: <199702162317.JAA05690@genesis.atrad.adelaide.edu.au> In-Reply-To: <y9lk9o87jom.fsf@modas.informatik.uni-tuebingen.de> from "Michael Sperber [Mr. Preprocessor]" at "Feb 16, 97 06:19:21 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Sperber [Mr. Preprocessor] stands accused of saying: > > I hope this isn't the wrong forum for this; I'm no kernel hacker. If > this is inappropriate, let me know. > > I'd like to drive a lighting control system from the parallel port, > preferably using the standard lpt driver. No, you don't want to use the 'lpt' driver. > Question: Can I initialize the lpt device, i.e. pulse the -INIT > output pin from user space (without having to change the > driver)? No/Yes. The process goes like this : - disable the 'lpt' driver. - open /dev/io in your program (change its permissions, or run your program as root). - use the in*() and out*() functions in <machine/cpufunc.h> to perform your I/O. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702162317.JAA05690>