From owner-freebsd-questions Thu Jan 11 18:06:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA15072 for questions-outgoing; Thu, 11 Jan 1996 18:06:53 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id SAA15066 for ; Thu, 11 Jan 1996 18:06:46 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id MAA14564; Fri, 12 Jan 1996 12:37:23 +1030 From: Michael Smith Message-Id: <199601120207.MAA14564@genesis.atrad.adelaide.edu.au> Subject: Re: lpt driver question To: charlie_conklin@il.us.swissbank.com (Charlie Conklin) Date: Fri, 12 Jan 1996 12:37:23 +1030 (CST) Cc: questions@FreeBSD.org In-Reply-To: <9601111144.AA01349@ln1d279nwk> from "Charlie Conklin" at Jan 11, 96 11:44:15 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org Precedence: bulk Charlie Conklin stands accused of saying: > to talk to that hardware. The code looks fairly simple, basically just > poking a few values at an io port. Great; you're in business! > I am now faced with the task of making the hardware work under > FreeBSD instead of windows, and I realize that I do not have the > foggiest notion of how to proceed! :-( Does anyone have any ideas, > or have some useful direction to point me in? Can I use the lpt > driver to do this easily? No, remove the lpt driver from your kernel config, and in your C program (which must run as root) open /dev/io and then use the functions in /usr/include/machine/cpufunc.h (inbv and outbv in particular) to talk to the port directly. > - Charlie Conklin conklic@swissbank.com -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "Who does BSD?" "We do Chucky, we do." [[