Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 1996 08:14:13 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        charlie_conklin@il.us.swissbank.com (Charlie Conklin)
Cc:        questions@FreeBSD.ORG
Subject:   Re: lpt driver question
Message-ID:  <199601111314.IAA02813@hda.com>
In-Reply-To: <9601111144.AA01349@ln1d279nwk> from "Charlie Conklin" at Jan 11, 96 11:44:15 am

next in thread | previous in thread | raw e-mail | index | archive | help

> I have a simple piece of hardware that sits on the PC printer port.
> I also have some C source code that compiles and works, and is used
> to talk to that hardware. The code looks fairly simple, basically just
> poking a few values at an io port.
> 
> 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?

Open /dev/io and use outb to access the port.  outb is in <machine/cpufunc.h>.
Once you've opened /dev/io you can read and write to any port. There is no
man page except for -current.

--

Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601111314.IAA02813>