From owner-freebsd-hackers Sun Feb 16 15:18:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA04388 for hackers-outgoing; Sun, 16 Feb 1997 15:18:12 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA04381 for ; Sun, 16 Feb 1997 15:18:05 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id JAA05690; Mon, 17 Feb 1997 09:47:29 +1030 (CST) From: Michael Smith Message-Id: <199702162317.JAA05690@genesis.atrad.adelaide.edu.au> Subject: Re: Can I initialize lptx from user space? In-Reply-To: from "Michael Sperber [Mr. Preprocessor]" at "Feb 16, 97 06:19:21 pm" To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Date: Mon, 17 Feb 1997 09:47:27 +1030 (CST) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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 [[