From owner-freebsd-hackers Wed Jun 26 17:44:06 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA08825 for hackers-outgoing; Wed, 26 Jun 1996 17:44:06 -0700 (PDT) Received: from hda (ip62-max1-fitch.zipnet.net [199.232.245.62]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA08771 for ; Wed, 26 Jun 1996 17:41:23 -0700 (PDT) Received: (from dufault@localhost) by hda (8.6.11/8.6.9) id UAA22866; Wed, 26 Jun 1996 20:53:47 -0400 From: Peter Dufault Message-Id: <199606270053.UAA22866@hda> Subject: Re: Help with Linux device on FreeBSD!!] To: housley@pr-comm.com Date: Wed, 26 Jun 1996 20:53:46 -0400 (EDT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <9606251504.AA4047@pr-comm.com> from "James Housley" at Jun 25, 96 10:58:57 am Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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