Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 1996 12:37:23 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        charlie_conklin@il.us.swissbank.com (Charlie Conklin)
Cc:        questions@FreeBSD.org
Subject:   Re: lpt driver question
Message-ID:  <199601120207.MAA14564@genesis.atrad.adelaide.edu.au>
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
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."                               [[



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