Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 1996 20:53:46 -0400 (EDT)
From:      Peter Dufault <dufault@hda>
To:        housley@pr-comm.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Help with Linux device on FreeBSD!!]
Message-ID:  <199606270053.UAA22866@hda>
In-Reply-To: <9606251504.AA4047@pr-comm.com> from "James Housley" at Jun 25, 96 10:58:57 am

next in thread | previous in thread | raw e-mail | index | archive | help
> I have the source code for a Linux device that interfaces gdb to
> the Motorola 683xx processors BDM.  The code is fairly simple.  I
> would like to re-write it to run on FreeBSD...
> 
> What I am looking for is the source to /dev/lpt[x] or /dev/io...

Start by opening /dev/io from a user process and accessing the
register directly using inb and outb (I assume you are talking
over the lpr data register).  That may be all you need.  If
you have issues after that let us know.

The inb / outb functions are in machine/cpufunc.h.  At least on my
system you need to have optimization on for them to work properly;
turn on your -O switch if you get complaints
from the compiler.

-- 
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?199606270053.UAA22866>