From owner-freebsd-hackers Sun Feb 16 11:52:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA22563 for hackers-outgoing; Sun, 16 Feb 1997 11:52:09 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA22508 for ; Sun, 16 Feb 1997 11:51:33 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA21288; Sun, 16 Feb 1997 20:51:18 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.6.9) id UAA27208; Sun, 16 Feb 1997 20:26:43 +0100 (MET) Message-ID: Date: Sun, 16 Feb 1997 20:26:43 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Cc: hackers@freebsd.org Subject: Re: Can I initialize lptx from user space? References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Michael Sperber [Mr. Preprocessor] on Feb 16, 1997 18:19:21 +0100 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Michael Sperber [Mr. Preprocessor] wrote: > I'd like to drive a lighting control system from the parallel port, > preferably using the standard 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)? I don't think so. But i think it should be a trivial task to add this kind of stuff to the lptioctl() function. You don't really need to be a kernel hacker for this, as long as you understand a little C at all. The file in question is sys/i386/isa/lpt.c. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)